From b1bbaebdac8fd2b43333879ae394d566de8dd38d Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Thu, 19 Oct 2023 20:32:46 -0700 Subject: [PATCH] Slow working on bringing the old code up to standard. - Documentation updates - most of the old files use non-Doxygen or no/minimal header comments. - Rework SimpleSuite to be more useful. - Coverity-surfaced fixes. --- .idea/inspectionProfiles/Project_Default.xml | 1 + CMakeLists.txt | 3 +- include/scmp/Math.h | 30 ++- include/scmp/filter/Madgwick.h | 32 ++-- include/scmp/scmp.h | 33 ++++ include/scsl/Arena.h | 6 - include/sctest/Checks.h | 9 +- include/sctest/Report.h | 47 +++-- include/sctest/SimpleSuite.h | 139 ++++++++------ src/sl/Buffer.cc | 7 + src/test/Report.cc | 88 ++++++++- src/test/SimpleSuite.cc | 71 ++++++-- test/coord2d.cc | 157 ++++++++-------- test/madgwick.cc | 182 ++++++++++++++++--- test/orientation.cc | 85 +++++---- test/quaternion.cc | 76 ++++---- test/simple_suite_example.cc | 77 ++++---- test/stringutil.cc | 97 +++++----- test/vector.cc | 126 ++++++------- 19 files changed, 825 insertions(+), 441 deletions(-) create mode 100644 include/scmp/scmp.h diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 22cdf9b..e5cb1fd 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,6 +1,7 @@