Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
18161739
Commit
18161739
authored
Apr 17, 2012
by
LM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed 0.9 protocol specs, updated remaining protocol to most recent reference implementation
parent
9f94fef5
Changes
182
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
182 changed files
with
574 additions
and
43064 deletions
+574
-43064
ardupilotmega.h
mavlink/include/v0.9/ardupilotmega/ardupilotmega.h
+0
-153
mavlink.h
mavlink/include/v0.9/ardupilotmega/mavlink.h
+0
-27
mavlink_msg_ap_adc.h
mavlink/include/v0.9/ardupilotmega/mavlink_msg_ap_adc.h
+0
-254
mavlink_msg_digicam_configure.h
...nclude/v0.9/ardupilotmega/mavlink_msg_digicam_configure.h
+0
-364
mavlink_msg_digicam_control.h
.../include/v0.9/ardupilotmega/mavlink_msg_digicam_control.h
+0
-342
mavlink_msg_fence_fetch_point.h
...nclude/v0.9/ardupilotmega/mavlink_msg_fence_fetch_point.h
+0
-188
mavlink_msg_fence_point.h
mavlink/include/v0.9/ardupilotmega/mavlink_msg_fence_point.h
+0
-254
mavlink_msg_fence_status.h
...ink/include/v0.9/ardupilotmega/mavlink_msg_fence_status.h
+0
-210
mavlink_msg_hwstatus.h
mavlink/include/v0.9/ardupilotmega/mavlink_msg_hwstatus.h
+0
-166
mavlink_msg_meminfo.h
mavlink/include/v0.9/ardupilotmega/mavlink_msg_meminfo.h
+0
-166
mavlink_msg_mount_configure.h
.../include/v0.9/ardupilotmega/mavlink_msg_mount_configure.h
+0
-254
mavlink_msg_mount_control.h
...nk/include/v0.9/ardupilotmega/mavlink_msg_mount_control.h
+0
-254
mavlink_msg_mount_status.h
...ink/include/v0.9/ardupilotmega/mavlink_msg_mount_status.h
+0
-232
mavlink_msg_sensor_offsets.h
...k/include/v0.9/ardupilotmega/mavlink_msg_sensor_offsets.h
+0
-386
mavlink_msg_set_mag_offsets.h
.../include/v0.9/ardupilotmega/mavlink_msg_set_mag_offsets.h
+0
-232
testsuite.h
mavlink/include/v0.9/ardupilotmega/testsuite.h
+0
-852
version.h
mavlink/include/v0.9/ardupilotmega/version.h
+0
-12
checksum.h
mavlink/include/v0.9/checksum.h
+0
-89
common.h
mavlink/include/v0.9/common/common.h
+0
-208
mavlink.h
mavlink/include/v0.9/common/mavlink.h
+0
-27
mavlink_msg_action.h
mavlink/include/v0.9/common/mavlink_msg_action.h
+0
-188
mavlink_msg_action_ack.h
mavlink/include/v0.9/common/mavlink_msg_action_ack.h
+0
-166
mavlink_msg_attitude.h
mavlink/include/v0.9/common/mavlink_msg_attitude.h
+0
-276
mavlink_msg_auth_key.h
mavlink/include/v0.9/common/mavlink_msg_auth_key.h
+0
-144
mavlink_msg_boot.h
mavlink/include/v0.9/common/mavlink_msg_boot.h
+0
-144
mavlink_msg_change_operator_control.h
...include/v0.9/common/mavlink_msg_change_operator_control.h
+0
-204
mavlink_msg_change_operator_control_ack.h
...ude/v0.9/common/mavlink_msg_change_operator_control_ack.h
+0
-188
mavlink_msg_command.h
mavlink/include/v0.9/common/mavlink_msg_command.h
+0
-298
mavlink_msg_command_ack.h
mavlink/include/v0.9/common/mavlink_msg_command_ack.h
+0
-166
mavlink_msg_control_status.h
mavlink/include/v0.9/common/mavlink_msg_control_status.h
+0
-298
mavlink_msg_debug.h
mavlink/include/v0.9/common/mavlink_msg_debug.h
+0
-166
mavlink_msg_debug_vect.h
mavlink/include/v0.9/common/mavlink_msg_debug_vect.h
+0
-226
mavlink_msg_global_position.h
mavlink/include/v0.9/common/mavlink_msg_global_position.h
+0
-276
mavlink_msg_global_position_int.h
...ink/include/v0.9/common/mavlink_msg_global_position_int.h
+0
-254
mavlink_msg_gps_local_origin_set.h
...nk/include/v0.9/common/mavlink_msg_gps_local_origin_set.h
+0
-188
mavlink_msg_gps_raw.h
mavlink/include/v0.9/common/mavlink_msg_gps_raw.h
+0
-320
mavlink_msg_gps_raw_int.h
mavlink/include/v0.9/common/mavlink_msg_gps_raw_int.h
+0
-320
mavlink_msg_gps_set_global_origin.h
...k/include/v0.9/common/mavlink_msg_gps_set_global_origin.h
+0
-232
mavlink_msg_gps_status.h
mavlink/include/v0.9/common/mavlink_msg_gps_status.h
+0
-252
mavlink_msg_heartbeat.h
mavlink/include/v0.9/common/mavlink_msg_heartbeat.h
+0
-185
mavlink_msg_hil_controls.h
mavlink/include/v0.9/common/mavlink_msg_hil_controls.h
+0
-276
mavlink_msg_hil_state.h
mavlink/include/v0.9/common/mavlink_msg_hil_state.h
+0
-474
mavlink_msg_local_position.h
mavlink/include/v0.9/common/mavlink_msg_local_position.h
+0
-276
mavlink_msg_local_position_setpoint.h
...include/v0.9/common/mavlink_msg_local_position_setpoint.h
+0
-210
mavlink_msg_local_position_setpoint_set.h
...ude/v0.9/common/mavlink_msg_local_position_setpoint_set.h
+0
-254
mavlink_msg_manual_control.h
mavlink/include/v0.9/common/mavlink_msg_manual_control.h
+0
-320
mavlink_msg_named_value_float.h
mavlink/include/v0.9/common/mavlink_msg_named_value_float.h
+0
-160
mavlink_msg_named_value_int.h
mavlink/include/v0.9/common/mavlink_msg_named_value_int.h
+0
-160
mavlink_msg_nav_controller_output.h
...k/include/v0.9/common/mavlink_msg_nav_controller_output.h
+0
-298
mavlink_msg_object_detection_event.h
.../include/v0.9/common/mavlink_msg_object_detection_event.h
+0
-270
mavlink_msg_optical_flow.h
mavlink/include/v0.9/common/mavlink_msg_optical_flow.h
+0
-254
mavlink_msg_param_request_list.h
mavlink/include/v0.9/common/mavlink_msg_param_request_list.h
+0
-166
mavlink_msg_param_request_read.h
mavlink/include/v0.9/common/mavlink_msg_param_request_read.h
+0
-204
mavlink_msg_param_set.h
mavlink/include/v0.9/common/mavlink_msg_param_set.h
+0
-204
mavlink_msg_param_value.h
mavlink/include/v0.9/common/mavlink_msg_param_value.h
+0
-204
mavlink_msg_ping.h
mavlink/include/v0.9/common/mavlink_msg_ping.h
+0
-210
mavlink_msg_position_target.h
mavlink/include/v0.9/common/mavlink_msg_position_target.h
+0
-210
mavlink_msg_raw_imu.h
mavlink/include/v0.9/common/mavlink_msg_raw_imu.h
+0
-342
mavlink_msg_raw_pressure.h
mavlink/include/v0.9/common/mavlink_msg_raw_pressure.h
+0
-232
mavlink_msg_rc_channels_override.h
...nk/include/v0.9/common/mavlink_msg_rc_channels_override.h
+0
-342
mavlink_msg_rc_channels_raw.h
mavlink/include/v0.9/common/mavlink_msg_rc_channels_raw.h
+0
-320
mavlink_msg_rc_channels_scaled.h
mavlink/include/v0.9/common/mavlink_msg_rc_channels_scaled.h
+0
-320
mavlink_msg_request_data_stream.h
...ink/include/v0.9/common/mavlink_msg_request_data_stream.h
+0
-232
mavlink_msg_roll_pitch_yaw_speed_thrust_setpoint.h
...common/mavlink_msg_roll_pitch_yaw_speed_thrust_setpoint.h
+0
-232
mavlink_msg_roll_pitch_yaw_thrust_setpoint.h
.../v0.9/common/mavlink_msg_roll_pitch_yaw_thrust_setpoint.h
+0
-232
mavlink_msg_safety_allowed_area.h
...ink/include/v0.9/common/mavlink_msg_safety_allowed_area.h
+0
-276
mavlink_msg_safety_set_allowed_area.h
...include/v0.9/common/mavlink_msg_safety_set_allowed_area.h
+0
-320
mavlink_msg_scaled_imu.h
mavlink/include/v0.9/common/mavlink_msg_scaled_imu.h
+0
-342
mavlink_msg_scaled_pressure.h
mavlink/include/v0.9/common/mavlink_msg_scaled_pressure.h
+0
-210
mavlink_msg_servo_output_raw.h
mavlink/include/v0.9/common/mavlink_msg_servo_output_raw.h
+0
-298
mavlink_msg_set_altitude.h
mavlink/include/v0.9/common/mavlink_msg_set_altitude.h
+0
-166
mavlink_msg_set_mode.h
mavlink/include/v0.9/common/mavlink_msg_set_mode.h
+0
-166
mavlink_msg_set_nav_mode.h
mavlink/include/v0.9/common/mavlink_msg_set_nav_mode.h
+0
-166
mavlink_msg_set_roll_pitch_yaw_speed_thrust.h
...v0.9/common/mavlink_msg_set_roll_pitch_yaw_speed_thrust.h
+0
-254
mavlink_msg_set_roll_pitch_yaw_thrust.h
...clude/v0.9/common/mavlink_msg_set_roll_pitch_yaw_thrust.h
+0
-254
mavlink_msg_state_correction.h
mavlink/include/v0.9/common/mavlink_msg_state_correction.h
+0
-320
mavlink_msg_statustext.h
mavlink/include/v0.9/common/mavlink_msg_statustext.h
+0
-160
mavlink_msg_sys_status.h
mavlink/include/v0.9/common/mavlink_msg_sys_status.h
+0
-276
mavlink_msg_system_time.h
mavlink/include/v0.9/common/mavlink_msg_system_time.h
+0
-144
mavlink_msg_system_time_utc.h
mavlink/include/v0.9/common/mavlink_msg_system_time_utc.h
+0
-166
mavlink_msg_vfr_hud.h
mavlink/include/v0.9/common/mavlink_msg_vfr_hud.h
+0
-254
mavlink_msg_waypoint.h
mavlink/include/v0.9/common/mavlink_msg_waypoint.h
+0
-430
mavlink_msg_waypoint_ack.h
mavlink/include/v0.9/common/mavlink_msg_waypoint_ack.h
+0
-188
mavlink_msg_waypoint_clear_all.h
mavlink/include/v0.9/common/mavlink_msg_waypoint_clear_all.h
+0
-166
mavlink_msg_waypoint_count.h
mavlink/include/v0.9/common/mavlink_msg_waypoint_count.h
+0
-188
mavlink_msg_waypoint_current.h
mavlink/include/v0.9/common/mavlink_msg_waypoint_current.h
+0
-144
mavlink_msg_waypoint_reached.h
mavlink/include/v0.9/common/mavlink_msg_waypoint_reached.h
+0
-144
mavlink_msg_waypoint_request.h
mavlink/include/v0.9/common/mavlink_msg_waypoint_request.h
+0
-188
mavlink_msg_waypoint_request_list.h
...k/include/v0.9/common/mavlink_msg_waypoint_request_list.h
+0
-166
mavlink_msg_waypoint_set_current.h
...nk/include/v0.9/common/mavlink_msg_waypoint_set_current.h
+0
-188
testsuite.h
mavlink/include/v0.9/common/testsuite.h
+0
-3700
version.h
mavlink/include/v0.9/common/version.h
+0
-12
mavlink_helpers.h
mavlink/include/v0.9/mavlink_helpers.h
+0
-488
mavlink_types.h
mavlink/include/v0.9/mavlink_types.h
+0
-298
mavlink_msg_heartbeat.h
mavlink/include/v0.9/minimal/mavlink_msg_heartbeat.h
+0
-185
minimal.h
mavlink/include/v0.9/minimal/minimal.h
+0
-53
testsuite.h
mavlink/include/v0.9/minimal/testsuite.h
+0
-82
version.h
mavlink/include/v0.9/minimal/version.h
+0
-12
mavlink.h
mavlink/include/v0.9/pixhawk/mavlink.h
+0
-27
mavlink_msg_attitude_control.h
mavlink/include/v0.9/pixhawk/mavlink_msg_attitude_control.h
+0
-320
mavlink_msg_brief_feature.h
mavlink/include/v0.9/pixhawk/mavlink_msg_brief_feature.h
+0
-292
mavlink_msg_data_transmission_handshake.h
...de/v0.9/pixhawk/mavlink_msg_data_transmission_handshake.h
+0
-232
mavlink_msg_encapsulated_data.h
mavlink/include/v0.9/pixhawk/mavlink_msg_encapsulated_data.h
+0
-160
mavlink_msg_image_available.h
mavlink/include/v0.9/pixhawk/mavlink_msg_image_available.h
+0
-628
mavlink_msg_image_trigger_control.h
.../include/v0.9/pixhawk/mavlink_msg_image_trigger_control.h
+0
-144
mavlink_msg_image_triggered.h
mavlink/include/v0.9/pixhawk/mavlink_msg_image_triggered.h
+0
-386
mavlink_msg_marker.h
mavlink/include/v0.9/pixhawk/mavlink_msg_marker.h
+0
-276
mavlink_msg_pattern_detected.h
mavlink/include/v0.9/pixhawk/mavlink_msg_pattern_detected.h
+0
-204
mavlink_msg_point_of_interest.h
mavlink/include/v0.9/pixhawk/mavlink_msg_point_of_interest.h
+0
-292
mavlink_msg_point_of_interest_connection.h
...e/v0.9/pixhawk/mavlink_msg_point_of_interest_connection.h
+0
-358
mavlink_msg_position_control_offset_set.h
...de/v0.9/pixhawk/mavlink_msg_position_control_offset_set.h
+0
-254
mavlink_msg_position_control_setpoint.h
...lude/v0.9/pixhawk/mavlink_msg_position_control_setpoint.h
+0
-232
mavlink_msg_position_control_setpoint_set.h
.../v0.9/pixhawk/mavlink_msg_position_control_setpoint_set.h
+0
-276
mavlink_msg_raw_aux.h
mavlink/include/v0.9/pixhawk/mavlink_msg_raw_aux.h
+0
-276
mavlink_msg_set_cam_shutter.h
mavlink/include/v0.9/pixhawk/mavlink_msg_set_cam_shutter.h
+0
-254
mavlink_msg_vicon_position_estimate.h
...nclude/v0.9/pixhawk/mavlink_msg_vicon_position_estimate.h
+0
-276
mavlink_msg_vision_position_estimate.h
...clude/v0.9/pixhawk/mavlink_msg_vision_position_estimate.h
+0
-276
mavlink_msg_vision_speed_estimate.h
.../include/v0.9/pixhawk/mavlink_msg_vision_speed_estimate.h
+0
-210
mavlink_msg_watchdog_command.h
mavlink/include/v0.9/pixhawk/mavlink_msg_watchdog_command.h
+0
-210
mavlink_msg_watchdog_heartbeat.h
...ink/include/v0.9/pixhawk/mavlink_msg_watchdog_heartbeat.h
+0
-166
mavlink_msg_watchdog_process_info.h
.../include/v0.9/pixhawk/mavlink_msg_watchdog_process_info.h
+0
-227
mavlink_msg_watchdog_process_status.h
...nclude/v0.9/pixhawk/mavlink_msg_watchdog_process_status.h
+0
-254
pixhawk.h
mavlink/include/v0.9/pixhawk/pixhawk.h
+0
-86
testsuite.h
mavlink/include/v0.9/pixhawk/testsuite.h
+0
-1312
version.h
mavlink/include/v0.9/pixhawk/version.h
+0
-12
protocol.h
mavlink/include/v0.9/protocol.h
+0
-319
mavlink.h
mavlink/include/v0.9/slugs/mavlink.h
+0
-27
mavlink_msg_air_data.h
mavlink/include/v0.9/slugs/mavlink_msg_air_data.h
+0
-188
mavlink_msg_cpu_load.h
mavlink/include/v0.9/slugs/mavlink_msg_cpu_load.h
+0
-188
mavlink_msg_ctrl_srfc_pt.h
mavlink/include/v0.9/slugs/mavlink_msg_ctrl_srfc_pt.h
+0
-166
mavlink_msg_data_log.h
mavlink/include/v0.9/slugs/mavlink_msg_data_log.h
+0
-254
mavlink_msg_diagnostic.h
mavlink/include/v0.9/slugs/mavlink_msg_diagnostic.h
+0
-254
mavlink_msg_gps_date_time.h
mavlink/include/v0.9/slugs/mavlink_msg_gps_date_time.h
+0
-276
mavlink_msg_mid_lvl_cmds.h
mavlink/include/v0.9/slugs/mavlink_msg_mid_lvl_cmds.h
+0
-210
mavlink_msg_sensor_bias.h
mavlink/include/v0.9/slugs/mavlink_msg_sensor_bias.h
+0
-254
mavlink_msg_slugs_action.h
mavlink/include/v0.9/slugs/mavlink_msg_slugs_action.h
+0
-188
mavlink_msg_slugs_navigation.h
mavlink/include/v0.9/slugs/mavlink_msg_slugs_navigation.h
+0
-320
slugs.h
mavlink/include/v0.9/slugs/slugs.h
+0
-62
testsuite.h
mavlink/include/v0.9/slugs/testsuite.h
+0
-552
mavlink.h
mavlink/include/v0.9/test/mavlink.h
+0
-27
mavlink_msg_test_types.h
mavlink/include/v0.9/test/mavlink_msg_test_types.h
+0
-610
test.h
mavlink/include/v0.9/test/test.h
+0
-53
testsuite.h
mavlink/include/v0.9/test/testsuite.h
+0
-120
version.h
mavlink/include/v0.9/test/version.h
+0
-12
mavlink.h
mavlink/include/v0.9/ualberta/mavlink.h
+0
-27
mavlink_msg_nav_filter_bias.h
mavlink/include/v0.9/ualberta/mavlink_msg_nav_filter_bias.h
+0
-276
mavlink_msg_radio_calibration.h
...ink/include/v0.9/ualberta/mavlink_msg_radio_calibration.h
+0
-259
mavlink_msg_ualberta_sys_status.h
...k/include/v0.9/ualberta/mavlink_msg_ualberta_sys_status.h
+0
-188
testsuite.h
mavlink/include/v0.9/ualberta/testsuite.h
+0
-192
ualberta.h
mavlink/include/v0.9/ualberta/ualberta.h
+0
-93
version.h
mavlink/include/v0.9/ualberta/version.h
+0
-12
ardupilotmega.h
mavlink/include/v1.0/ardupilotmega/ardupilotmega.h
+8
-8
mavlink_msg_dcm.h
mavlink/include/v1.0/ardupilotmega/mavlink_msg_dcm.h
+8
-8
mavlink_msg_simstate.h
mavlink/include/v1.0/ardupilotmega/mavlink_msg_simstate.h
+8
-8
testsuite.h
mavlink/include/v1.0/ardupilotmega/testsuite.h
+116
-0
version.h
mavlink/include/v1.0/ardupilotmega/version.h
+1
-1
common.h
mavlink/include/v1.0/common/common.h
+23
-41
mavlink_msg_heartbeat.h
mavlink/include/v1.0/common/mavlink_msg_heartbeat.h
+17
-17
mavlink_msg_optical_flow.h
mavlink/include/v1.0/common/mavlink_msg_optical_flow.h
+103
-59
mavlink_msg_statustext.h
mavlink/include/v1.0/common/mavlink_msg_statustext.h
+5
-5
testsuite.h
mavlink/include/v1.0/common/testsuite.h
+10
-6
version.h
mavlink/include/v1.0/common/version.h
+2
-2
matrixpilot.h
mavlink/include/v1.0/matrixpilot/matrixpilot.h
+53
-0
mavlink.h
mavlink/include/v1.0/matrixpilot/mavlink.h
+6
-6
testsuite.h
mavlink/include/v1.0/matrixpilot/testsuite.h
+36
-0
version.h
mavlink/include/v1.0/matrixpilot/version.h
+3
-3
mavlink_protobuf_manager.hpp
mavlink/include/v1.0/mavlink_protobuf_manager.hpp
+0
-377
mavlink_msg_heartbeat.h
mavlink/include/v1.0/minimal/mavlink_msg_heartbeat.h
+15
-15
minimal.h
mavlink/include/v1.0/minimal/minimal.h
+97
-0
version.h
mavlink/include/v1.0/minimal/version.h
+1
-1
mavlink_msg_data_transmission_handshake.h
...de/v1.0/pixhawk/mavlink_msg_data_transmission_handshake.h
+39
-83
pixhawk.h
mavlink/include/v1.0/pixhawk/pixhawk.h
+2
-2
pixhawk.pb.h
mavlink/include/v1.0/pixhawk/pixhawk.pb.h
+0
-3663
testsuite.h
mavlink/include/v1.0/pixhawk/testsuite.h
+7
-11
version.h
mavlink/include/v1.0/pixhawk/version.h
+1
-1
sensesoar.h
mavlink/include/v1.0/sensesoar/sensesoar.h
+3
-3
version.h
mavlink/include/v1.0/sensesoar/version.h
+1
-1
slugs.h
mavlink/include/v1.0/slugs/slugs.h
+3
-3
version.h
mavlink/include/v1.0/slugs/version.h
+1
-1
version.h
mavlink/include/v1.0/test/version.h
+1
-1
ualberta.h
mavlink/include/v1.0/ualberta/ualberta.h
+3
-3
version.h
mavlink/include/v1.0/ualberta/version.h
+1
-1
No files found.
mavlink/include/v0.9/ardupilotmega/ardupilotmega.h
deleted
100644 → 0
View file @
9f94fef5
This diff is collapsed.
Click to expand it.
mavlink/include/v0.9/ardupilotmega/mavlink.h
deleted
100644 → 0
View file @
9f94fef5
/** @file
* @brief MAVLink comm protocol built from ardupilotmega.xml
* @see http://pixhawk.ethz.ch/software/mavlink
*/
#ifndef MAVLINK_H
#define MAVLINK_H
#ifndef MAVLINK_STX
#define MAVLINK_STX 85
#endif
#ifndef MAVLINK_ENDIAN
#define MAVLINK_ENDIAN MAVLINK_BIG_ENDIAN
#endif
#ifndef MAVLINK_ALIGNED_FIELDS
#define MAVLINK_ALIGNED_FIELDS 0
#endif
#ifndef MAVLINK_CRC_EXTRA
#define MAVLINK_CRC_EXTRA 0
#endif
#include "version.h"
#include "ardupilotmega.h"
#endif // MAVLINK_H
mavlink/include/v0.9/ardupilotmega/mavlink_msg_ap_adc.h
deleted
100644 → 0
View file @
9f94fef5
// MESSAGE AP_ADC PACKING
#define MAVLINK_MSG_ID_AP_ADC 153
typedef
struct
__mavlink_ap_adc_t
{
uint16_t
adc1
;
///< ADC output 1
uint16_t
adc2
;
///< ADC output 2
uint16_t
adc3
;
///< ADC output 3
uint16_t
adc4
;
///< ADC output 4
uint16_t
adc5
;
///< ADC output 5
uint16_t
adc6
;
///< ADC output 6
}
mavlink_ap_adc_t
;
#define MAVLINK_MSG_ID_AP_ADC_LEN 12
#define MAVLINK_MSG_ID_153_LEN 12
#define MAVLINK_MESSAGE_INFO_AP_ADC { \
"AP_ADC", \
6, \
{ { "adc1", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_ap_adc_t, adc1) }, \
{ "adc2", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_ap_adc_t, adc2) }, \
{ "adc3", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_ap_adc_t, adc3) }, \
{ "adc4", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_ap_adc_t, adc4) }, \
{ "adc5", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_ap_adc_t, adc5) }, \
{ "adc6", NULL, MAVLINK_TYPE_UINT16_T, 0, 10, offsetof(mavlink_ap_adc_t, adc6) }, \
} \
}
/**
* @brief Pack a ap_adc message
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param msg The MAVLink message to compress the data into
*
* @param adc1 ADC output 1
* @param adc2 ADC output 2
* @param adc3 ADC output 3
* @param adc4 ADC output 4
* @param adc5 ADC output 5
* @param adc6 ADC output 6
* @return length of the message in bytes (excluding serial stream start sign)
*/
static
inline
uint16_t
mavlink_msg_ap_adc_pack
(
uint8_t
system_id
,
uint8_t
component_id
,
mavlink_message_t
*
msg
,
uint16_t
adc1
,
uint16_t
adc2
,
uint16_t
adc3
,
uint16_t
adc4
,
uint16_t
adc5
,
uint16_t
adc6
)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char
buf
[
12
];
_mav_put_uint16_t
(
buf
,
0
,
adc1
);
_mav_put_uint16_t
(
buf
,
2
,
adc2
);
_mav_put_uint16_t
(
buf
,
4
,
adc3
);
_mav_put_uint16_t
(
buf
,
6
,
adc4
);
_mav_put_uint16_t
(
buf
,
8
,
adc5
);
_mav_put_uint16_t
(
buf
,
10
,
adc6
);
memcpy
(
_MAV_PAYLOAD
(
msg
),
buf
,
12
);
#else
mavlink_ap_adc_t
packet
;
packet
.
adc1
=
adc1
;
packet
.
adc2
=
adc2
;
packet
.
adc3
=
adc3
;
packet
.
adc4
=
adc4
;
packet
.
adc5
=
adc5
;
packet
.
adc6
=
adc6
;
memcpy
(
_MAV_PAYLOAD
(
msg
),
&
packet
,
12
);
#endif
msg
->
msgid
=
MAVLINK_MSG_ID_AP_ADC
;
return
mavlink_finalize_message
(
msg
,
system_id
,
component_id
,
12
);
}
/**
* @brief Pack a ap_adc message on a channel
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param chan The MAVLink channel this message was sent over
* @param msg The MAVLink message to compress the data into
* @param adc1 ADC output 1
* @param adc2 ADC output 2
* @param adc3 ADC output 3
* @param adc4 ADC output 4
* @param adc5 ADC output 5
* @param adc6 ADC output 6
* @return length of the message in bytes (excluding serial stream start sign)
*/
static
inline
uint16_t
mavlink_msg_ap_adc_pack_chan
(
uint8_t
system_id
,
uint8_t
component_id
,
uint8_t
chan
,
mavlink_message_t
*
msg
,
uint16_t
adc1
,
uint16_t
adc2
,
uint16_t
adc3
,
uint16_t
adc4
,
uint16_t
adc5
,
uint16_t
adc6
)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char
buf
[
12
];
_mav_put_uint16_t
(
buf
,
0
,
adc1
);
_mav_put_uint16_t
(
buf
,
2
,
adc2
);
_mav_put_uint16_t
(
buf
,
4
,
adc3
);
_mav_put_uint16_t
(
buf
,
6
,
adc4
);
_mav_put_uint16_t
(
buf
,
8
,
adc5
);
_mav_put_uint16_t
(
buf
,
10
,
adc6
);
memcpy
(
_MAV_PAYLOAD
(
msg
),
buf
,
12
);
#else
mavlink_ap_adc_t
packet
;
packet
.
adc1
=
adc1
;
packet
.
adc2
=
adc2
;
packet
.
adc3
=
adc3
;
packet
.
adc4
=
adc4
;
packet
.
adc5
=
adc5
;
packet
.
adc6
=
adc6
;
memcpy
(
_MAV_PAYLOAD
(
msg
),
&
packet
,
12
);
#endif
msg
->
msgid
=
MAVLINK_MSG_ID_AP_ADC
;
return
mavlink_finalize_message_chan
(
msg
,
system_id
,
component_id
,
chan
,
12
);
}
/**
* @brief Encode a ap_adc struct into a message
*
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param msg The MAVLink message to compress the data into
* @param ap_adc C-struct to read the message contents from
*/
static
inline
uint16_t
mavlink_msg_ap_adc_encode
(
uint8_t
system_id
,
uint8_t
component_id
,
mavlink_message_t
*
msg
,
const
mavlink_ap_adc_t
*
ap_adc
)
{
return
mavlink_msg_ap_adc_pack
(
system_id
,
component_id
,
msg
,
ap_adc
->
adc1
,
ap_adc
->
adc2
,
ap_adc
->
adc3
,
ap_adc
->
adc4
,
ap_adc
->
adc5
,
ap_adc
->
adc6
);
}
/**
* @brief Send a ap_adc message
* @param chan MAVLink channel to send the message
*
* @param adc1 ADC output 1
* @param adc2 ADC output 2
* @param adc3 ADC output 3
* @param adc4 ADC output 4
* @param adc5 ADC output 5
* @param adc6 ADC output 6
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
static
inline
void
mavlink_msg_ap_adc_send
(
mavlink_channel_t
chan
,
uint16_t
adc1
,
uint16_t
adc2
,
uint16_t
adc3
,
uint16_t
adc4
,
uint16_t
adc5
,
uint16_t
adc6
)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char
buf
[
12
];
_mav_put_uint16_t
(
buf
,
0
,
adc1
);
_mav_put_uint16_t
(
buf
,
2
,
adc2
);
_mav_put_uint16_t
(
buf
,
4
,
adc3
);
_mav_put_uint16_t
(
buf
,
6
,
adc4
);
_mav_put_uint16_t
(
buf
,
8
,
adc5
);
_mav_put_uint16_t
(
buf
,
10
,
adc6
);
_mav_finalize_message_chan_send
(
chan
,
MAVLINK_MSG_ID_AP_ADC
,
buf
,
12
);
#else
mavlink_ap_adc_t
packet
;
packet
.
adc1
=
adc1
;
packet
.
adc2
=
adc2
;
packet
.
adc3
=
adc3
;
packet
.
adc4
=
adc4
;
packet
.
adc5
=
adc5
;
packet
.
adc6
=
adc6
;
_mav_finalize_message_chan_send
(
chan
,
MAVLINK_MSG_ID_AP_ADC
,
(
const
char
*
)
&
packet
,
12
);
#endif
}
#endif
// MESSAGE AP_ADC UNPACKING
/**
* @brief Get field adc1 from ap_adc message
*
* @return ADC output 1
*/
static
inline
uint16_t
mavlink_msg_ap_adc_get_adc1
(
const
mavlink_message_t
*
msg
)
{
return
_MAV_RETURN_uint16_t
(
msg
,
0
);
}
/**
* @brief Get field adc2 from ap_adc message
*
* @return ADC output 2
*/
static
inline
uint16_t
mavlink_msg_ap_adc_get_adc2
(
const
mavlink_message_t
*
msg
)
{
return
_MAV_RETURN_uint16_t
(
msg
,
2
);
}
/**
* @brief Get field adc3 from ap_adc message
*
* @return ADC output 3
*/
static
inline
uint16_t
mavlink_msg_ap_adc_get_adc3
(
const
mavlink_message_t
*
msg
)
{
return
_MAV_RETURN_uint16_t
(
msg
,
4
);
}
/**
* @brief Get field adc4 from ap_adc message
*
* @return ADC output 4
*/
static
inline
uint16_t
mavlink_msg_ap_adc_get_adc4
(
const
mavlink_message_t
*
msg
)
{
return
_MAV_RETURN_uint16_t
(
msg
,
6
);
}
/**
* @brief Get field adc5 from ap_adc message
*
* @return ADC output 5
*/
static
inline
uint16_t
mavlink_msg_ap_adc_get_adc5
(
const
mavlink_message_t
*
msg
)
{
return
_MAV_RETURN_uint16_t
(
msg
,
8
);
}
/**
* @brief Get field adc6 from ap_adc message
*
* @return ADC output 6
*/
static
inline
uint16_t
mavlink_msg_ap_adc_get_adc6
(
const
mavlink_message_t
*
msg
)
{
return
_MAV_RETURN_uint16_t
(
msg
,
10
);
}
/**
* @brief Decode a ap_adc message into a struct
*
* @param msg The message to decode
* @param ap_adc C-struct to decode the message contents into
*/
static
inline
void
mavlink_msg_ap_adc_decode
(
const
mavlink_message_t
*
msg
,
mavlink_ap_adc_t
*
ap_adc
)
{
#if MAVLINK_NEED_BYTE_SWAP
ap_adc
->
adc1
=
mavlink_msg_ap_adc_get_adc1
(
msg
);
ap_adc
->
adc2
=
mavlink_msg_ap_adc_get_adc2
(
msg
);
ap_adc
->
adc3
=
mavlink_msg_ap_adc_get_adc3
(
msg
);
ap_adc
->
adc4
=
mavlink_msg_ap_adc_get_adc4
(
msg
);
ap_adc
->
adc5
=
mavlink_msg_ap_adc_get_adc5
(
msg
);
ap_adc
->
adc6
=
mavlink_msg_ap_adc_get_adc6
(
msg
);
#else
memcpy
(
ap_adc
,
_MAV_PAYLOAD
(
msg
),
12
);
#endif
}
mavlink/include/v0.9/ardupilotmega/mavlink_msg_digicam_configure.h
deleted
100644 → 0
View file @
9f94fef5
This diff is collapsed.
Click to expand it.
mavlink/include/v0.9/ardupilotmega/mavlink_msg_digicam_control.h
deleted
100644 → 0
View file @
9f94fef5
This diff is collapsed.
Click to expand it.
mavlink/include/v0.9/ardupilotmega/mavlink_msg_fence_fetch_point.h
deleted
100644 → 0
View file @
9f94fef5
// MESSAGE FENCE_FETCH_POINT PACKING
#define MAVLINK_MSG_ID_FENCE_FETCH_POINT 161
typedef
struct
__mavlink_fence_fetch_point_t
{
uint8_t
target_system
;
///< System ID
uint8_t
target_component
;
///< Component ID
uint8_t
idx
;
///< point index (first point is 1, 0 is for return point)
}
mavlink_fence_fetch_point_t
;
#define MAVLINK_MSG_ID_FENCE_FETCH_POINT_LEN 3
#define MAVLINK_MSG_ID_161_LEN 3
#define MAVLINK_MESSAGE_INFO_FENCE_FETCH_POINT { \
"FENCE_FETCH_POINT", \
3, \
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_fence_fetch_point_t, target_system) }, \
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_fence_fetch_point_t, target_component) }, \
{ "idx", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_fence_fetch_point_t, idx) }, \
} \
}
/**
* @brief Pack a fence_fetch_point message
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param msg The MAVLink message to compress the data into
*
* @param target_system System ID
* @param target_component Component ID
* @param idx point index (first point is 1, 0 is for return point)
* @return length of the message in bytes (excluding serial stream start sign)
*/
static
inline
uint16_t
mavlink_msg_fence_fetch_point_pack
(
uint8_t
system_id
,
uint8_t
component_id
,
mavlink_message_t
*
msg
,
uint8_t
target_system
,
uint8_t
target_component
,
uint8_t
idx
)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char
buf
[
3
];
_mav_put_uint8_t
(
buf
,
0
,
target_system
);
_mav_put_uint8_t
(
buf
,
1
,
target_component
);
_mav_put_uint8_t
(
buf
,
2
,
idx
);
memcpy
(
_MAV_PAYLOAD
(
msg
),
buf
,
3
);
#else
mavlink_fence_fetch_point_t
packet
;
packet
.
target_system
=
target_system
;
packet
.
target_component
=
target_component
;
packet
.
idx
=
idx
;
memcpy
(
_MAV_PAYLOAD
(
msg
),
&
packet
,
3
);
#endif
msg
->
msgid
=
MAVLINK_MSG_ID_FENCE_FETCH_POINT
;
return
mavlink_finalize_message
(
msg
,
system_id
,
component_id
,
3
);
}
/**
* @brief Pack a fence_fetch_point message on a channel
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param chan The MAVLink channel this message was sent over
* @param msg The MAVLink message to compress the data into
* @param target_system System ID
* @param target_component Component ID
* @param idx point index (first point is 1, 0 is for return point)
* @return length of the message in bytes (excluding serial stream start sign)
*/
static
inline
uint16_t
mavlink_msg_fence_fetch_point_pack_chan
(
uint8_t
system_id
,
uint8_t
component_id
,
uint8_t
chan
,
mavlink_message_t
*
msg
,
uint8_t
target_system
,
uint8_t
target_component
,
uint8_t
idx
)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char
buf
[
3
];
_mav_put_uint8_t
(
buf
,
0
,
target_system
);
_mav_put_uint8_t
(
buf
,
1
,
target_component
);
_mav_put_uint8_t
(
buf
,
2
,
idx
);
memcpy
(
_MAV_PAYLOAD
(
msg
),
buf
,
3
);
#else
mavlink_fence_fetch_point_t
packet
;
packet
.
target_system
=
target_system
;
packet
.
target_component
=
target_component
;
packet
.
idx
=
idx
;
memcpy
(
_MAV_PAYLOAD
(
msg
),
&
packet
,
3
);
#endif
msg
->
msgid
=
MAVLINK_MSG_ID_FENCE_FETCH_POINT
;
return
mavlink_finalize_message_chan
(
msg
,
system_id
,
component_id
,
chan
,
3
);
}
/**
* @brief Encode a fence_fetch_point struct into a message
*
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param msg The MAVLink message to compress the data into
* @param fence_fetch_point C-struct to read the message contents from
*/
static
inline
uint16_t
mavlink_msg_fence_fetch_point_encode
(
uint8_t
system_id
,
uint8_t
component_id
,
mavlink_message_t
*
msg
,
const
mavlink_fence_fetch_point_t
*
fence_fetch_point
)
{
return
mavlink_msg_fence_fetch_point_pack
(
system_id
,
component_id
,
msg
,
fence_fetch_point
->
target_system
,
fence_fetch_point
->
target_component
,
fence_fetch_point
->
idx
);
}
/**
* @brief Send a fence_fetch_point message
* @param chan MAVLink channel to send the message
*
* @param target_system System ID
* @param target_component Component ID
* @param idx point index (first point is 1, 0 is for return point)
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
static
inline
void
mavlink_msg_fence_fetch_point_send
(
mavlink_channel_t
chan
,
uint8_t
target_system
,
uint8_t
target_component
,
uint8_t
idx
)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char
buf
[
3
];
_mav_put_uint8_t
(
buf
,
0
,
target_system
);
_mav_put_uint8_t
(
buf
,
1
,
target_component
);
_mav_put_uint8_t
(
buf
,
2
,
idx
);
_mav_finalize_message_chan_send
(
chan
,
MAVLINK_MSG_ID_FENCE_FETCH_POINT
,
buf
,
3
);
#else
mavlink_fence_fetch_point_t
packet
;
packet
.
target_system
=
target_system
;
packet
.
target_component
=
target_component
;
packet
.
idx
=
idx
;
_mav_finalize_message_chan_send
(
chan
,
MAVLINK_MSG_ID_FENCE_FETCH_POINT
,
(
const
char
*
)
&
packet
,
3
);
#endif
}
#endif
// MESSAGE FENCE_FETCH_POINT UNPACKING
/**
* @brief Get field target_system from fence_fetch_point message
*
* @return System ID
*/
static
inline
uint8_t
mavlink_msg_fence_fetch_point_get_target_system
(
const
mavlink_message_t
*
msg
)
{
return
_MAV_RETURN_uint8_t
(
msg
,
0
);
}
/**
* @brief Get field target_component from fence_fetch_point message
*
* @return Component ID
*/
static
inline
uint8_t
mavlink_msg_fence_fetch_point_get_target_component
(
const
mavlink_message_t
*
msg
)
{
return
_MAV_RETURN_uint8_t
(
msg
,
1
);
}
/**
* @brief Get field idx from fence_fetch_point message
*
* @return point index (first point is 1, 0 is for return point)
*/
static
inline
uint8_t
mavlink_msg_fence_fetch_point_get_idx
(
const
mavlink_message_t
*
msg
)
{
return
_MAV_RETURN_uint8_t
(
msg
,
2
);
}
/**
* @brief Decode a fence_fetch_point message into a struct
*
* @param msg The message to decode
* @param fence_fetch_point C-struct to decode the message contents into
*/
static
inline
void
mavlink_msg_fence_fetch_point_decode
(
const
mavlink_message_t
*
msg
,
mavlink_fence_fetch_point_t
*
fence_fetch_point
)
{
#if MAVLINK_NEED_BYTE_SWAP
fence_fetch_point
->
target_system
=
mavlink_msg_fence_fetch_point_get_target_system
(
msg
);
fence_fetch_point
->
target_component
=
mavlink_msg_fence_fetch_point_get_target_component
(
msg
);
fence_fetch_point
->
idx
=
mavlink_msg_fence_fetch_point_get_idx
(
msg
);
#else
memcpy
(
fence_fetch_point
,
_MAV_PAYLOAD
(
msg
),
3
);
#endif
}
mavlink/include/v0.9/ardupilotmega/mavlink_msg_fence_point.h
deleted
100644 → 0
View file @
9f94fef5
// MESSAGE FENCE_POINT PACKING
#define MAVLINK_MSG_ID_FENCE_POINT 160
typedef
struct
__mavlink_fence_point_t
{
uint8_t
target_system
;
///< System ID
uint8_t
target_component
;
///< Component ID
uint8_t
idx
;
///< point index (first point is 1, 0 is for return point)
uint8_t
count
;
///< total number of points (for sanity checking)
float
lat
;
///< Latitude of point
float
lng
;
///< Longitude of point
}
mavlink_fence_point_t
;
#define MAVLINK_MSG_ID_FENCE_POINT_LEN 12
#define MAVLINK_MSG_ID_160_LEN 12
#define MAVLINK_MESSAGE_INFO_FENCE_POINT { \
"FENCE_POINT", \
6, \
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_fence_point_t, target_system) }, \
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_fence_point_t, target_component) }, \
{ "idx", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_fence_point_t, idx) }, \
{ "count", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_fence_point_t, count) }, \
{ "lat", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_fence_point_t, lat) }, \
{ "lng", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_fence_point_t, lng) }, \
} \
}
/**
* @brief Pack a fence_point message
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param msg The MAVLink message to compress the data into
*
* @param target_system System ID
* @param target_component Component ID
* @param idx point index (first point is 1, 0 is for return point)
* @param count total number of points (for sanity checking)
* @param lat Latitude of point
* @param lng Longitude of point
* @return length of the message in bytes (excluding serial stream start sign)
*/
static
inline
uint16_t
mavlink_msg_fence_point_pack
(
uint8_t
system_id
,
uint8_t
component_id
,
mavlink_message_t
*
msg
,
uint8_t
target_system
,
uint8_t
target_component
,
uint8_t
idx
,
uint8_t
count
,
float
lat
,
float
lng
)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char
buf
[
12
];
_mav_put_uint8_t
(
buf
,
0
,
target_system
);
_mav_put_uint8_t
(
buf
,
1
,
target_component
);
_mav_put_uint8_t
(
buf
,
2
,
idx
);
_mav_put_uint8_t
(
buf
,
3
,
count
);
_mav_put_float
(
buf
,
4
,
lat
);
_mav_put_float
(
buf
,
8
,
lng
);
memcpy
(
_MAV_PAYLOAD
(
msg
),
buf
,
12
);
#else
mavlink_fence_point_t
packet
;
packet
.
target_system
=
target_system
;
packet
.
target_component
=
target_component
;
packet
.
idx
=
idx
;
packet
.
count
=
count
;
packet
.
lat
=
lat
;
packet
.
lng
=
lng
;
memcpy
(
_MAV_PAYLOAD
(
msg
),
&
packet
,
12
);
#endif
msg
->
msgid
=
MAVLINK_MSG_ID_FENCE_POINT
;
return
mavlink_finalize_message
(
msg
,
system_id
,
component_id
,
12
);
}
/**
* @brief Pack a fence_point message on a channel
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param chan The MAVLink channel this message was sent over
* @param msg The MAVLink message to compress the data into
* @param target_system System ID
* @param target_component Component ID
* @param idx point index (first point is 1, 0 is for return point)
* @param count total number of points (for sanity checking)
* @param lat Latitude of point
* @param lng Longitude of point
* @return length of the message in bytes (excluding serial stream start sign)
*/
static
inline
uint16_t
mavlink_msg_fence_point_pack_chan
(
uint8_t
system_id
,
uint8_t
component_id
,
uint8_t
chan
,
mavlink_message_t
*
msg
,
uint8_t
target_system
,
uint8_t
target_component
,
uint8_t
idx
,
uint8_t
count
,
float
lat
,
float
lng
)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char
buf
[
12
];
_mav_put_uint8_t
(
buf
,
0
,
target_system
);
_mav_put_uint8_t
(
buf
,
1
,
target_component
);
_mav_put_uint8_t
(
buf
,
2
,
idx
);
_mav_put_uint8_t
(
buf
,
3
,
count
);
_mav_put_float
(
buf
,
4
,
lat
);
_mav_put_float
(
buf
,
8
,
lng
);
memcpy
(
_MAV_PAYLOAD
(
msg
),
buf
,
12
);
#else
mavlink_fence_point_t
packet
;
packet
.
target_system
=
target_system
;
packet
.
target_component
=
target_component
;
packet
.
idx
=
idx
;
packet
.
count
=
count
;
packet
.
lat
=
lat
;
packet
.
lng
=
lng
;
memcpy
(
_MAV_PAYLOAD
(
msg
),
&
packet
,
12
);
#endif
msg
->
msgid
=
MAVLINK_MSG_ID_FENCE_POINT
;
return
mavlink_finalize_message_chan
(
msg
,
system_id
,
component_id
,
chan
,
12
);
}
/**
* @brief Encode a fence_point struct into a message
*
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param msg The MAVLink message to compress the data into
* @param fence_point C-struct to read the message contents from
*/
static
inline
uint16_t
mavlink_msg_fence_point_encode
(
uint8_t
system_id
,
uint8_t
component_id
,
mavlink_message_t
*
msg
,
const
mavlink_fence_point_t
*
fence_point
)
{
return
mavlink_msg_fence_point_pack
(
system_id
,
component_id
,
msg
,
fence_point
->
target_system
,
fence_point
->
target_component
,
fence_point
->
idx
,
fence_point
->
count
,
fence_point
->
lat
,
fence_point
->
lng
);
}
/**
* @brief Send a fence_point message
* @param chan MAVLink channel to send the message
*
* @param target_system System ID
* @param target_component Component ID
* @param idx point index (first point is 1, 0 is for return point)
* @param count total number of points (for sanity checking)
* @param lat Latitude of point
* @param lng Longitude of point
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS