PX4 Firmware
PX4 Autopilot Software http://px4.io
|
MAVLink 1.0 message formatters definition. More...
#include "mavlink_stream.h"
Go to the source code of this file.
Classes | |
class | StreamListItem |
Functions | |
const char * | get_stream_name (const uint16_t msg_id) |
MavlinkStream * | create_mavlink_stream (const char *stream_name, Mavlink *mavlink) |
void | get_mavlink_navigation_mode (const struct vehicle_status_s *const status, uint8_t *mavlink_base_mode, union px4_custom_mode *custom_mode) |
MAVLink 1.0 message formatters definition.
Definition in file mavlink_messages.h.
MavlinkStream* create_mavlink_stream | ( | const char * | stream_name, |
Mavlink * | mavlink | ||
) |
Definition at line 5142 of file mavlink_messages.cpp.
Referenced by Mavlink::configure_stream(), and StreamListItem::StreamListItem().
void get_mavlink_navigation_mode | ( | const struct vehicle_status_s *const | status, |
uint8_t * | mavlink_base_mode, | ||
union px4_custom_mode * | custom_mode | ||
) |
Definition at line 134 of file mavlink_messages.cpp.
References vehicle_status_s::arming_state, px4_custom_mode::data, vehicle_status_s::hil_state, px4_custom_mode::main_mode, vehicle_status_s::nav_state, PX4_CUSTOM_MAIN_MODE_ACRO, PX4_CUSTOM_MAIN_MODE_ALTCTL, PX4_CUSTOM_MAIN_MODE_AUTO, PX4_CUSTOM_MAIN_MODE_MANUAL, PX4_CUSTOM_MAIN_MODE_OFFBOARD, PX4_CUSTOM_MAIN_MODE_POSCTL, PX4_CUSTOM_MAIN_MODE_RATTITUDE, PX4_CUSTOM_MAIN_MODE_STABILIZED, PX4_CUSTOM_SUB_MODE_AUTO_FOLLOW_TARGET, PX4_CUSTOM_SUB_MODE_AUTO_LAND, PX4_CUSTOM_SUB_MODE_AUTO_LOITER, PX4_CUSTOM_SUB_MODE_AUTO_MISSION, PX4_CUSTOM_SUB_MODE_AUTO_PRECLAND, PX4_CUSTOM_SUB_MODE_AUTO_RTGS, PX4_CUSTOM_SUB_MODE_AUTO_RTL, PX4_CUSTOM_SUB_MODE_AUTO_TAKEOFF, PX4_CUSTOM_SUB_MODE_POSCTL_ORBIT, px4_custom_mode::sub_mode, and vehicle_status_s::vehicle_type.
Referenced by get_mavlink_mode_state(), StreamListItem::StreamListItem(), and MavlinkStreamHighLatency2::write_vehicle_status().
const char* get_stream_name | ( | const uint16_t | msg_id | ) |
Definition at line 5130 of file mavlink_messages.cpp.
Referenced by MavlinkReceiver::set_message_interval(), and StreamListItem::StreamListItem().