2011-09-08 22:31:32 -03:00
using System ;
2011-10-04 08:19:25 -03:00
using System.Collections.Generic ;
using System.Text ;
2011-09-08 22:31:32 -03:00
using System.Runtime.InteropServices ;
namespace ArdupilotMega
{
partial class MAVLink
{
2011-09-17 10:22:07 -03:00
public byte [ ] MAVLINK_MESSAGE_LENGTHS = new byte [ ] { 3 , 4 , 8 , 14 , 8 , 28 , 3 , 32 , 0 , 2 , 3 , 2 , 2 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 19 , 2 , 23 , 21 , 0 , 37 , 26 , 101 , 26 , 16 , 32 , 32 , 37 , 32 , 11 , 17 , 17 , 16 , 18 , 36 , 4 , 4 , 2 , 2 , 4 , 2 , 2 , 3 , 14 , 12 , 18 , 16 , 8 , 27 , 25 , 18 , 18 , 24 , 24 , 0 , 0 , 0 , 26 , 16 , 36 , 5 , 6 , 56 , 26 , 21 , 18 , 0 , 0 , 18 , 20 , 20 , 8 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 18 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 36 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 42 , 8 , 4 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 30 , 14 , 14 , 51 , 5 } ;
public byte [ ] MAVLINK_MESSAGE_CRCS = new byte [ ] { 72 , 39 , 190 , 92 , 191 , 217 , 104 , 119 , 0 , 219 , 60 , 186 , 10 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 89 , 159 , 162 , 121 , 0 , 149 , 222 , 110 , 179 , 136 , 66 , 126 , 185 , 147 , 112 , 252 , 162 , 215 , 229 , 128 , 9 , 106 , 101 , 213 , 4 , 229 , 21 , 214 , 215 , 14 , 206 , 50 , 157 , 126 , 108 , 213 , 95 , 5 , 127 , 0 , 0 , 0 , 57 , 126 , 130 , 119 , 193 , 191 , 236 , 158 , 143 , 0 , 0 , 104 , 123 , 131 , 8 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 174 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 155 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 143 , 29 , 208 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 178 , 224 , 60 , 106 , 7 } ;
public const byte MAVLINK_MSG_ID_MEMINFO = 152 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_meminfo_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ushort brkval ; /// heap top
public ushort freemem ; /// free memory
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_MEMINFO_LEN = 4 ;
public const byte MAVLINK_MSG_ID_152_LEN = 4 ;
public const byte MAVLINK_MSG_ID_SENSOR_OFFSETS = 150 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_sensor_offsets_t
{
2011-10-04 08:19:25 -03:00
public short mag_ofs_x ; /// magnetometer X offset
public short mag_ofs_y ; /// magnetometer Y offset
public short mag_ofs_z ; /// magnetometer Z offset
public float mag_declination ; /// magnetic declination (radians)
public int raw_press ; /// raw pressure from barometer
public int raw_temp ; /// raw temperature from barometer
public float gyro_cal_x ; /// gyro X calibration
public float gyro_cal_y ; /// gyro Y calibration
public float gyro_cal_z ; /// gyro Z calibration
public float accel_cal_x ; /// accel X calibration
public float accel_cal_y ; /// accel Y calibration
public float accel_cal_z ; /// accel Z calibration
2011-09-17 10:22:07 -03:00
} ;
public const byte MAVLINK_MSG_ID_SENSOR_OFFSETS_LEN = 42 ;
public const byte MAVLINK_MSG_ID_150_LEN = 42 ;
2011-09-08 22:31:32 -03:00
public const byte MAVLINK_MSG_ID_SET_MAG_OFFSETS = 151 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_set_mag_offsets_t
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public short mag_ofs_x ; /// magnetometer X offset
public short mag_ofs_y ; /// magnetometer Y offset
public short mag_ofs_z ; /// magnetometer Z offset
2011-09-17 10:22:07 -03:00
} ;
public const byte MAVLINK_MSG_ID_SET_MAG_OFFSETS_LEN = 8 ;
public const byte MAVLINK_MSG_ID_151_LEN = 8 ;
public enum MAV_CMD
{
WAYPOINT = 16 , /* Navigate to waypoint. |Hold time in decimal seconds. (ignored by fixed wing, time to stay at waypoint for rotary wing)| Acceptance radius in meters (if the sphere with this radius is hit, the waypoint counts as reached)| 0 to pass through the WP, if > 0 radius in meters to pass by WP. Positive value for clockwise orbit, negative value for counter-clockwise orbit. Allows trajectory control.| Desired yaw angle at waypoint (rotary wing)| Latitude| Longitude| Altitude| */
LOITER_UNLIM = 17 , /* Loiter around this waypoint an unlimited amount of time |Empty| Empty| Radius around waypoint, in meters. If positive loiter clockwise, else counter-clockwise| Desired yaw angle.| Latitude| Longitude| Altitude| */
LOITER_TURNS = 18 , /* Loiter around this waypoint for X turns |Turns| Empty| Radius around waypoint, in meters. If positive loiter clockwise, else counter-clockwise| Desired yaw angle.| Latitude| Longitude| Altitude| */
LOITER_TIME = 19 , /* Loiter around this waypoint for X seconds |Seconds (decimal)| Empty| Radius around waypoint, in meters. If positive loiter clockwise, else counter-clockwise| Desired yaw angle.| Latitude| Longitude| Altitude| */
RETURN_TO_LAUNCH = 20 , /* Return to launch location |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
LAND = 21 , /* Land at location |Empty| Empty| Empty| Desired yaw angle.| Latitude| Longitude| Altitude| */
TAKEOFF = 22 , /* Takeoff from ground / hand |Minimum pitch (if airspeed sensor present), desired pitch without sensor| Empty| Empty| Yaw angle (if magnetometer present), ignored without magnetometer| Latitude| Longitude| Altitude| */
ROI = 80 , / * Sets the region of interest ( ROI ) for a sensor set or the
vehicle itself . This can then be used by the vehicles control
system to control the vehicle attitude and the attitude of various
sensors such as cameras . | Region of intereset mode . ( see MAV_ROI enum ) | Waypoint index / target ID . ( see MAV_ROI enum ) | ROI index ( allows a vehicle to manage multiple ROI ' s ) | Empty | x the location of the fixed ROI ( see MAV_FRAME ) | y | z | * /
PATHPLANNING = 81 , /* Control autonomous path planning on the MAV. |0: Disable local obstacle avoidance / local path planning (without resetting map), 1: Enable local path planning, 2: Enable and reset local path planning| 0: Disable full path planning (without resetting map), 1: Enable, 2: Enable and reset map/occupancy grid, 3: Enable and reset planned route, but not occupancy grid| Empty| Yaw angle at goal, in compass degrees, [0..360]| Latitude/X of goal| Longitude/Y of goal| Altitude/Z of goal| */
LAST = 95 , /* NOP - This command is only used to mark the upper limit of the NAV/ACTION commands in the enumeration |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
CONDITION_DELAY = 112 , /* Delay mission state machine. |Delay in seconds (decimal)| Empty| Empty| Empty| Empty| Empty| Empty| */
CONDITION_CHANGE_ALT = 113 , /* Ascend/descend at rate. Delay mission state machine until desired altitude reached. |Descent / Ascend rate (m/s)| Empty| Empty| Empty| Empty| Empty| Finish Altitude| */
CONDITION_DISTANCE = 114 , /* Delay mission state machine until within desired distance of next NAV point. |Distance (meters)| Empty| Empty| Empty| Empty| Empty| Empty| */
CONDITION_YAW = 115 , /* Reach a certain target angle. |target angle: [0-360], 0 is north| speed during yaw change:[deg per second]| direction: negative: counter clockwise, positive: clockwise [-1,1]| relative offset or absolute angle: [ 1,0]| Empty| Empty| Empty| */
CONDITION_LAST = 159 , /* NOP - This command is only used to mark the upper limit of the CONDITION commands in the enumeration |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
DO_SET_MODE = 176 , /* Set system mode. |Mode, as defined by ENUM MAV_MODE| Empty| Empty| Empty| Empty| Empty| Empty| */
DO_JUMP = 177 , /* Jump to the desired command in the mission list. Repeat this action only the specified number of times |Sequence number| Repeat count| Empty| Empty| Empty| Empty| Empty| */
DO_CHANGE_SPEED = 178 , /* Change speed and/or throttle set points. |Speed type (0=Airspeed, 1=Ground Speed)| Speed (m/s, -1 indicates no change)| Throttle ( Percent, -1 indicates no change)| Empty| Empty| Empty| Empty| */
DO_SET_HOME = 179 , /* Changes the home location either to the current location or a specified location. |Use current (1=use current location, 0=use specified location)| Empty| Empty| Empty| Latitude| Longitude| Altitude| */
DO_SET_PARAMETER = 180 , /* Set a system parameter. Caution! Use of this command requires knowledge of the numeric enumeration value of the parameter. |Parameter number| Parameter value| Empty| Empty| Empty| Empty| Empty| */
DO_SET_RELAY = 181 , /* Set a relay to a condition. |Relay number| Setting (1=on, 0=off, others possible depending on system hardware)| Empty| Empty| Empty| Empty| Empty| */
DO_REPEAT_RELAY = 182 , /* Cycle a relay on and off for a desired number of cyles with a desired period. |Relay number| Cycle count| Cycle time (seconds, decimal)| Empty| Empty| Empty| Empty| */
DO_SET_SERVO = 183 , /* Set a servo to a desired PWM value. |Servo number| PWM (microseconds, 1000 to 2000 typical)| Empty| Empty| Empty| Empty| Empty| */
DO_REPEAT_SERVO = 184 , /* Cycle a between its nominal setting and a desired PWM for a desired number of cycles with a desired period. |Servo number| PWM (microseconds, 1000 to 2000 typical)| Cycle count| Cycle time (seconds)| Empty| Empty| Empty| */
DO_CONTROL_VIDEO = 200 , /* Control onboard camera capturing. |Camera ID (-1 for all)| Transmission: 0: disabled, 1: enabled compressed, 2: enabled raw| Transmission mode: 0: video stream, >0: single images every n seconds (decimal)| Recording: 0: disabled, 1: enabled compressed, 2: enabled raw| Empty| Empty| Empty| */
DO_SET_ROI = 201 , / * Sets the region of interest ( ROI ) for a sensor set or the
vehicle itself . This can then be used by the vehicles control
system to control the vehicle attitude and the attitude of various
devices such as cameras .
| Region of interest mode . ( see MAV_ROI enum ) | Waypoint index / target ID . ( see MAV_ROI enum ) | ROI index ( allows a vehicle to manage multiple cameras etc . ) | Empty | x the location of the fixed ROI ( see MAV_FRAME ) | y | z | * /
DO_LAST = 240 , /* NOP - This command is only used to mark the upper limit of the DO commands in the enumeration |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */
PREFLIGHT_CALIBRATION = 241 , /* Trigger calibration. This command will be only accepted if in pre-flight mode. |Gyro calibration: 0: no, 1: yes| Magnetometer calibration: 0: no, 1: yes| Ground pressure: 0: no, 1: yes| Radio calibration: 0: no, 1: yes| Empty| Empty| Empty| */
PREFLIGHT_STORAGE = 245 , /* Request storage of different parameter values and logs. This command will be only accepted if in pre-flight mode. |Parameter storage: 0: READ FROM FLASH/EEPROM, 1: WRITE CURRENT TO FLASH/EEPROM| Mission storage: 0: READ FROM FLASH/EEPROM, 1: WRITE CURRENT TO FLASH/EEPROM| Reserved| Reserved| Empty| Empty| Empty| */
ENUM_END = 246 , /* | */
} ;
public enum MAV_DATA_STREAM
{
MAV_DATA_STREAM_ALL = 0 , /* Enable all data streams | */
MAV_DATA_STREAM_RAW_SENSORS = 1 , /* Enable IMU_RAW, GPS_RAW, GPS_STATUS packets. | */
MAV_DATA_STREAM_EXTENDED_STATUS = 2 , /* Enable GPS_STATUS, CONTROL_STATUS, AUX_STATUS | */
MAV_DATA_STREAM_RC_CHANNELS = 3 , /* Enable RC_CHANNELS_SCALED, RC_CHANNELS_RAW, SERVO_OUTPUT_RAW | */
MAV_DATA_STREAM_RAW_CONTROLLER = 4 , /* Enable ATTITUDE_CONTROLLER_OUTPUT, POSITION_CONTROLLER_OUTPUT, NAV_CONTROLLER_OUTPUT. | */
MAV_DATA_STREAM_POSITION = 6 , /* Enable LOCAL_POSITION, GLOBAL_POSITION/GLOBAL_POSITION_INT messages. | */
MAV_DATA_STREAM_EXTRA1 = 10 , /* Dependent on the autopilot | */
MAV_DATA_STREAM_EXTRA2 = 11 , /* Dependent on the autopilot | */
MAV_DATA_STREAM_EXTRA3 = 12 , /* Dependent on the autopilot | */
MAV_DATA_STREAM_ENUM_END = 13 , /* | */
} ;
public enum MAV_ROI
{
MAV_ROI_NONE = 0 , /* No region of interest. | */
MAV_ROI_WPNEXT = 1 , /* Point toward next waypoint. | */
MAV_ROI_WPINDEX = 2 , /* Point toward given waypoint. | */
MAV_ROI_LOCATION = 3 , /* Point toward fixed location. | */
MAV_ROI_TARGET = 4 , /* Point toward of given id. | */
MAV_ROI_ENUM_END = 5 , /* | */
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_ACTION = 10 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_action_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target ; /// The system executing the action
public byte target_component ; /// The component executing the action
public byte action ; /// The action id
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_ACTION_LEN = 3 ;
public const byte MAVLINK_MSG_ID_10_LEN = 3 ;
public const byte MAVLINK_MSG_ID_ACTION_ACK = 9 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_action_ack_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte action ; /// The action id
public byte result ; /// 0: Action DENIED, 1: Action executed
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_ACTION_ACK_LEN = 2 ;
public const byte MAVLINK_MSG_ID_9_LEN = 2 ;
public const byte MAVLINK_MSG_ID_ATTITUDE = 30 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_attitude_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public float roll ; /// Roll angle (rad)
public float pitch ; /// Pitch angle (rad)
public float yaw ; /// Yaw angle (rad)
public float rollspeed ; /// Roll angular speed (rad/s)
public float pitchspeed ; /// Pitch angular speed (rad/s)
public float yawspeed ; /// Yaw angular speed (rad/s)
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_ATTITUDE_LEN = 32 ;
public const byte MAVLINK_MSG_ID_30_LEN = 32 ;
public const byte MAVLINK_MSG_ID_ATTITUDE_CONTROLLER_OUTPUT = 60 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_attitude_controller_output_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte enabled ; /// 1: enabled, 0: disabled
public byte roll ; /// Attitude roll: -128: -100%, 127: +100%
public byte pitch ; /// Attitude pitch: -128: -100%, 127: +100%
public byte yaw ; /// Attitude yaw: -128: -100%, 127: +100%
public byte thrust ; /// Attitude thrust: -128: -100%, 127: +100%
2011-09-17 10:22:07 -03:00
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_ATTITUDE_NEW = 30 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_attitude_new_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public float roll ; /// Roll angle (rad)
public float pitch ; /// Pitch angle (rad)
public float yaw ; /// Yaw angle (rad)
public float rollspeed ; /// Roll angular speed (rad/s)
public float pitchspeed ; /// Pitch angular speed (rad/s)
public float yawspeed ; /// Yaw angular speed (rad/s)
2011-09-17 10:22:07 -03:00
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_AUTH_KEY = 7 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_auth_key_t
{
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 32 ) ]
2011-10-04 08:19:25 -03:00
char key ; /// key
2011-09-17 10:22:07 -03:00
} ;
public const byte MAVLINK_MSG_ID_AUTH_KEY_LEN = 32 ;
public const byte MAVLINK_MSG_ID_7_LEN = 32 ;
public const byte MAVLINK_MSG_ID_BOOT = 1 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_boot_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public uint version ; /// The onboard software version
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_BOOT_LEN = 4 ;
public const byte MAVLINK_MSG_ID_1_LEN = 4 ;
2011-09-08 22:31:32 -03:00
public const byte MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL = 5 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_change_operator_control_t
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System the GCS requests control for
public byte control_request ; /// 0: request control of this MAV, 1: Release control of this MAV
public byte version ; /// 0: key as plaintext, 1-255: future, different hashing/encryption variants. The GCS should in general use the safest mode possible initially and then gradually move down the encryption level if it gets a NACK message indicating an encryption mismatch.
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 25 ) ]
2011-10-04 08:19:25 -03:00
char passkey ; /// Password / Key, depending on version plaintext or encrypted. 25 or less characters, NULL terminated. The characters may involve A-Z, a-z, 0-9, and "!?,.-"
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_LEN = 28 ;
public const byte MAVLINK_MSG_ID_5_LEN = 28 ;
2011-09-08 22:31:32 -03:00
public const byte MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK = 6 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_change_operator_control_ack_t
{
2011-10-04 08:19:25 -03:00
public byte gcs_system_id ; /// ID of the GCS this message
public byte control_request ; /// 0: request control of this MAV, 1: Release control of this MAV
public byte ack ; /// 0: ACK, 1: NACK: Wrong passkey, 2: NACK: Unsupported passkey encryption method, 3: NACK: Already under control
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_CHANGE_OPERATOR_CONTROL_ACK_LEN = 3 ;
public const byte MAVLINK_MSG_ID_6_LEN = 3 ;
public const byte MAVLINK_MSG_ID_COMMAND = 75 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_command_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System which should execute the command
public byte target_component ; /// Component which should execute the command, 0 for all components
public byte command ; /// Command ID, as defined by MAV_CMD enum.
public byte confirmation ; /// 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command)
public float param1 ; /// Parameter 1, as defined by MAV_CMD enum.
public float param2 ; /// Parameter 2, as defined by MAV_CMD enum.
public float param3 ; /// Parameter 3, as defined by MAV_CMD enum.
public float param4 ; /// Parameter 4, as defined by MAV_CMD enum.
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_COMMAND_LEN = 20 ;
public const byte MAVLINK_MSG_ID_75_LEN = 20 ;
public const byte MAVLINK_MSG_ID_COMMAND_ACK = 76 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_command_ack_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public float command ; /// Current airspeed in m/s
public float result ; /// 1: Action ACCEPTED and EXECUTED, 1: Action TEMPORARY REJECTED/DENIED, 2: Action PERMANENTLY DENIED, 3: Action UNKNOWN/UNSUPPORTED, 4: Requesting CONFIRMATION
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_COMMAND_ACK_LEN = 8 ;
public const byte MAVLINK_MSG_ID_76_LEN = 8 ;
public const byte MAVLINK_MSG_ID_CONTROL_STATUS = 52 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_control_status_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte position_fix ; /// Position fix: 0: lost, 2: 2D position fix, 3: 3D position fix
public byte vision_fix ; /// Vision position fix: 0: lost, 1: 2D local position hold, 2: 2D global position fix, 3: 3D global position fix
public byte gps_fix ; /// GPS position fix: 0: no reception, 1: Minimum 1 satellite, but no position fix, 2: 2D position fix, 3: 3D position fix
public byte ahrs_health ; /// Attitude estimation health: 0: poor, 255: excellent
public byte control_att ; /// 0: Attitude control disabled, 1: enabled
public byte control_pos_xy ; /// 0: X, Y position control disabled, 1: enabled
public byte control_pos_z ; /// 0: Z position control disabled, 1: enabled
public byte control_pos_yaw ; /// 0: Yaw angle control disabled, 1: enabled
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_CONTROL_STATUS_LEN = 8 ;
public const byte MAVLINK_MSG_ID_52_LEN = 8 ;
public const byte MAVLINK_MSG_ID_DEBUG = 255 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_debug_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte ind ; /// index of debug variable
public float value ; /// DEBUG value
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_DEBUG_LEN = 5 ;
public const byte MAVLINK_MSG_ID_255_LEN = 5 ;
public const byte MAVLINK_MSG_ID_DEBUG_VECT = 251 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_debug_vect_t
2011-09-08 22:31:32 -03:00
{
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 10 ) ]
2011-10-04 08:19:25 -03:00
char name ; /// Name
public ulong usec ; /// Timestamp
public float x ; /// x
public float y ; /// y
public float z ; /// z
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_DEBUG_VECT_LEN = 30 ;
public const byte MAVLINK_MSG_ID_251_LEN = 30 ;
public const byte MAVLINK_MSG_ID_FULL_STATE = 67 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_full_state_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public float roll ; /// Roll angle (rad)
public float pitch ; /// Pitch angle (rad)
public float yaw ; /// Yaw angle (rad)
public float rollspeed ; /// Roll angular speed (rad/s)
public float pitchspeed ; /// Pitch angular speed (rad/s)
public float yawspeed ; /// Yaw angular speed (rad/s)
public int lat ; /// Latitude, expressed as * 1E7
public int lon ; /// Longitude, expressed as * 1E7
public int alt ; /// Altitude in meters, expressed as * 1000 (millimeters)
public short vx ; /// Ground X Speed (Latitude), expressed as m/s * 100
public short vy ; /// Ground Y Speed (Longitude), expressed as m/s * 100
public short vz ; /// Ground Z Speed (Altitude), expressed as m/s * 100
public short xacc ; /// X acceleration (mg)
public short yacc ; /// Y acceleration (mg)
public short zacc ; /// Z acceleration (mg)
2011-09-17 10:22:07 -03:00
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_GLOBAL_POSITION = 33 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_global_position_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since unix epoch)
public float lat ; /// Latitude, in degrees
public float lon ; /// Longitude, in degrees
public float alt ; /// Absolute altitude, in meters
public float vx ; /// X Speed (in Latitude direction, positive: going north)
public float vy ; /// Y Speed (in Longitude direction, positive: going east)
public float vz ; /// Z Speed (in Altitude direction, positive: going up)
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_GLOBAL_POSITION_LEN = 32 ;
public const byte MAVLINK_MSG_ID_33_LEN = 32 ;
public const byte MAVLINK_MSG_ID_GLOBAL_POSITION_INT = 73 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_global_position_int_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public int lat ; /// Latitude, expressed as * 1E7
public int lon ; /// Longitude, expressed as * 1E7
public int alt ; /// Altitude in meters, expressed as * 1000 (millimeters)
public short vx ; /// Ground X Speed (Latitude), expressed as m/s * 100
public short vy ; /// Ground Y Speed (Longitude), expressed as m/s * 100
public short vz ; /// Ground Z Speed (Altitude), expressed as m/s * 100
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_GLOBAL_POSITION_INT_LEN = 18 ;
public const byte MAVLINK_MSG_ID_73_LEN = 18 ;
public const byte MAVLINK_MSG_ID_GPS_LOCAL_ORIGIN_SET = 49 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_gps_local_origin_set_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public int latitude ; /// Latitude (WGS84), expressed as * 1E7
public int longitude ; /// Longitude (WGS84), expressed as * 1E7
public int altitude ; /// Altitude(WGS84), expressed as * 1000
2011-09-17 10:22:07 -03:00
} ;
public const byte MAVLINK_MSG_ID_GPS_LOCAL_ORIGIN_SET_LEN = 12 ;
public const byte MAVLINK_MSG_ID_49_LEN = 12 ;
public const byte MAVLINK_MSG_ID_GPS_RAW = 32 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_gps_raw_t
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public byte fix_type ; /// 0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix.
public float lat ; /// Latitude in degrees
public float lon ; /// Longitude in degrees
public float alt ; /// Altitude in meters
public float eph ; /// GPS HDOP
public float epv ; /// GPS VDOP
public float v ; /// GPS ground speed
public float hdg ; /// Compass heading in degrees, 0..360 degrees
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_GPS_RAW_LEN = 37 ;
public const byte MAVLINK_MSG_ID_32_LEN = 37 ;
2011-09-08 22:31:32 -03:00
public const byte MAVLINK_MSG_ID_GPS_RAW_INT = 25 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_gps_raw_int_t
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public byte fix_type ; /// 0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix.
public int lat ; /// Latitude in 1E7 degrees
public int lon ; /// Longitude in 1E7 degrees
public int alt ; /// Altitude in 1E3 meters (millimeters)
public float eph ; /// GPS HDOP
public float epv ; /// GPS VDOP
public float v ; /// GPS ground speed (m/s)
public float hdg ; /// Compass heading in degrees, 0..360 degrees
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_GPS_RAW_INT_LEN = 37 ;
public const byte MAVLINK_MSG_ID_25_LEN = 37 ;
public const byte MAVLINK_MSG_ID_GPS_SET_GLOBAL_ORIGIN = 48 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_gps_set_global_origin_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public int latitude ; /// global position * 1E7
public int longitude ; /// global position * 1E7
public int altitude ; /// global position * 1000
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_GPS_SET_GLOBAL_ORIGIN_LEN = 14 ;
public const byte MAVLINK_MSG_ID_48_LEN = 14 ;
2011-09-08 22:31:32 -03:00
public const byte MAVLINK_MSG_ID_GPS_STATUS = 27 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_gps_status_t
{
2011-10-04 08:19:25 -03:00
public byte satellites_visible ; /// Number of satellites visible
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 20 ) ]
2011-10-04 08:19:25 -03:00
public byte [ ] satellite_prn ; /// Global satellite ID
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 20 ) ]
2011-10-04 08:19:25 -03:00
public byte [ ] satellite_used ; /// 0: Satellite not used, 1: used for localization
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 20 ) ]
2011-10-04 08:19:25 -03:00
public byte [ ] satellite_elevation ; /// Elevation (0: right on top of receiver, 90: on the horizon) of satellite
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 20 ) ]
2011-10-04 08:19:25 -03:00
public byte [ ] satellite_azimuth ; /// Direction of satellite, 0: 0 deg, 255: 360 deg.
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 20 ) ]
2011-10-04 08:19:25 -03:00
public byte [ ] satellite_snr ; /// Signal to noise ratio of satellite
2011-09-17 10:22:07 -03:00
} ;
public const byte MAVLINK_MSG_ID_GPS_STATUS_LEN = 101 ;
public const byte MAVLINK_MSG_ID_27_LEN = 101 ;
public const byte MAVLINK_MSG_ID_HEARTBEAT = 0 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_heartbeat_t
{
2011-10-04 08:19:25 -03:00
public byte type ; /// Type of the MAV (quadrotor, helicopter, etc., up to 15 types, defined in MAV_TYPE ENUM)
public byte autopilot ; /// Type of the Autopilot: 0: Generic, 1: PIXHAWK, 2: SLUGS, 3: Ardupilot (up to 15 types), defined in MAV_AUTOPILOT_TYPE ENUM
public byte mavlink_version ; /// MAVLink version
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_HEARTBEAT_LEN = 3 ;
public const byte MAVLINK_MSG_ID_0_LEN = 3 ;
public const byte MAVLINK_MSG_ID_HIL_CONTROLS = 68 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_hil_controls_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong time_us ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public float roll_ailerons ; /// Control output -3 .. 1
public float pitch_elevator ; /// Control output -1 .. 1
public float yaw_rudder ; /// Control output -1 .. 1
public float throttle ; /// Throttle 0 .. 1
public byte mode ; /// System mode (MAV_MODE)
public byte nav_mode ; /// Navigation mode (MAV_NAV_MODE)
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_HIL_CONTROLS_LEN = 26 ;
public const byte MAVLINK_MSG_ID_68_LEN = 26 ;
public const byte MAVLINK_MSG_ID_HIL_STATE = 67 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_hil_state_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public float roll ; /// Roll angle (rad)
public float pitch ; /// Pitch angle (rad)
public float yaw ; /// Yaw angle (rad)
public float rollspeed ; /// Roll angular speed (rad/s)
public float pitchspeed ; /// Pitch angular speed (rad/s)
public float yawspeed ; /// Yaw angular speed (rad/s)
public int lat ; /// Latitude, expressed as * 1E7
public int lon ; /// Longitude, expressed as * 1E7
public int alt ; /// Altitude in meters, expressed as * 1000 (millimeters)
public short vx ; /// Ground X Speed (Latitude), expressed as m/s * 100
public short vy ; /// Ground Y Speed (Longitude), expressed as m/s * 100
public short vz ; /// Ground Z Speed (Altitude), expressed as m/s * 100
public short xacc ; /// X acceleration (mg)
public short yacc ; /// Y acceleration (mg)
public short zacc ; /// Z acceleration (mg)
2011-09-17 10:22:07 -03:00
} ;
public const byte MAVLINK_MSG_ID_HIL_STATE_LEN = 56 ;
public const byte MAVLINK_MSG_ID_67_LEN = 56 ;
public const byte MAVLINK_MSG_ID_LOCAL_POSITION = 31 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_local_position_t
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public float x ; /// X Position
public float y ; /// Y Position
public float z ; /// Z Position
public float vx ; /// X Speed
public float vy ; /// Y Speed
public float vz ; /// Z Speed
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_LOCAL_POSITION_LEN = 32 ;
public const byte MAVLINK_MSG_ID_31_LEN = 32 ;
public const byte MAVLINK_MSG_ID_LOCAL_POSITION_SETPOINT = 51 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_local_position_setpoint_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public float x ; /// x position
public float y ; /// y position
public float z ; /// z position
public float yaw ; /// Desired yaw angle
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_LOCAL_POSITION_SETPOINT_LEN = 16 ;
public const byte MAVLINK_MSG_ID_51_LEN = 16 ;
public const byte MAVLINK_MSG_ID_LOCAL_POSITION_SETPOINT_SET = 50 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_local_position_setpoint_set_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public float x ; /// x position
public float y ; /// y position
public float z ; /// z position
public float yaw ; /// Desired yaw angle
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_LOCAL_POSITION_SETPOINT_SET_LEN = 18 ;
public const byte MAVLINK_MSG_ID_50_LEN = 18 ;
public const byte MAVLINK_MSG_ID_MANUAL_CONTROL = 69 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_manual_control_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target ; /// The system to be controlled
public float roll ; /// roll
public float pitch ; /// pitch
public float yaw ; /// yaw
public float thrust ; /// thrust
public byte roll_manual ; /// roll control enabled auto:0, manual:1
public byte pitch_manual ; /// pitch auto:0, manual:1
public byte yaw_manual ; /// yaw auto:0, manual:1
public byte thrust_manual ; /// thrust auto:0, manual:1
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_MANUAL_CONTROL_LEN = 21 ;
public const byte MAVLINK_MSG_ID_69_LEN = 21 ;
public const byte MAVLINK_MSG_ID_NAMED_VALUE_FLOAT = 252 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_named_value_float_t
2011-09-08 22:31:32 -03:00
{
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 10 ) ]
2011-10-04 08:19:25 -03:00
char name ; /// Name of the debug variable
public float value ; /// Floating point value
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_NAMED_VALUE_FLOAT_LEN = 14 ;
public const byte MAVLINK_MSG_ID_252_LEN = 14 ;
public const byte MAVLINK_MSG_ID_NAMED_VALUE_INT = 253 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_named_value_int_t
2011-09-08 22:31:32 -03:00
{
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 10 ) ]
2011-10-04 08:19:25 -03:00
char name ; /// Name of the debug variable
public int value ; /// Signed integer value
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_NAMED_VALUE_INT_LEN = 14 ;
public const byte MAVLINK_MSG_ID_253_LEN = 14 ;
public const byte MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT = 62 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_nav_controller_output_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public float nav_roll ; /// Current desired roll in degrees
public float nav_pitch ; /// Current desired pitch in degrees
public short nav_bearing ; /// Current desired heading in degrees
public short target_bearing ; /// Bearing to current waypoint/target in degrees
public ushort wp_dist ; /// Distance to active waypoint in meters
public float alt_error ; /// Current altitude error in meters
public float aspd_error ; /// Current airspeed error in meters/second
public float xtrack_error ; /// Current crosstrack error on x-y plane in meters
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT_LEN = 26 ;
public const byte MAVLINK_MSG_ID_62_LEN = 26 ;
public const byte MAVLINK_MSG_ID_OBJECT_DETECTION_EVENT = 140 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_object_detection_event_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public uint time ; /// Timestamp in milliseconds since system boot
public ushort object_id ; /// Object ID
public byte type ; /// Object type: 0: image, 1: letter, 2: ground vehicle, 3: air vehicle, 4: surface vehicle, 5: sub-surface vehicle, 6: human, 7: animal
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 20 ) ]
2011-10-04 08:19:25 -03:00
char name ; /// Name of the object as defined by the detector
public byte quality ; /// Detection quality / confidence. 0: bad, 255: maximum confidence
public float bearing ; /// Angle of the object with respect to the body frame in NED coordinates in radians. 0: front
public float distance ; /// Ground distance in meters
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_OBJECT_DETECTION_EVENT_LEN = 36 ;
public const byte MAVLINK_MSG_ID_140_LEN = 36 ;
public const byte MAVLINK_MSG_ID_OPTICAL_FLOW = 100 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_optical_flow_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong time ; /// Timestamp (UNIX)
public byte sensor_id ; /// Sensor ID
public short flow_x ; /// Flow in pixels in x-sensor direction
public short flow_y ; /// Flow in pixels in y-sensor direction
public byte quality ; /// Optical flow quality / confidence. 0: bad, 255: maximum quality
public float ground_distance ; /// Ground distance in meters
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_OPTICAL_FLOW_LEN = 18 ;
public const byte MAVLINK_MSG_ID_100_LEN = 18 ;
public const byte MAVLINK_MSG_ID_PARAM_REQUEST_LIST = 21 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_param_request_list_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_PARAM_REQUEST_LIST_LEN = 2 ;
public const byte MAVLINK_MSG_ID_21_LEN = 2 ;
public const byte MAVLINK_MSG_ID_PARAM_REQUEST_READ = 20 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_param_request_read_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 15 ) ]
2011-10-04 08:19:25 -03:00
public byte [ ] param_id ; /// Onboard parameter id
public short param_index ; /// Parameter index. Send -1 to use the param ID field as identifier
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_PARAM_REQUEST_READ_LEN = 19 ;
public const byte MAVLINK_MSG_ID_20_LEN = 19 ;
public const byte MAVLINK_MSG_ID_PARAM_SET = 23 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_param_set_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 15 ) ]
2011-10-04 08:19:25 -03:00
public byte [ ] param_id ; /// Onboard parameter id
public float param_value ; /// Onboard parameter value
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_PARAM_SET_LEN = 21 ;
public const byte MAVLINK_MSG_ID_23_LEN = 21 ;
public const byte MAVLINK_MSG_ID_PARAM_VALUE = 22 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_param_value_t
2011-09-08 22:31:32 -03:00
{
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 15 ) ]
2011-10-04 08:19:25 -03:00
public byte [ ] param_id ; /// Onboard parameter id
public float param_value ; /// Onboard parameter value
public ushort param_count ; /// Total number of onboard parameters
public ushort param_index ; /// Index of this onboard parameter
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_PARAM_VALUE_LEN = 23 ;
public const byte MAVLINK_MSG_ID_22_LEN = 23 ;
public const byte MAVLINK_MSG_ID_PING = 3 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_ping_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public uint seq ; /// PING sequence
public byte target_system ; /// 0: request ping from all receiving systems, if greater than 0: message is a ping response and number is the system id of the requesting system
public byte target_component ; /// 0: request ping from all receiving components, if greater than 0: message is a ping response and number is the system id of the requesting system
public ulong time ; /// Unix timestamp in microseconds
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_PING_LEN = 14 ;
public const byte MAVLINK_MSG_ID_3_LEN = 14 ;
public const byte MAVLINK_MSG_ID_POSITION_CONTROLLER_OUTPUT = 61 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_position_controller_output_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte enabled ; /// 1: enabled, 0: disabled
public byte x ; /// Position x: -128: -100%, 127: +100%
public byte y ; /// Position y: -128: -100%, 127: +100%
public byte z ; /// Position z: -128: -100%, 127: +100%
public byte yaw ; /// Position yaw: -128: -100%, 127: +100%
2011-09-17 10:22:07 -03:00
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_POSITION_TARGET = 63 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_position_target_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public float x ; /// x position
public float y ; /// y position
public float z ; /// z position
public float yaw ; /// yaw orientation in radians, 0 = NORTH
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_POSITION_TARGET_LEN = 16 ;
public const byte MAVLINK_MSG_ID_63_LEN = 16 ;
public const byte MAVLINK_MSG_ID_RAW_IMU = 28 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_raw_imu_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public short xacc ; /// X acceleration (raw)
public short yacc ; /// Y acceleration (raw)
public short zacc ; /// Z acceleration (raw)
public short xgyro ; /// Angular speed around X axis (raw)
public short ygyro ; /// Angular speed around Y axis (raw)
public short zgyro ; /// Angular speed around Z axis (raw)
public short xmag ; /// X Magnetic field (raw)
public short ymag ; /// Y Magnetic field (raw)
public short zmag ; /// Z Magnetic field (raw)
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_RAW_IMU_LEN = 26 ;
public const byte MAVLINK_MSG_ID_28_LEN = 26 ;
public const byte MAVLINK_MSG_ID_RAW_PRESSURE = 29 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_raw_pressure_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public short press_abs ; /// Absolute pressure (raw)
public short press_diff1 ; /// Differential pressure 1 (raw)
public short press_diff2 ; /// Differential pressure 2 (raw)
public short temperature ; /// Raw Temperature measurement (raw)
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_RAW_PRESSURE_LEN = 16 ;
public const byte MAVLINK_MSG_ID_29_LEN = 16 ;
public const byte MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE = 70 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_rc_channels_override_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public ushort chan1_raw ; /// RC channel 1 value, in microseconds
public ushort chan2_raw ; /// RC channel 2 value, in microseconds
public ushort chan3_raw ; /// RC channel 3 value, in microseconds
public ushort chan4_raw ; /// RC channel 4 value, in microseconds
public ushort chan5_raw ; /// RC channel 5 value, in microseconds
public ushort chan6_raw ; /// RC channel 6 value, in microseconds
public ushort chan7_raw ; /// RC channel 7 value, in microseconds
public ushort chan8_raw ; /// RC channel 8 value, in microseconds
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN = 18 ;
public const byte MAVLINK_MSG_ID_70_LEN = 18 ;
public const byte MAVLINK_MSG_ID_RC_CHANNELS_RAW = 35 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_rc_channels_raw_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ushort chan1_raw ; /// RC channel 1 value, in microseconds
public ushort chan2_raw ; /// RC channel 2 value, in microseconds
public ushort chan3_raw ; /// RC channel 3 value, in microseconds
public ushort chan4_raw ; /// RC channel 4 value, in microseconds
public ushort chan5_raw ; /// RC channel 5 value, in microseconds
public ushort chan6_raw ; /// RC channel 6 value, in microseconds
public ushort chan7_raw ; /// RC channel 7 value, in microseconds
public ushort chan8_raw ; /// RC channel 8 value, in microseconds
public byte rssi ; /// Receive signal strength indicator, 0: 0%, 255: 100%
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_RC_CHANNELS_RAW_LEN = 17 ;
public const byte MAVLINK_MSG_ID_35_LEN = 17 ;
public const byte MAVLINK_MSG_ID_RC_CHANNELS_SCALED = 36 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_rc_channels_scaled_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public short chan1_scaled ; /// RC channel 1 value scaled, (-100%) -10000, (0%) 0, (100%) 10000
public short chan2_scaled ; /// RC channel 2 value scaled, (-100%) -10000, (0%) 0, (100%) 10000
public short chan3_scaled ; /// RC channel 3 value scaled, (-100%) -10000, (0%) 0, (100%) 10000
public short chan4_scaled ; /// RC channel 4 value scaled, (-100%) -10000, (0%) 0, (100%) 10000
public short chan5_scaled ; /// RC channel 5 value scaled, (-100%) -10000, (0%) 0, (100%) 10000
public short chan6_scaled ; /// RC channel 6 value scaled, (-100%) -10000, (0%) 0, (100%) 10000
public short chan7_scaled ; /// RC channel 7 value scaled, (-100%) -10000, (0%) 0, (100%) 10000
public short chan8_scaled ; /// RC channel 8 value scaled, (-100%) -10000, (0%) 0, (100%) 10000
public byte rssi ; /// Receive signal strength indicator, 0: 0%, 255: 100%
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_RC_CHANNELS_SCALED_LEN = 17 ;
public const byte MAVLINK_MSG_ID_36_LEN = 17 ;
public const byte MAVLINK_MSG_ID_REQUEST_DATA_STREAM = 66 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_request_data_stream_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// The target requested to send the message stream.
public byte target_component ; /// The target requested to send the message stream.
public byte req_stream_id ; /// The ID of the requested message type
public ushort req_message_rate ; /// Update rate in Hertz
public byte start_stop ; /// 1 to start sending, 0 to stop sending.
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_REQUEST_DATA_STREAM_LEN = 6 ;
public const byte MAVLINK_MSG_ID_66_LEN = 6 ;
public const byte MAVLINK_MSG_ID_REQUEST_DYNAMIC_GYRO_CALIBRATION = 67 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_request_dynamic_gyro_calibration_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// The system which should auto-calibrate
public byte target_component ; /// The system component which should auto-calibrate
public float mode ; /// The current ground-truth rpm
public byte axis ; /// The axis to calibrate: 0 roll, 1 pitch, 2 yaw
public ushort time ; /// The time to average over in ms
2011-09-17 10:22:07 -03:00
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_REQUEST_STATIC_CALIBRATION = 68 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_request_static_calibration_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// The system which should auto-calibrate
public byte target_component ; /// The system component which should auto-calibrate
public ushort time ; /// The time to average over in ms
2011-09-17 10:22:07 -03:00
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_ROLL_PITCH_YAW_SPEED_THRUST_SETPOINT = 58 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_roll_pitch_yaw_speed_thrust_setpoint_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong time_us ; /// Timestamp in micro seconds since unix epoch
public float roll_speed ; /// Desired roll angular speed in rad/s
public float pitch_speed ; /// Desired pitch angular speed in rad/s
public float yaw_speed ; /// Desired yaw angular speed in rad/s
public float thrust ; /// Collective thrust, normalized to 0 .. 1
2011-09-17 10:22:07 -03:00
} ;
public const byte MAVLINK_MSG_ID_ROLL_PITCH_YAW_SPEED_THRUST_SETPOINT_LEN = 24 ;
public const byte MAVLINK_MSG_ID_58_LEN = 24 ;
public const byte MAVLINK_MSG_ID_ROLL_PITCH_YAW_THRUST_SETPOINT = 57 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_roll_pitch_yaw_thrust_setpoint_t
{
2011-10-04 08:19:25 -03:00
public ulong time_us ; /// Timestamp in micro seconds since unix epoch
public float roll ; /// Desired roll angle in radians
public float pitch ; /// Desired pitch angle in radians
public float yaw ; /// Desired yaw angle in radians
public float thrust ; /// Collective thrust, normalized to 0 .. 1
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_ROLL_PITCH_YAW_THRUST_SETPOINT_LEN = 24 ;
public const byte MAVLINK_MSG_ID_57_LEN = 24 ;
2011-09-08 22:31:32 -03:00
public const byte MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA = 54 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_safety_allowed_area_t
{
2011-10-04 08:19:25 -03:00
public byte frame ; /// Coordinate frame, as defined by MAV_FRAME enum in mavlink_types.h. Can be either global, GPS, right-handed with Z axis up or local, right handed, Z axis down.
public float p1x ; /// x position 1 / Latitude 1
public float p1y ; /// y position 1 / Longitude 1
public float p1z ; /// z position 1 / Altitude 1
public float p2x ; /// x position 2 / Latitude 2
public float p2y ; /// y position 2 / Longitude 2
public float p2z ; /// z position 2 / Altitude 2
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA_LEN = 25 ;
public const byte MAVLINK_MSG_ID_54_LEN = 25 ;
public const byte MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA = 53 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_safety_set_allowed_area_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public byte frame ; /// Coordinate frame, as defined by MAV_FRAME enum in mavlink_types.h. Can be either global, GPS, right-handed with Z axis up or local, right handed, Z axis down.
public float p1x ; /// x position 1 / Latitude 1
public float p1y ; /// y position 1 / Longitude 1
public float p1z ; /// z position 1 / Altitude 1
public float p2x ; /// x position 2 / Latitude 2
public float p2y ; /// y position 2 / Longitude 2
public float p2z ; /// z position 2 / Altitude 2
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN = 27 ;
public const byte MAVLINK_MSG_ID_53_LEN = 27 ;
public const byte MAVLINK_MSG_ID_SCALED_IMU = 26 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_scaled_imu_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public short xacc ; /// X acceleration (mg)
public short yacc ; /// Y acceleration (mg)
public short zacc ; /// Z acceleration (mg)
public short xgyro ; /// Angular speed around X axis (millirad /sec)
public short ygyro ; /// Angular speed around Y axis (millirad /sec)
public short zgyro ; /// Angular speed around Z axis (millirad /sec)
public short xmag ; /// X Magnetic field (milli tesla)
public short ymag ; /// Y Magnetic field (milli tesla)
public short zmag ; /// Z Magnetic field (milli tesla)
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SCALED_IMU_LEN = 26 ;
public const byte MAVLINK_MSG_ID_26_LEN = 26 ;
public const byte MAVLINK_MSG_ID_SCALED_PRESSURE = 38 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_scaled_pressure_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ulong usec ; /// Timestamp (microseconds since UNIX epoch or microseconds since system boot)
public float press_abs ; /// Absolute pressure (hectopascal)
public float press_diff ; /// Differential pressure 1 (hectopascal)
public short temperature ; /// Temperature measurement (0.01 degrees celsius)
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SCALED_PRESSURE_LEN = 18 ;
public const byte MAVLINK_MSG_ID_38_LEN = 18 ;
public const byte MAVLINK_MSG_ID_SERVO_OUTPUT_RAW = 37 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_servo_output_raw_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ushort servo1_raw ; /// Servo output 1 value, in microseconds
public ushort servo2_raw ; /// Servo output 2 value, in microseconds
public ushort servo3_raw ; /// Servo output 3 value, in microseconds
public ushort servo4_raw ; /// Servo output 4 value, in microseconds
public ushort servo5_raw ; /// Servo output 5 value, in microseconds
public ushort servo6_raw ; /// Servo output 6 value, in microseconds
public ushort servo7_raw ; /// Servo output 7 value, in microseconds
public ushort servo8_raw ; /// Servo output 8 value, in microseconds
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SERVO_OUTPUT_RAW_LEN = 16 ;
public const byte MAVLINK_MSG_ID_37_LEN = 16 ;
public const byte MAVLINK_MSG_ID_SET_ALTITUDE = 65 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_set_altitude_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target ; /// The system setting the altitude
public uint mode ; /// The new altitude in meters
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SET_ALTITUDE_LEN = 5 ;
public const byte MAVLINK_MSG_ID_65_LEN = 5 ;
public const byte MAVLINK_MSG_ID_SET_MODE = 11 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_set_mode_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target ; /// The system setting the mode
public byte mode ; /// The new mode
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SET_MODE_LEN = 2 ;
public const byte MAVLINK_MSG_ID_11_LEN = 2 ;
public const byte MAVLINK_MSG_ID_SET_NAV_MODE = 12 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_set_nav_mode_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target ; /// The system setting the mode
public byte nav_mode ; /// The new navigation mode
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SET_NAV_MODE_LEN = 2 ;
public const byte MAVLINK_MSG_ID_12_LEN = 2 ;
public const byte MAVLINK_MSG_ID_SET_ROLL_PITCH_YAW = 55 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_set_roll_pitch_yaw_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public float roll ; /// Desired roll angle in radians
public float pitch ; /// Desired pitch angle in radians
public float yaw ; /// Desired yaw angle in radians
2011-09-17 10:22:07 -03:00
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SET_ROLL_PITCH_YAW_SPEED = 56 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_set_roll_pitch_yaw_speed_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public float roll_speed ; /// Desired roll angular speed in rad/s
public float pitch_speed ; /// Desired pitch angular speed in rad/s
public float yaw_speed ; /// Desired yaw angular speed in rad/s
2011-09-17 10:22:07 -03:00
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SET_ROLL_PITCH_YAW_SPEED_THRUST = 56 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_set_roll_pitch_yaw_speed_thrust_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public float roll_speed ; /// Desired roll angular speed in rad/s
public float pitch_speed ; /// Desired pitch angular speed in rad/s
public float yaw_speed ; /// Desired yaw angular speed in rad/s
public float thrust ; /// Collective thrust, normalized to 0 .. 1
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SET_ROLL_PITCH_YAW_SPEED_THRUST_LEN = 18 ;
public const byte MAVLINK_MSG_ID_56_LEN = 18 ;
public const byte MAVLINK_MSG_ID_SET_ROLL_PITCH_YAW_THRUST = 55 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_set_roll_pitch_yaw_thrust_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public float roll ; /// Desired roll angle in radians
public float pitch ; /// Desired pitch angle in radians
public float yaw ; /// Desired yaw angle in radians
public float thrust ; /// Collective thrust, normalized to 0 .. 1
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SET_ROLL_PITCH_YAW_THRUST_LEN = 18 ;
public const byte MAVLINK_MSG_ID_55_LEN = 18 ;
public const byte MAVLINK_MSG_ID_STATE_CORRECTION = 64 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_state_correction_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public float xErr ; /// x position error
public float yErr ; /// y position error
public float zErr ; /// z position error
public float rollErr ; /// roll error (radians)
public float pitchErr ; /// pitch error (radians)
public float yawErr ; /// yaw error (radians)
public float vxErr ; /// x velocity
public float vyErr ; /// y velocity
public float vzErr ; /// z velocity
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_STATE_CORRECTION_LEN = 36 ;
public const byte MAVLINK_MSG_ID_64_LEN = 36 ;
public const byte MAVLINK_MSG_ID_STATUSTEXT = 254 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_statustext_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte severity ; /// Severity of status, 0 = info message, 255 = critical fault
2011-09-17 10:22:07 -03:00
[ MarshalAs (
UnmanagedType . ByValArray ,
SizeConst = 50 ) ]
2011-10-04 08:19:25 -03:00
public byte [ ] text ; /// Status text message, without null termination character
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_STATUSTEXT_LEN = 51 ;
public const byte MAVLINK_MSG_ID_254_LEN = 51 ;
public const byte MAVLINK_MSG_ID_SYSTEM_TIME = 2 ;
public const byte MAVLINK_MSG_ID_SYSTEM_TIME_UTC = 4 ;
public const byte MAVLINK_MSG_ID_SYS_STATUS = 34 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_sys_status_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte mode ; /// System mode, see MAV_MODE ENUM in mavlink/include/mavlink_types.h
public byte nav_mode ; /// Navigation mode, see MAV_NAV_MODE ENUM
public byte status ; /// System status flag, see MAV_STATUS ENUM
public ushort load ; /// Maximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000
public ushort vbat ; /// Battery voltage, in millivolts (1 = 1 millivolt)
public ushort battery_remaining ; /// Remaining battery energy: (0%: 0, 100%: 1000)
public ushort packet_drop ; /// Dropped packets (packets that were corrupted on reception on the MAV)
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_SYS_STATUS_LEN = 11 ;
public const byte MAVLINK_MSG_ID_34_LEN = 11 ;
2011-09-08 22:31:32 -03:00
public const byte MAVLINK_MSG_ID_VFR_HUD = 74 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_vfr_hud_t
{
2011-10-04 08:19:25 -03:00
public float airspeed ; /// Current airspeed in m/s
public float groundspeed ; /// Current ground speed in m/s
public short heading ; /// Current heading in degrees, in compass units (0..360, 0=north)
public ushort throttle ; /// Current throttle setting in integer percent, 0 to 100
public float alt ; /// Current altitude (MSL), in meters
public float climb ; /// Current climb rate in meters/second
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_VFR_HUD_LEN = 20 ;
public const byte MAVLINK_MSG_ID_74_LEN = 20 ;
public const byte MAVLINK_MSG_ID_WAYPOINT = 39 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_waypoint_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public ushort seq ; /// Sequence
public byte frame ; /// The coordinate system of the waypoint. see MAV_FRAME in mavlink_types.h
public byte command ; /// The scheduled action for the waypoint. see MAV_COMMAND in common.xml MAVLink specs
public byte current ; /// false:0, true:1
public byte autocontinue ; /// autocontinue to next wp
public float param1 ; /// PARAM1 / For NAV command waypoints: Radius in which the waypoint is accepted as reached, in meters
public float param2 ; /// PARAM2 / For NAV command waypoints: Time that the MAV should stay inside the PARAM1 radius before advancing, in milliseconds
public float param3 ; /// PARAM3 / For LOITER command waypoints: Orbit to circle around the waypoint, in meters. If positive the orbit direction should be clockwise, if negative the orbit direction should be counter-clockwise.
public float param4 ; /// PARAM4 / For NAV and LOITER command waypoints: Yaw orientation in degrees, [0..360] 0 = NORTH
public float x ; /// PARAM5 / local: x position, global: latitude
public float y ; /// PARAM6 / y position: global: longitude
public float z ; /// PARAM7 / z position: global: altitude
2011-09-17 10:22:07 -03:00
} ;
public const byte MAVLINK_MSG_ID_WAYPOINT_LEN = 36 ;
public const byte MAVLINK_MSG_ID_39_LEN = 36 ;
public const byte MAVLINK_MSG_ID_WAYPOINT_ACK = 47 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_waypoint_ack_t
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public byte type ; /// 0: OK, 1: Error
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_WAYPOINT_ACK_LEN = 3 ;
public const byte MAVLINK_MSG_ID_47_LEN = 3 ;
public const byte MAVLINK_MSG_ID_WAYPOINT_CLEAR_ALL = 45 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_waypoint_clear_all_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_WAYPOINT_CLEAR_ALL_LEN = 2 ;
public const byte MAVLINK_MSG_ID_45_LEN = 2 ;
public const byte MAVLINK_MSG_ID_WAYPOINT_COUNT = 44 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_waypoint_count_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public ushort count ; /// Number of Waypoints in the Sequence
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_WAYPOINT_COUNT_LEN = 4 ;
public const byte MAVLINK_MSG_ID_44_LEN = 4 ;
public const byte MAVLINK_MSG_ID_WAYPOINT_CURRENT = 42 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_waypoint_current_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ushort seq ; /// Sequence
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_WAYPOINT_CURRENT_LEN = 2 ;
public const byte MAVLINK_MSG_ID_42_LEN = 2 ;
public const byte MAVLINK_MSG_ID_WAYPOINT_REACHED = 46 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_waypoint_reached_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public ushort seq ; /// Sequence
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_WAYPOINT_REACHED_LEN = 2 ;
public const byte MAVLINK_MSG_ID_46_LEN = 2 ;
public const byte MAVLINK_MSG_ID_WAYPOINT_REQUEST = 40 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_waypoint_request_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public ushort seq ; /// Sequence
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_WAYPOINT_REQUEST_LEN = 4 ;
public const byte MAVLINK_MSG_ID_40_LEN = 4 ;
public const byte MAVLINK_MSG_ID_WAYPOINT_REQUEST_LIST = 43 ;
2011-09-08 22:31:32 -03:00
[StructLayout(LayoutKind.Sequential,Pack=1)]
2011-09-17 10:22:07 -03:00
public struct __mavlink_waypoint_request_list_t
2011-09-08 22:31:32 -03:00
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
2011-09-08 22:31:32 -03:00
} ;
2011-09-17 10:22:07 -03:00
public const byte MAVLINK_MSG_ID_WAYPOINT_REQUEST_LIST_LEN = 2 ;
public const byte MAVLINK_MSG_ID_43_LEN = 2 ;
public const byte MAVLINK_MSG_ID_WAYPOINT_SET_CURRENT = 41 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_waypoint_set_current_t
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public ushort seq ; /// Sequence
2011-09-17 10:22:07 -03:00
} ;
public const byte MAVLINK_MSG_ID_WAYPOINT_SET_CURRENT_LEN = 4 ;
public const byte MAVLINK_MSG_ID_41_LEN = 4 ;
public const byte MAVLINK_MSG_ID_WAYPOINT_SET_GLOBAL_REFERENCE = 48 ;
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct __mavlink_waypoint_set_global_reference_t
{
2011-10-04 08:19:25 -03:00
public byte target_system ; /// System ID
public byte target_component ; /// Component ID
public float global_x ; /// global x position
public float global_y ; /// global y position
public float global_z ; /// global z position
public float global_yaw ; /// global yaw orientation in radians, 0 = NORTH
public float local_x ; /// local x position that matches the global x position
public float local_y ; /// local y position that matches the global y position
public float local_z ; /// local z position that matches the global z position
public float local_yaw ; /// local yaw that matches the global yaw orientation
2011-09-17 10:22:07 -03:00
} ;
public enum MAV_CLASS
{
2011-10-04 08:19:25 -03:00
MAV_CLASS_GENERIC = 0 , /// Generic autopilot, full support for everything
MAV_CLASS_PIXHAWK = 1 , /// PIXHAWK autopilot, http://pixhawk.ethz.ch
MAV_CLASS_SLUGS = 2 , /// SLUGS autopilot, http://slugsuav.soe.ucsc.edu
MAV_CLASS_ARDUPILOTMEGA = 3 , /// ArduPilotMega / ArduCopter, http://diydrones.com
MAV_CLASS_OPENPILOT = 4 , /// OpenPilot, http://openpilot.org
MAV_CLASS_GENERIC_MISSION_WAYPOINTS_ONLY = 5 , /// Generic autopilot only supporting simple waypoints
MAV_CLASS_GENERIC_MISSION_NAVIGATION_ONLY = 6 , /// Generic autopilot supporting waypoints and other simple navigation commands
MAV_CLASS_GENERIC_MISSION_FULL = 7 , /// Generic autopilot supporting the full mission command set
MAV_CLASS_NONE = 8 , /// No valid autopilot
MAV_CLASS_NB /// Number of autopilot classes
2011-09-17 10:22:07 -03:00
} ;
public enum MAV_ACTION
{
MAV_ACTION_HOLD = 0 ,
MAV_ACTION_MOTORS_START = 1 ,
MAV_ACTION_LAUNCH = 2 ,
MAV_ACTION_RETURN = 3 ,
MAV_ACTION_EMCY_LAND = 4 ,
MAV_ACTION_EMCY_KILL = 5 ,
MAV_ACTION_CONFIRM_KILL = 6 ,
MAV_ACTION_CONTINUE = 7 ,
MAV_ACTION_MOTORS_STOP = 8 ,
MAV_ACTION_HALT = 9 ,
MAV_ACTION_SHUTDOWN = 10 ,
MAV_ACTION_REBOOT = 11 ,
MAV_ACTION_SET_MANUAL = 12 ,
MAV_ACTION_SET_AUTO = 13 ,
MAV_ACTION_STORAGE_READ = 14 ,
MAV_ACTION_STORAGE_WRITE = 15 ,
MAV_ACTION_CALIBRATE_RC = 16 ,
MAV_ACTION_CALIBRATE_GYRO = 17 ,
MAV_ACTION_CALIBRATE_MAG = 18 ,
MAV_ACTION_CALIBRATE_ACC = 19 ,
MAV_ACTION_CALIBRATE_PRESSURE = 20 ,
MAV_ACTION_REC_START = 21 ,
MAV_ACTION_REC_PAUSE = 22 ,
MAV_ACTION_REC_STOP = 23 ,
MAV_ACTION_TAKEOFF = 24 ,
MAV_ACTION_NAVIGATE = 25 ,
MAV_ACTION_LAND = 26 ,
MAV_ACTION_LOITER = 27 ,
MAV_ACTION_SET_ORIGIN = 28 ,
MAV_ACTION_RELAY_ON = 29 ,
MAV_ACTION_RELAY_OFF = 30 ,
MAV_ACTION_GET_IMAGE = 31 ,
MAV_ACTION_VIDEO_START = 32 ,
MAV_ACTION_VIDEO_STOP = 33 ,
MAV_ACTION_RESET_MAP = 34 ,
MAV_ACTION_RESET_PLAN = 35 ,
MAV_ACTION_DELAY_BEFORE_COMMAND = 36 ,
MAV_ACTION_ASCEND_AT_RATE = 37 ,
MAV_ACTION_CHANGE_MODE = 38 ,
MAV_ACTION_LOITER_MAX_TURNS = 39 ,
MAV_ACTION_LOITER_MAX_TIME = 40 ,
MAV_ACTION_START_HILSIM = 41 ,
MAV_ACTION_STOP_HILSIM = 42 ,
2011-10-04 08:19:25 -03:00
MAV_ACTION_NB /// Number of MAV actions
2011-09-17 10:22:07 -03:00
} ;
public enum MAV_MODE
{
2011-10-04 08:19:25 -03:00
MAV_MODE_UNINIT = 0 , /// System is in undefined state
MAV_MODE_LOCKED = 1 , /// Motors are blocked, system is safe
MAV_MODE_MANUAL = 2 , /// System is allowed to be active, under manual (RC) control
MAV_MODE_GUIDED = 3 , /// System is allowed to be active, under autonomous control, manual setpoint
MAV_MODE_AUTO = 4 , /// System is allowed to be active, under autonomous control and navigation
MAV_MODE_TEST1 = 5 , /// Generic test mode, for custom use
MAV_MODE_TEST2 = 6 , /// Generic test mode, for custom use
MAV_MODE_TEST3 = 7 , /// Generic test mode, for custom use
MAV_MODE_READY = 8 , /// System is ready, motors are unblocked, but controllers are inactive
MAV_MODE_RC_TRAINING = 9 /// System is blocked, only RC valued are read and reported back
2011-09-17 10:22:07 -03:00
} ;
public enum MAV_STATE
{
MAV_STATE_UNINIT = 0 ,
MAV_STATE_BOOT ,
MAV_STATE_CALIBRATING ,
MAV_STATE_STANDBY ,
MAV_STATE_ACTIVE ,
MAV_STATE_CRITICAL ,
MAV_STATE_EMERGENCY ,
MAV_STATE_HILSIM ,
MAV_STATE_POWEROFF
} ;
public enum MAV_NAV
{
MAV_NAV_GROUNDED = 0 ,
MAV_NAV_LIFTOFF ,
MAV_NAV_HOLD ,
MAV_NAV_WAYPOINT ,
MAV_NAV_VECTOR ,
MAV_NAV_RETURNING ,
MAV_NAV_LANDING ,
MAV_NAV_LOST ,
MAV_NAV_LOITER ,
MAV_NAV_FREE_DRIFT
} ;
public enum MAV_TYPE
{
MAV_GENERIC = 0 ,
MAV_FIXED_WING = 1 ,
MAV_QUADROTOR = 2 ,
MAV_COAXIAL = 3 ,
MAV_HELICOPTER = 4 ,
MAV_GROUND = 5 ,
OCU = 6 ,
MAV_AIRSHIP = 7 ,
MAV_FREE_BALLOON = 8 ,
MAV_ROCKET = 9 ,
UGV_GROUND_ROVER = 10 ,
UGV_SURFACE_SHIP = 11
} ;
public enum MAV_AUTOPILOT_TYPE
{
MAV_AUTOPILOT_GENERIC = 0 ,
MAV_AUTOPILOT_PIXHAWK = 1 ,
MAV_AUTOPILOT_SLUGS = 2 ,
MAV_AUTOPILOT_ARDUPILOTMEGA = 3 ,
MAV_AUTOPILOT_NONE = 4
} ;
public enum MAV_COMPONENT
{
MAV_COMP_ID_GPS ,
MAV_COMP_ID_WAYPOINTPLANNER ,
MAV_COMP_ID_BLOBTRACKER ,
MAV_COMP_ID_PATHPLANNER ,
MAV_COMP_ID_AIRSLAM ,
MAV_COMP_ID_MAPPER ,
MAV_COMP_ID_CAMERA ,
MAV_COMP_ID_IMU = 200 ,
MAV_COMP_ID_IMU_2 = 201 ,
MAV_COMP_ID_IMU_3 = 202 ,
MAV_COMP_ID_UDP_BRIDGE = 240 ,
MAV_COMP_ID_UART_BRIDGE = 241 ,
MAV_COMP_ID_SYSTEM_CONTROL = 250
} ;
public enum MAV_FRAME
{
MAV_FRAME_GLOBAL = 0 ,
MAV_FRAME_LOCAL = 1 ,
MAV_FRAME_MISSION = 2 ,
MAV_FRAME_GLOBAL_RELATIVE_ALT = 3 ,
MAV_FRAME_LOCAL_ENU = 4
} ;
Type [ ] mavstructs = new Type [ ] { typeof ( __mavlink_heartbeat_t ) , typeof ( __mavlink_boot_t ) , null , typeof ( __mavlink_ping_t ) , null , typeof ( __mavlink_change_operator_control_t ) , typeof ( __mavlink_change_operator_control_ack_t ) , typeof ( __mavlink_auth_key_t ) , null , typeof ( __mavlink_action_ack_t ) , typeof ( __mavlink_action_t ) , typeof ( __mavlink_set_mode_t ) , typeof ( __mavlink_set_nav_mode_t ) , null , null , null , null , null , null , null , typeof ( __mavlink_param_request_read_t ) , typeof ( __mavlink_param_request_list_t ) , typeof ( __mavlink_param_value_t ) , typeof ( __mavlink_param_set_t ) , null , typeof ( __mavlink_gps_raw_int_t ) , typeof ( __mavlink_scaled_imu_t ) , typeof ( __mavlink_gps_status_t ) , typeof ( __mavlink_raw_imu_t ) , typeof ( __mavlink_raw_pressure_t ) , typeof ( __mavlink_attitude_new_t ) , typeof ( __mavlink_local_position_t ) , typeof ( __mavlink_gps_raw_t ) , typeof ( __mavlink_global_position_t ) , typeof ( __mavlink_sys_status_t ) , typeof ( __mavlink_rc_channels_raw_t ) , typeof ( __mavlink_rc_channels_scaled_t ) , typeof ( __mavlink_servo_output_raw_t ) , typeof ( __mavlink_scaled_pressure_t ) , typeof ( __mavlink_waypoint_t ) , typeof ( __mavlink_waypoint_request_t ) , typeof ( __mavlink_waypoint_set_current_t ) , typeof ( __mavlink_waypoint_current_t ) , typeof ( __mavlink_waypoint_request_list_t ) , typeof ( __mavlink_waypoint_count_t ) , typeof ( __mavlink_waypoint_clear_all_t ) , typeof ( __mavlink_waypoint_reached_t ) , typeof ( __mavlink_waypoint_ack_t ) , typeof ( __mavlink_waypoint_set_global_reference_t ) , typeof ( __mavlink_gps_local_origin_set_t ) , typeof ( __mavlink_local_position_setpoint_set_t ) , typeof ( __mavlink_local_position_setpoint_t ) , typeof ( __mavlink_control_status_t ) , typeof ( __mavlink_safety_set_allowed_area_t ) , typeof ( __mavlink_safety_allowed_area_t ) , typeof ( __mavlink_set_roll_pitch_yaw_thrust_t ) , typeof ( __mavlink_set_roll_pitch_yaw_speed_thrust_t ) , typeof ( __mavlink_roll_pitch_yaw_thrust_setpoint_t ) , typeof ( __mavlink_roll_pitch_yaw_speed_thrust_setpoint_t ) , null , typeof ( __mavlink_attitude_controller_output_t ) , typeof ( __mavlink_position_controller_output_t ) , typeof ( __mavlink_nav_controller_output_t ) , typeof ( __mavlink_position_target_t ) , typeof ( __mavlink_state_correction_t ) , typeof ( __mavlink_set_altitude_t ) , typeof ( __mavlink_request_data_stream_t ) , typeof ( __mavlink_request_dynamic_gyro_calibration_t ) , typeof ( __mavlink_request_static_calibration_t ) , typeof ( __mavlink_manual_control_t ) , typeof ( __mavlink_rc_channels_override_t ) , null , null , typeof ( __mavlink_global_position_int_t ) , typeof ( __mavlink_vfr_hud_t ) , typeof ( __mavlink_command_t ) , typeof ( __mavlink_command_ack_t ) , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , typeof ( __mavlink_optical_flow_t ) , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , typeof ( __mavlink_object_detection_event_t ) , null , null , null , null , null , null , null , null , null , typeof ( __mavlink_sensor_offsets_t ) , typeof ( __mavlink_set_mag_offsets_t ) , typeof ( __mavlink_meminfo_t ) , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , typeof ( __mavlink_debug_vect_t ) , typeof ( __mavlink_named_value_float_t ) , typeof ( __mavlink_named_value_int_t ) , typeof ( __mavlink_statustext_t ) , typeof ( __mavlink_debug_t ) , null , } ;
2011-09-08 22:31:32 -03:00
}
}