mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-10 06:59:54 +08:00
motors running returns true in simulation so drone takes off automatically (#3350)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user