mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Sub: allow scripts to get modes
This commit is contained in:
parent
1f9f84044c
commit
1c07609f47
@ -540,6 +540,7 @@ private:
|
|||||||
void fence_check();
|
void fence_check();
|
||||||
bool set_mode(control_mode_t mode, ModeReason reason);
|
bool set_mode(control_mode_t mode, ModeReason reason);
|
||||||
bool set_mode(const uint8_t mode, const ModeReason reason) override;
|
bool set_mode(const uint8_t mode, const ModeReason reason) override;
|
||||||
|
uint8_t get_mode() const override { return (uint8_t)control_mode; }
|
||||||
void update_flight_mode();
|
void update_flight_mode();
|
||||||
void exit_mode(control_mode_t old_control_mode, control_mode_t new_control_mode);
|
void exit_mode(control_mode_t old_control_mode, control_mode_t new_control_mode);
|
||||||
bool mode_requires_GPS(control_mode_t mode);
|
bool mode_requires_GPS(control_mode_t mode);
|
||||||
|
Loading…
Reference in New Issue
Block a user