motors running returns true in simulation so drone takes off automatically (#3350)

This commit is contained in:
NoahWe
2024-08-01 12:34:37 +02:00
committed by GitHub
parent bba5b2f5a4
commit 6ea0b681e8
@@ -714,6 +714,11 @@ static void rotwing_state_feedback_cb(uint8_t __attribute__((unused)) sender_id,
bool rotwing_state_hover_motors_running(void) {
// Check if hover motors are running
#if USE_NPS
return true;
#endif
if (rotwing_state_hover_rpm[0] > ROTWING_HOV_MOT_RUN_RPM_TH
&& rotwing_state_hover_rpm[1] > ROTWING_HOV_MOT_RUN_RPM_TH
&& rotwing_state_hover_rpm[2] > ROTWING_HOV_MOT_RUN_RPM_TH