From 58b4bc754bbb9f5197119cd0c124e49c05acff46 Mon Sep 17 00:00:00 2001 From: Dawsyn Schraiber <32221234+dawsynth@users.noreply.github.com> Date: Thu, 13 Jun 2024 14:30:58 -0400 Subject: Where to begin…. (#13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +/- Reworked collection of altimeter related functions into altimeter class +/- Reworked bno055 class to be imu class with minimal functionality \- Removed external Kalman filter implementations in favor of own in house version \- Removed any/unused files \+ Added buffer logger for when sitting on pad for extended period of time in effort to prevent filling of flash chip \+ Added heartbeat LED for alive status --- test/actuationPlanTest.cpp | 54 ---------------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 test/actuationPlanTest.cpp (limited to 'test/actuationPlanTest.cpp') diff --git a/test/actuationPlanTest.cpp b/test/actuationPlanTest.cpp deleted file mode 100644 index 72410b0..0000000 --- a/test/actuationPlanTest.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include -#include "../include/surfaceFitModel.hpp" -#include "../include/actuationPlan.hpp" -#include "../include/rocketUtils.hpp" - - -class ActuationPlanTest : public ::testing::Test { - - protected: - - ActuationPlanTest() { - - SurfaceFitModel sfm = SurfaceFitModel(); - plan = new ActuationPlan(sfm); - } - - //~ActuationPlanTest() {} - - ActuationPlan *plan; -}; - - -/** - * @brief Tests running the Actuation Plan - * - * **/ -TEST_F(ActuationPlanTest, runPlan) { - - Vehicle rocket; - - rocket.imuInitFail = false; - rocket.imuReadFail = false; - rocket.altiInitFail = false; - rocket.altiReadFail = false; - - // Test when Vehicle Status: Glide - rocket.fail_time = (time_t)(-1); - rocket.deploy_time = time(nullptr); - rocket.status = GLIDE; - rocket.filtered_altitude = 1; - rocket.filtered_velocity = 2; - plan->runPlan(rocket); - EXPECT_NEAR(rocket.deployment_angle, 120.0, 0.01); - EXPECT_NE(rocket.fail_time, (time_t)(-1)); - - // Test when Vehicle Status: Apogee - rocket.deploy_time = time(nullptr); - rocket.status = APOGEE; - rocket.filtered_altitude = 1; - rocket.filtered_velocity = 2; - plan->runPlan(rocket); - EXPECT_NEAR(rocket.deployment_angle, 110.0, 0.01); -} \ No newline at end of file -- cgit v1.2.3