Browse Source

commander move telemetry checks to new preflightcheck helper

sbg
Daniel Agar 7 years ago
parent
commit
7bc3a12efe
  1. 4
      src/modules/commander/Commander.hpp
  2. 411
      src/modules/commander/commander.cpp

4
src/modules/commander/Commander.hpp

@ -121,13 +121,13 @@ private: @@ -121,13 +121,13 @@ private:
* Update the telemetry status and the corresponding status variables.
* Perform system checks when new telemetry link connected.
*/
void poll_telemetry_status(bool checkAirspeed, bool *hotplug_timeout);
void poll_telemetry_status();
/**
* Checks the status of all available data links and handles switching between different system telemetry states.
*/
void data_link_checks(int32_t highlatencydatalink_loss_timeout, int32_t highlatencydatalink_regain_timeout,
int32_t datalink_loss_timeout, int32_t datalink_regain_timeout, bool *status_changed);
int32_t datalink_loss_timeout, int32_t datalink_regain_timeout, bool *status_changed);
// telemetry variables
struct telemetry_data {

411
src/modules/commander/commander.cpp

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save