Rover: allow scripts to get modes

This commit is contained in:
Tatsuya Yamaguchi 2020-01-09 23:46:23 +09:00 committed by Andrew Tridgell
parent 2c9e56c4b2
commit 94e324dbd2

View File

@ -390,6 +390,7 @@ private:
void update_ahrs_flyforward();
bool set_mode(Mode &new_mode, ModeReason reason);
bool set_mode(const uint8_t new_mode, ModeReason reason) override;
uint8_t get_mode() const override { return (uint8_t)control_mode->mode_number(); }
bool mavlink_set_mode(uint8_t mode);
void startup_INS_ground(void);
void notify_mode(const Mode *new_mode);