Copter: GCS can report simple/supersimple input modes
This commit is contained in:
parent
903b2e381b
commit
4f70bdd046
@ -7,6 +7,16 @@ const char* GCS_Copter::frame_string() const
|
|||||||
return copter.get_frame_string();
|
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
|
// update error mask of sensors and subsystems. The mask
|
||||||
// uses the MAV_SYS_STATUS_* values from mavlink. If a bit is set
|
// uses the MAV_SYS_STATUS_* values from mavlink. If a bit is set
|
||||||
// then it indicates that the sensor or subsystem is present but
|
// then it indicates that the sensor or subsystem is present but
|
||||||
|
@ -29,6 +29,9 @@ public:
|
|||||||
|
|
||||||
bool vehicle_initialised() const override;
|
bool vehicle_initialised() const override;
|
||||||
|
|
||||||
|
bool simple_input_active() const override;
|
||||||
|
bool supersimple_input_active() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
GCS_MAVLINK_Copter _chan[MAVLINK_COMM_NUM_BUFFERS];
|
GCS_MAVLINK_Copter _chan[MAVLINK_COMM_NUM_BUFFERS];
|
||||||
|
Loading…
Reference in New Issue
Block a user