Removed subscribtion to multiple _telemetry_status instances.

Since commander handles all telemetry_status the same there is no need to subscribe to multiple instances.


Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
Claudio Micheli
2019-03-12 11:24:33 +01:00
committed by Beat Küng
parent a53594135b
commit fb990d7de3
5 changed files with 87 additions and 100 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ private:
* Checks the status of all available data links and handles switching between different system telemetry states.
*/
void data_link_check(bool &status_changed);
int _telemetry_status_sub[ORB_MULTI_MAX_INSTANCES] {};
int _telemetry_status_sub{-1};
hrt_abstime _datalink_last_heartbeat_gcs{0};