mavlink: move thread handling into MavlinkReceiver

In my opinion this makes it much cleaner and will allow mavlink main to
directly call the receiver.
This commit is contained in:
Julian Oes
2021-05-02 13:45:39 -04:00
committed by Daniel Agar
parent 71bd35fcaa
commit 4498509426
4 changed files with 29 additions and 31 deletions
+2 -2
View File
@@ -80,6 +80,7 @@
#include "mavlink_command_sender.h"
#include "mavlink_messages.h"
#include "mavlink_receiver.h"
#include "mavlink_shell.h"
#include "mavlink_ulog.h"
@@ -527,6 +528,7 @@ public:
bool radio_status_critical() const { return _radio_status_critical; }
private:
MavlinkReceiver _receiver;
int _instance_id{0};
bool _transmitting_enabled{true};
@@ -573,8 +575,6 @@ private:
mavlink_channel_t _channel{MAVLINK_COMM_0};
pthread_t _receive_thread {};
bool _forwarding_on{false};
bool _ftp_on{false};
bool _use_software_mav_throttling{false};