mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 11:51:36 +08:00
change mavlink version (1.0->2.0) for simulation
This commit is contained in:
@@ -59,8 +59,8 @@
|
||||
#include <uORB/uORB.h>
|
||||
#include <uORB/topics/optical_flow.h>
|
||||
#include <uORB/topics/distance_sensor.h>
|
||||
#include <v1.0/mavlink_types.h>
|
||||
#include <v1.0/common/mavlink.h>
|
||||
#include <v2.0/mavlink_types.h>
|
||||
#include <v2.0/common/mavlink.h>
|
||||
#include <geo/geo.h>
|
||||
namespace simulator
|
||||
{
|
||||
@@ -392,7 +392,8 @@ private:
|
||||
void pollForMAVLinkMessages(bool publish, int udp_port);
|
||||
|
||||
void pack_actuator_message(mavlink_hil_actuator_controls_t &actuator_msg, unsigned index);
|
||||
void send_mavlink_message(const uint8_t msgid, const void *msg, uint8_t component_ID);
|
||||
//void send_mavlink_message(const uint8_t msgid, const void *msg, uint8_t component_ID)
|
||||
void send_mavlink_message(const mavlink_message_t &aMsg);
|
||||
void update_sensors(mavlink_hil_sensor_t *imu);
|
||||
void update_gps(mavlink_hil_gps_t *gps_sim);
|
||||
void parameters_update(bool force);
|
||||
|
||||
Reference in New Issue
Block a user