mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 06:30:34 +08:00
commander+mavlink: implement MAVLink standard modes
This commit is contained in:
@@ -124,6 +124,11 @@
|
||||
#include "streams/FIGURE_EIGHT_EXECUTION_STATUS.hpp"
|
||||
#endif // MAVLINK_MSG_ID_FIGURE_EIGHT_EXECUTION_STATUS
|
||||
|
||||
#ifdef MAVLINK_MSG_ID_AVAILABLE_MODES // Only defined if development.xml is used
|
||||
#include "streams/AVAILABLE_MODES.hpp"
|
||||
#include "streams/CURRENT_MODE.hpp"
|
||||
#endif
|
||||
|
||||
#if !defined(CONSTRAINED_FLASH)
|
||||
# include "streams/ADSB_VEHICLE.hpp"
|
||||
# include "streams/AUTOPILOT_STATE_FOR_GIMBAL_DEVICE.hpp"
|
||||
@@ -496,8 +501,14 @@ static const StreamListItem streams_list[] = {
|
||||
create_stream_list_item<MavlinkStreamUavionixADSBOutCfg>(),
|
||||
#endif // UAVIONIX_ADSB_OUT_CFG_HPP
|
||||
#if defined(UAVIONIX_ADSB_OUT_DYNAMIC_HPP)
|
||||
create_stream_list_item<MavlinkStreamUavionixADSBOutDynamic>()
|
||||
create_stream_list_item<MavlinkStreamUavionixADSBOutDynamic>(),
|
||||
#endif // UAVIONIX_ADSB_OUT_DYNAMIC_HPP
|
||||
#if defined(AVAILABLE_MODES_HPP)
|
||||
create_stream_list_item<MavlinkStreamAvailableModes>(),
|
||||
#endif // AVAILABLE_MODES_HPP
|
||||
#if defined(CURRENT_MODE_HPP)
|
||||
create_stream_list_item<MavlinkStreamCurrentMode>(),
|
||||
#endif // CURRENT_MODE_HPP
|
||||
};
|
||||
|
||||
const char *get_stream_name(const uint16_t msg_id)
|
||||
|
||||
Reference in New Issue
Block a user