mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 20:51:36 +08:00
mavlink: refactor mavlink_log
This moves the mavlink_log interface from ioctl to uORB and enables the mavlink statusmessage output for Snapdragon. The API changes will lead to changes in all modules that are using it.
This commit is contained in:
@@ -75,9 +75,9 @@
|
||||
|
||||
#include <systemlib/param/param.h>
|
||||
#include <systemlib/systemlib.h>
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <systemlib/err.h>
|
||||
#include <systemlib/airspeed.h>
|
||||
#include <mavlink/mavlink_log.h>
|
||||
#include <commander/px4_custom_mode.h>
|
||||
#include <geo/geo.h>
|
||||
|
||||
@@ -1882,7 +1882,7 @@ MavlinkReceiver::receive_thread(void *arg)
|
||||
struct sockaddr_in * srcaddr_last = _mavlink->get_client_source_address();
|
||||
int localhost = (127 << 24) + 1;
|
||||
if (!_mavlink->get_client_source_initialized()) {
|
||||
|
||||
|
||||
// set the address either if localhost or if 3 seconds have passed
|
||||
// this ensures that a GCS running on localhost can get a hold of
|
||||
// the system within the first N seconds
|
||||
|
||||
Reference in New Issue
Block a user