Copter: allow scripts to get modes

This commit is contained in:
Tatsuya Yamaguchi 2020-01-09 23:47:28 +09:00 committed by Andrew Tridgell
parent b4f2c8cfa0
commit e01e924711
1 changed files with 1 additions and 0 deletions

View File

@ -797,6 +797,7 @@ private:
// mode.cpp
bool set_mode(Mode::Number mode, ModeReason reason);
bool set_mode(const uint8_t new_mode, const ModeReason reason) override;
uint8_t get_mode() const override { return (uint8_t)control_mode; }
void update_flight_mode();
void notify_flight_mode();