Copter: GCS can report simple/supersimple input modes

This commit is contained in:
Peter Barker 2019-03-02 10:25:38 +11:00 committed by Peter Barker
parent 903b2e381b
commit 4f70bdd046
2 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,16 @@ const char* GCS_Copter::frame_string() const
return copter.get_frame_string();
}
bool GCS_Copter::simple_input_active() const
{
return copter.ap.simple_mode == 1;
}
bool GCS_Copter::supersimple_input_active() const
{
return copter.ap.simple_mode == 2;
}
// update error mask of sensors and subsystems. The mask
// uses the MAV_SYS_STATUS_* values from mavlink. If a bit is set
// then it indicates that the sensor or subsystem is present but

View File

@ -29,6 +29,9 @@ public:
bool vehicle_initialised() const override;
bool simple_input_active() const override;
bool supersimple_input_active() const override;
private:
GCS_MAVLINK_Copter _chan[MAVLINK_COMM_NUM_BUFFERS];