Browse Source

Copter: allow scripts to get modes

c415-sdk
Tatsuya Yamaguchi 5 years ago committed by Andrew Tridgell
parent
commit
e01e924711
  1. 1
      ArduCopter/Copter.h

1
ArduCopter/Copter.h

@ -797,6 +797,7 @@ private: @@ -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();

Loading…
Cancel
Save