Tracker: 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:42:43 +11:00 committed by Peter Barker
parent 6331efcc12
commit ff7ef21456
3 changed files with 3 additions and 2 deletions

View File

@ -71,7 +71,7 @@ MAV_STATE GCS_MAVLINK_Tracker::system_status() const
return MAV_STATE_ACTIVE; return MAV_STATE_ACTIVE;
} }
void GCS_MAVLINK_Tracker::get_sensor_status_flags(uint32_t &present, void GCS_Tracker::get_sensor_status_flags(uint32_t &present,
uint32_t &enabled, uint32_t &enabled,
uint32_t &health) uint32_t &health)
{ {

View File

@ -46,6 +46,5 @@ private:
MAV_MODE base_mode() const override; MAV_MODE base_mode() const override;
uint32_t custom_mode() const override; uint32_t custom_mode() const override;
MAV_STATE system_status() const override; MAV_STATE system_status() const override;
void get_sensor_status_flags(uint32_t &present, uint32_t &enabled, uint32_t &health);
}; };

View File

@ -17,6 +17,8 @@ public:
GCS_MAVLINK_Tracker &chan(const uint8_t ofs) override { return _chan[ofs]; }; GCS_MAVLINK_Tracker &chan(const uint8_t ofs) override { return _chan[ofs]; };
const GCS_MAVLINK_Tracker &chan(const uint8_t ofs) const override { return _chan[ofs]; }; const GCS_MAVLINK_Tracker &chan(const uint8_t ofs) const override { return _chan[ofs]; };
void get_sensor_status_flags(uint32_t &present, uint32_t &enabled, uint32_t &health);
private: private:
void request_datastream_position(uint8_t sysid, uint8_t compid); void request_datastream_position(uint8_t sysid, uint8_t compid);