summaryrefslogtreecommitdiff
path: root/test/actuationPlanTest.cpp
diff options
context:
space:
mode:
authorDawsyn Schraiber <[email protected]>2024-06-13 14:30:58 -0400
committerGitHub <[email protected]>2024-06-13 14:30:58 -0400
commit58b4bc754bbb9f5197119cd0c124e49c05acff46 (patch)
tree8a65e23756374626e2c9cb997af9d8ed6f892390 /test/actuationPlanTest.cpp
parent8fbd08fe29bbc2246a78b481b219c241f62ff420 (diff)
downloadactive-drag-system-58b4bc754bbb9f5197119cd0c124e49c05acff46.tar.gz
active-drag-system-58b4bc754bbb9f5197119cd0c124e49c05acff46.tar.bz2
active-drag-system-58b4bc754bbb9f5197119cd0c124e49c05acff46.zip
Where to begin…. (#13)
+/- 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
Diffstat (limited to 'test/actuationPlanTest.cpp')
-rw-r--r--test/actuationPlanTest.cpp54
1 files changed, 0 insertions, 54 deletions
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 <iostream>
-#include <gtest/gtest.h>
-#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