diff --git a/src/boards/HeliTest/config.h b/src/boards/HeliTest/config.h index 825cb47558ca59e25ae17a547a4f24d84e21d471..0c87b6bde5cc0d254d7832e14a5ee61e31d42efe 100644 --- a/src/boards/HeliTest/config.h +++ b/src/boards/HeliTest/config.h @@ -35,7 +35,7 @@ namespace RogallinaBoard /* CUTTER */ static const PWMChannel CUTTER_PWM_CHANNEL = PWMChannel::CH2; static const int CUTTER_PWM_FREQ = 450; -static const float CUTTER_PWM_DUTY = 0.25; +static const float CUTTER_PWM_DUTY = 0.07; static const int CUTTER_PWM_DUTY_RESOLUTION = 1024; static const PWM::Timer CUTTER_TIM{ @@ -51,7 +51,7 @@ using CUTTER_CSENSE = miosix::Gpio<GPIOC_BASE, 4>; */ // Time from pin detachment to cutter activation in ms -static const unsigned int FREEFALL_TIME_MS = 3*1000; +static const unsigned int FREEFALL_TIME_MS = 2.9*1000; static const unsigned int TIMEOUT_STOP_CUTTING = 15*1000; static const unsigned int BRIDGE_DISCHARGE_TIME_MS = 30; @@ -69,6 +69,6 @@ static constexpr unsigned char DETACHMENT_PIN_NUM = pin1_num; static const PinObserver::Transition DETACHMENT_PIN_TRANSITION = PinObserver::Transition::RISING_EDGE; -static constexpr unsigned int DETACHMENT_PIN_THRESHOLD = 3; +static constexpr unsigned int DETACHMENT_PIN_THRESHOLD = 5; } // namespace RogallinaBoard \ No newline at end of file diff --git a/src/shared/SharedConfig.h b/src/shared/SharedConfig.h index d178856be00c2afdf0a3f260f51a1a631358f1bd..26bf02c5d29d5fc041c08f1f2c98c39f35341de0 100644 --- a/src/shared/SharedConfig.h +++ b/src/shared/SharedConfig.h @@ -36,8 +36,8 @@ // These must not be enabled if not in DEBUG mode #ifdef DEBUG -// #define IGNORE_LOGGER_NOT_WORKING -// #define IGNORE_SENSORS_NOT_WORKING +// #define IGNORE_LOGGER_NOT_WORKING +// #define IGNORE_SENSORS_NOT_WORKING #endif //#define ENABLE_CALIBRATION @@ -46,7 +46,7 @@ */ static const int IMU_SAMPLE_RATE = 150; static const int GPS_SAMPLE_RATE = 5; -static const int PRESS_SAMPLE_RATE = 50; +static const int PRESS_SAMPLE_RATE = 20; static constexpr int ADC_SAMPLE_RATE = 20;