From 250004a87c62b51c760b02df45f4ed2507bcfe08 Mon Sep 17 00:00:00 2001
From: Angelo Prete <angelo.prete@skywarder.eu>
Date: Thu, 9 May 2024 09:23:06 +0200
Subject: [PATCH] [Parafoil] Removed WingConfig

---
 src/boards/Main/Configs/WingConfig.h | 62 ----------------------------
 src/entrypoints/Main/main-entry.cpp  |  1 -
 2 files changed, 63 deletions(-)
 delete mode 100644 src/boards/Main/Configs/WingConfig.h

diff --git a/src/boards/Main/Configs/WingConfig.h b/src/boards/Main/Configs/WingConfig.h
deleted file mode 100644
index e29ea6d3e..000000000
--- a/src/boards/Main/Configs/WingConfig.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/* Copyright (c) 2024 Skyward Experimental Rocketry
- * Authors: Angelo Prete
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#pragma once
-
-#include <utils/Constants.h>
-
-#include <ostream>
-
-namespace Main
-{
-
-namespace WingConfig
-{
-constexpr float ALTITUDE_TRIGGER_DEPLOYMENT_ALTITUDE = 300;  // [meters]
-constexpr int ALTITUDE_TRIGGER_CONFIDENCE = 10;   // [number of sample]
-constexpr int ALTITUDE_TRIGGER_PERIOD     = 100;  //[ms]
-
-constexpr float MAX_SERVO_APERTURE = 0.8;  //[%]
-
-struct WingConfigStruct
-{
-    int altitudeTriggerUpdatePeriod = ALTITUDE_TRIGGER_PERIOD;
-    int altitudeTriggerConfidence   = ALTITUDE_TRIGGER_CONFIDENCE;
-    int altitudeTriggerDeploymentAltitude =
-        ALTITUDE_TRIGGER_DEPLOYMENT_ALTITUDE;
-
-    static std::string header()
-    {
-        return "ALTITUDE_TRIGGER_PERIOD,ALTITUDE_TRIGGER_"
-               "CONFIDENCE,ALTITUDE_TRIGGER_DEPLOYMENT_ALTITUDE\n";
-    }
-
-    void print(std::ostream& os) const
-    {
-        os << altitudeTriggerUpdatePeriod << "," << altitudeTriggerConfidence
-           << "," << altitudeTriggerDeploymentAltitude << "," << "\n";
-    }
-};
-
-}  // namespace WingConfig
-
-}  // namespace Main
diff --git a/src/entrypoints/Main/main-entry.cpp b/src/entrypoints/Main/main-entry.cpp
index 57276b3e3..2c63122df 100644
--- a/src/entrypoints/Main/main-entry.cpp
+++ b/src/entrypoints/Main/main-entry.cpp
@@ -22,7 +22,6 @@
 
 #include <Main/BoardScheduler.h>
 #include <Main/Buses.h>
-#include <Main/Configs/WingConfig.h>
 #include <Main/PinHandler/PinHandler.h>
 #include <Main/Radio/Radio.h>
 #include <Main/Sensors/Sensors.h>
-- 
GitLab