Tracker: allow scripts to get modes
This commit is contained in:
parent
94e324dbd2
commit
b4f2c8cfa0
@ -224,6 +224,7 @@ private:
|
|||||||
void prepare_servos();
|
void prepare_servos();
|
||||||
void set_mode(Mode &newmode, ModeReason reason);
|
void set_mode(Mode &newmode, ModeReason reason);
|
||||||
bool set_mode(uint8_t new_mode, ModeReason reason) override;
|
bool set_mode(uint8_t new_mode, ModeReason reason) override;
|
||||||
|
uint8_t get_mode() const override { return (uint8_t)mode->number(); }
|
||||||
bool should_log(uint32_t mask);
|
bool should_log(uint32_t mask);
|
||||||
bool start_command_callback(const AP_Mission::Mission_Command& cmd) { return false; }
|
bool start_command_callback(const AP_Mission::Mission_Command& cmd) { return false; }
|
||||||
void exit_mission_callback() { return; }
|
void exit_mission_callback() { return; }
|
||||||
|
Loading…
Reference in New Issue
Block a user