diff --git a/src/boards/DeathStack/AirBrakes/AirBrakesAlgorithm.h b/src/boards/DeathStack/AirBrakes/AirBrakesAlgorithm.h index 3b38f7ebd5e23c0bbb0f40a1d73b6f05e22afd5c..4c4c390692470aacf123f167c09e830218f0a414 100644 --- a/src/boards/DeathStack/AirBrakes/AirBrakesAlgorithm.h +++ b/src/boards/DeathStack/AirBrakes/AirBrakesAlgorithm.h @@ -283,12 +283,12 @@ void AirBrakesControlAlgorithm<T>::step() logAirbrakesData(t); #ifdef ROCCARASO - if (t - begin_ts < 2 * AB_OPENING_TIMEOUT * 1000) + if (t - begin_ts < AB_OPENING_TIMEOUT * 1000) { // after 3 seconds open to 100% actuator->set(AB_SERVO_MAX_POS, true); } - else if (t - begin_ts > 2 * AB_OPENING_TIMEOUT * 1000 && - t - begin_ts < 3 * AB_OPENING_TIMEOUT * 1000) + else if (t - begin_ts > AB_OPENING_TIMEOUT * 1000 && + t - begin_ts < 2 * AB_OPENING_TIMEOUT * 1000) { // after 6 seconds open to 100% actuator->set(AB_SERVO_MAX_POS / 2, true); } diff --git a/src/boards/DeathStack/configs/AirBrakesConfig.h b/src/boards/DeathStack/configs/AirBrakesConfig.h index 2e9a5bf3b41021489370252ea664203eb788b4fb..0244295346f5be6265ba0b837bf4a3be1f9babb3 100644 --- a/src/boards/DeathStack/configs/AirBrakesConfig.h +++ b/src/boards/DeathStack/configs/AirBrakesConfig.h @@ -93,7 +93,7 @@ static constexpr float ABK_UPDATE_PERIOD_SECONDS = ABK_UPDATE_PERIOD / 1000; #ifdef EUROC static constexpr int SHADOW_MODE_DURATION = 7.5 * 1000; #else -static constexpr int SHADOW_MODE_DURATION = 100; //3.5 * 1000; +static constexpr int SHADOW_MODE_DURATION = 3.5 * 1000; #endif #ifdef EUROC