mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
Sub: Support not sending a status text on state change
This commit is contained in:
parent
28d4603a46
commit
9e07fbd949
@ -105,7 +105,7 @@ bool AP_Arming_Sub::arm(AP_Arming::Method method, bool do_arming_checks)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "Arming motors");
|
send_arm_disarm_statustext("Arming motors");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
AP_AHRS &ahrs = AP::ahrs();
|
AP_AHRS &ahrs = AP::ahrs();
|
||||||
@ -161,7 +161,7 @@ bool AP_Arming_Sub::disarm(const AP_Arming::Method method, bool do_disarm_checks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "Disarming motors");
|
send_arm_disarm_statustext("Disarming motors");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
auto &ahrs = AP::ahrs();
|
auto &ahrs = AP::ahrs();
|
||||||
|
Loading…
Reference in New Issue
Block a user