Skip to content
Snippets Groups Projects
Commit ba5864db authored by Luca Erbetta's avatar Luca Erbetta :rocket:
Browse files

Final config

parent 33b1b76a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment