diff --git a/src/boards/Main/Configs/WingConfig.h b/src/boards/Main/Configs/WingConfig.h deleted file mode 100644 index e29ea6d3e34ed6890aedc2c39d852f41850c1eff..0000000000000000000000000000000000000000 --- 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 57276b3e39d83bede110e2a3df8be63fbcd37b7a..2c63122df496e00a46188b36c839ff1532624848 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>