PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <termios.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/time.h>
#include <px4_platform_common/tasks.h>
#include "simulator.h"
#include <simulator_config.h>
#include "errno.h"
#include <lib/ecl/geo/geo.h>
#include <drivers/drv_pwm_output.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <pthread.h>
#include <conversion/rotation.h>
#include <mathlib/mathlib.h>
#include <limits>
Go to the source code of this file.
Functions | |
static void | fill_rc_input_msg (input_rc_s *rc, mavlink_rc_channels_t *rc_channels) |
Variables | |
static int | _fd |
static unsigned char | _buf [2048] |
static sockaddr_in | _srcaddr |
static unsigned | _addrlen = sizeof(_srcaddr) |
const unsigned | mode_flag_armed = 128 |
const unsigned | mode_flag_custom = 1 |
|
static |
Definition at line 195 of file simulator_mavlink.cpp.
References input_rc_s::channel_count, hrt_absolute_time(), input_rc_s::rssi, input_rc_s::timestamp, input_rc_s::timestamp_last_signal, and input_rc_s::values.
Referenced by Simulator::handle_message_rc_channels().
|
static |
Definition at line 69 of file simulator_mavlink.cpp.
Referenced by Simulator::poll_for_MAVLink_messages().
|
static |
Definition at line 67 of file simulator_mavlink.cpp.
Referenced by simulator::Report< simulator::RawGPSData >::copyData(), Simulator::poll_for_MAVLink_messages(), CDevNode::read(), simulator::Report< simulator::RawGPSData >::Report(), CDevNode::write(), and simulator::Report< simulator::RawGPSData >::writeData().
|
static |
Definition at line 66 of file simulator_mavlink.cpp.
Referenced by __EXPORT::I2C::external(), px4::logger::LogWriterFile::LogFileBuffer::fd(), Simulator::poll_for_MAVLink_messages(), and Simulator::send_mavlink_message().
|
static |
Definition at line 68 of file simulator_mavlink.cpp.
Referenced by Simulator::poll_for_MAVLink_messages(), and Simulator::send_mavlink_message().
const unsigned mode_flag_armed = 128 |
Definition at line 71 of file simulator_mavlink.cpp.
Referenced by Simulator::actuator_controls_from_outputs().
const unsigned mode_flag_custom = 1 |
Definition at line 72 of file simulator_mavlink.cpp.
Referenced by Simulator::actuator_controls_from_outputs().