no need to send non-controls mavlink messages to jMAVSim because we can use mavlink app with udp

This commit is contained in:
tumbili
2015-06-08 17:21:21 +02:00
committed by Mark Charlebois
parent 5694e37854
commit 065ec5b2dc
2 changed files with 8 additions and 67 deletions

View File

@@ -266,16 +266,12 @@ private:
int _fd;
unsigned char _buf[200];
hrt_abstime _time_last;
hrt_abstime _heartbeat_last;
hrt_abstime _attitude_last;
hrt_abstime _manual_last;
struct sockaddr_in _srcaddr;
socklen_t _addrlen = sizeof(_srcaddr);
void poll_topics();
void poll_actuators();
void handle_message(mavlink_message_t *msg);
void send_data();
void send_controls();
void pack_actuator_message(mavlink_hil_controls_t &actuator_msg);
void send_mavlink_message(const uint8_t msgid, const void *msg, uint8_t component_ID);
void update_sensors(struct sensor_combined_s *sensor, mavlink_hil_sensor_t *imu);