Plane: move sensor flags to be a GCS thing rather than a GCS_MAVLINK thing

This commit is contained in:
Peter Barker 2019-02-14 11:43:03 +11:00 committed by Peter Barker
parent 039aa3f3b3
commit a3c13fc028
3 changed files with 3 additions and 2 deletions

View File

@ -153,7 +153,7 @@ void Plane::send_fence_status(mavlink_channel_t chan)
#endif
void GCS_MAVLINK_Plane::get_sensor_status_flags(uint32_t &present,
void GCS_Plane::get_sensor_status_flags(uint32_t &present,
uint32_t &enabled,
uint32_t &health)
{

View File

@ -56,7 +56,6 @@ private:
MAV_MODE base_mode() const override;
uint32_t custom_mode() const override;
MAV_STATE system_status() const override;
void get_sensor_status_flags(uint32_t &present, uint32_t &enabled, uint32_t &health);
uint8_t radio_in_rssi() const;

View File

@ -22,6 +22,8 @@ public:
void send_airspeed_calibration(const Vector3f &vg);
void get_sensor_status_flags(uint32_t &present, uint32_t &enabled, uint32_t &health);
private:
GCS_MAVLINK_Plane _chan[MAVLINK_COMM_NUM_BUFFERS];