mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 03:53:34 +08:00
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:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user