Skip to content

Commit

Permalink
mavlink: Updated headers
Browse files Browse the repository at this point in the history
From mavlink github
  • Loading branch information
ljalves committed Feb 22, 2016
1 parent 5e9e90e commit b8fb3de
Show file tree
Hide file tree
Showing 195 changed files with 9,125 additions and 5,426 deletions.
408 changes: 348 additions & 60 deletions firmware/alce-osd.X/include/mavlink/v1.0/ardupilotmega/ardupilotmega.h

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

typedef struct __mavlink_ahrs_t
{
float omegaIx; ///< X gyro drift estimate rad/s
float omegaIy; ///< Y gyro drift estimate rad/s
float omegaIz; ///< Z gyro drift estimate rad/s
float accel_weight; ///< average accel_weight
float renorm_val; ///< average renormalisation value
float error_rp; ///< average error_roll_pitch value
float error_yaw; ///< average error_yaw value
float omegaIx; /*< X gyro drift estimate rad/s*/
float omegaIy; /*< Y gyro drift estimate rad/s*/
float omegaIz; /*< Z gyro drift estimate rad/s*/
float accel_weight; /*< average accel_weight*/
float renorm_val; /*< average renormalisation value*/
float error_rp; /*< average error_roll_pitch value*/
float error_yaw; /*< average error_yaw value*/
} mavlink_ahrs_t;

#define MAVLINK_MSG_ID_AHRS_LEN 28
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

typedef struct __mavlink_ahrs2_t
{
float roll; ///< Roll angle (rad)
float pitch; ///< Pitch angle (rad)
float yaw; ///< Yaw angle (rad)
float altitude; ///< Altitude (MSL)
int32_t lat; ///< Latitude in degrees * 1E7
int32_t lng; ///< Longitude in degrees * 1E7
float roll; /*< Roll angle (rad)*/
float pitch; /*< Pitch angle (rad)*/
float yaw; /*< Yaw angle (rad)*/
float altitude; /*< Altitude (MSL)*/
int32_t lat; /*< Latitude in degrees * 1E7*/
int32_t lng; /*< Longitude in degrees * 1E7*/
} mavlink_ahrs2_t;

#define MAVLINK_MSG_ID_AHRS2_LEN 24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

typedef struct __mavlink_ahrs3_t
{
float roll; ///< Roll angle (rad)
float pitch; ///< Pitch angle (rad)
float yaw; ///< Yaw angle (rad)
float altitude; ///< Altitude (MSL)
int32_t lat; ///< Latitude in degrees * 1E7
int32_t lng; ///< Longitude in degrees * 1E7
float v1; ///< test variable1
float v2; ///< test variable2
float v3; ///< test variable3
float v4; ///< test variable4
float roll; /*< Roll angle (rad)*/
float pitch; /*< Pitch angle (rad)*/
float yaw; /*< Yaw angle (rad)*/
float altitude; /*< Altitude (MSL)*/
int32_t lat; /*< Latitude in degrees * 1E7*/
int32_t lng; /*< Longitude in degrees * 1E7*/
float v1; /*< test variable1*/
float v2; /*< test variable2*/
float v3; /*< test variable3*/
float v4; /*< test variable4*/
} mavlink_ahrs3_t;

#define MAVLINK_MSG_ID_AHRS3_LEN 40
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

typedef struct __mavlink_airspeed_autocal_t
{
float vx; ///< GPS velocity north m/s
float vy; ///< GPS velocity east m/s
float vz; ///< GPS velocity down m/s
float diff_pressure; ///< Differential pressure pascals
float EAS2TAS; ///< Estimated to true airspeed ratio
float ratio; ///< Airspeed ratio
float state_x; ///< EKF state x
float state_y; ///< EKF state y
float state_z; ///< EKF state z
float Pax; ///< EKF Pax
float Pby; ///< EKF Pby
float Pcz; ///< EKF Pcz
float vx; /*< GPS velocity north m/s*/
float vy; /*< GPS velocity east m/s*/
float vz; /*< GPS velocity down m/s*/
float diff_pressure; /*< Differential pressure pascals*/
float EAS2TAS; /*< Estimated to true airspeed ratio*/
float ratio; /*< Airspeed ratio*/
float state_x; /*< EKF state x*/
float state_y; /*< EKF state y*/
float state_z; /*< EKF state z*/
float Pax; /*< EKF Pax*/
float Pby; /*< EKF Pby*/
float Pcz; /*< EKF Pcz*/
} mavlink_airspeed_autocal_t;

#define MAVLINK_MSG_ID_AIRSPEED_AUTOCAL_LEN 48
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

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
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

typedef struct __mavlink_autopilot_version_request_t
{
uint8_t target_system; ///< System ID
uint8_t target_component; ///< Component ID
uint8_t target_system; /*< System ID*/
uint8_t target_component; /*< Component ID*/
} mavlink_autopilot_version_request_t;

#define MAVLINK_MSG_ID_AUTOPILOT_VERSION_REQUEST_LEN 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

typedef struct __mavlink_battery2_t
{
uint16_t voltage; ///< voltage in millivolts
int16_t current_battery; ///< Battery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current
uint16_t voltage; /*< voltage in millivolts*/
int16_t current_battery; /*< Battery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current*/
} mavlink_battery2_t;

#define MAVLINK_MSG_ID_BATTERY2_LEN 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

typedef struct __mavlink_camera_feedback_t
{
uint64_t time_usec; ///< Image timestamp (microseconds since UNIX epoch), as passed in by CAMERA_STATUS message (or autopilot if no CCB)
int32_t lat; ///< Latitude in (deg * 1E7)
int32_t lng; ///< Longitude in (deg * 1E7)
float alt_msl; ///< Altitude Absolute (meters AMSL)
float alt_rel; ///< Altitude Relative (meters above HOME location)
float roll; ///< Camera Roll angle (earth frame, degrees, +-180)
float pitch; ///< Camera Pitch angle (earth frame, degrees, +-180)
float yaw; ///< Camera Yaw (earth frame, degrees, 0-360, true)
float foc_len; ///< Focal Length (mm)
uint16_t img_idx; ///< Image index
uint8_t target_system; ///< System ID
uint8_t cam_idx; ///< Camera ID
uint8_t flags; ///< See CAMERA_FEEDBACK_FLAGS enum for definition of the bitmask
uint64_t time_usec; /*< Image timestamp (microseconds since UNIX epoch), as passed in by CAMERA_STATUS message (or autopilot if no CCB)*/
int32_t lat; /*< Latitude in (deg * 1E7)*/
int32_t lng; /*< Longitude in (deg * 1E7)*/
float alt_msl; /*< Altitude Absolute (meters AMSL)*/
float alt_rel; /*< Altitude Relative (meters above HOME location)*/
float roll; /*< Camera Roll angle (earth frame, degrees, +-180)*/
float pitch; /*< Camera Pitch angle (earth frame, degrees, +-180)*/
float yaw; /*< Camera Yaw (earth frame, degrees, 0-360, true)*/
float foc_len; /*< Focal Length (mm)*/
uint16_t img_idx; /*< Image index*/
uint8_t target_system; /*< System ID*/
uint8_t cam_idx; /*< Camera ID*/
uint8_t flags; /*< See CAMERA_FEEDBACK_FLAGS enum for definition of the bitmask*/
} mavlink_camera_feedback_t;

#define MAVLINK_MSG_ID_CAMERA_FEEDBACK_LEN 45
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

typedef struct __mavlink_camera_status_t
{
uint64_t time_usec; ///< Image timestamp (microseconds since UNIX epoch, according to camera clock)
float p1; ///< Parameter 1 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
float p2; ///< Parameter 2 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
float p3; ///< Parameter 3 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
float p4; ///< Parameter 4 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
uint16_t img_idx; ///< Image index
uint8_t target_system; ///< System ID
uint8_t cam_idx; ///< Camera ID
uint8_t event_id; ///< See CAMERA_STATUS_TYPES enum for definition of the bitmask
uint64_t time_usec; /*< Image timestamp (microseconds since UNIX epoch, according to camera clock)*/
float p1; /*< Parameter 1 (meaning depends on event, see CAMERA_STATUS_TYPES enum)*/
float p2; /*< Parameter 2 (meaning depends on event, see CAMERA_STATUS_TYPES enum)*/
float p3; /*< Parameter 3 (meaning depends on event, see CAMERA_STATUS_TYPES enum)*/
float p4; /*< Parameter 4 (meaning depends on event, see CAMERA_STATUS_TYPES enum)*/
uint16_t img_idx; /*< Image index*/
uint8_t target_system; /*< System ID*/
uint8_t cam_idx; /*< Camera ID*/
uint8_t event_id; /*< See CAMERA_STATUS_TYPES enum for definition of the bitmask*/
} mavlink_camera_status_t;

#define MAVLINK_MSG_ID_CAMERA_STATUS_LEN 29
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

typedef struct __mavlink_compassmot_status_t
{
float current; ///< current (amps)
float CompensationX; ///< Motor Compensation X
float CompensationY; ///< Motor Compensation Y
float CompensationZ; ///< Motor Compensation Z
uint16_t throttle; ///< throttle (percent*10)
uint16_t interference; ///< interference (percent)
float current; /*< current (amps)*/
float CompensationX; /*< Motor Compensation X*/
float CompensationY; /*< Motor Compensation Y*/
float CompensationZ; /*< Motor Compensation Z*/
uint16_t throttle; /*< throttle (percent*10)*/
uint16_t interference; /*< interference (percent)*/
} mavlink_compassmot_status_t;

#define MAVLINK_MSG_ID_COMPASSMOT_STATUS_LEN 20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

typedef struct __mavlink_data16_t
{
uint8_t type; ///< data type
uint8_t len; ///< data length
uint8_t data[16]; ///< raw data
uint8_t type; /*< data type*/
uint8_t len; /*< data length*/
uint8_t data[16]; /*< raw data*/
} mavlink_data16_t;

#define MAVLINK_MSG_ID_DATA16_LEN 18
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

typedef struct __mavlink_data32_t
{
uint8_t type; ///< data type
uint8_t len; ///< data length
uint8_t data[32]; ///< raw data
uint8_t type; /*< data type*/
uint8_t len; /*< data length*/
uint8_t data[32]; /*< raw data*/
} mavlink_data32_t;

#define MAVLINK_MSG_ID_DATA32_LEN 34
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

typedef struct __mavlink_data64_t
{
uint8_t type; ///< data type
uint8_t len; ///< data length
uint8_t data[64]; ///< raw data
uint8_t type; /*< data type*/
uint8_t len; /*< data length*/
uint8_t data[64]; /*< raw data*/
} mavlink_data64_t;

#define MAVLINK_MSG_ID_DATA64_LEN 66
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

typedef struct __mavlink_data96_t
{
uint8_t type; ///< data type
uint8_t len; ///< data length
uint8_t data[96]; ///< raw data
uint8_t type; /*< data type*/
uint8_t len; /*< data length*/
uint8_t data[96]; /*< raw data*/
} mavlink_data96_t;

#define MAVLINK_MSG_ID_DATA96_LEN 98
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

typedef struct __mavlink_digicam_configure_t
{
float extra_value; ///< Correspondent value to given extra_param
uint16_t shutter_speed; ///< Divisor number //e.g. 1000 means 1/1000 (0 means ignore)
uint8_t target_system; ///< System ID
uint8_t target_component; ///< Component ID
uint8_t mode; ///< Mode enumeration from 1 to N //P, TV, AV, M, Etc (0 means ignore)
uint8_t aperture; ///< F stop number x 10 //e.g. 28 means 2.8 (0 means ignore)
uint8_t iso; ///< ISO enumeration from 1 to N //e.g. 80, 100, 200, Etc (0 means ignore)
uint8_t exposure_type; ///< Exposure type enumeration from 1 to N (0 means ignore)
uint8_t command_id; ///< Command Identity (incremental loop: 0 to 255)//A command sent multiple times will be executed or pooled just once
uint8_t engine_cut_off; ///< Main engine cut-off time before camera trigger in seconds/10 (0 means no cut-off)
uint8_t extra_param; ///< Extra parameters enumeration (0 means ignore)
float extra_value; /*< Correspondent value to given extra_param*/
uint16_t shutter_speed; /*< Divisor number //e.g. 1000 means 1/1000 (0 means ignore)*/
uint8_t target_system; /*< System ID*/
uint8_t target_component; /*< Component ID*/
uint8_t mode; /*< Mode enumeration from 1 to N //P, TV, AV, M, Etc (0 means ignore)*/
uint8_t aperture; /*< F stop number x 10 //e.g. 28 means 2.8 (0 means ignore)*/
uint8_t iso; /*< ISO enumeration from 1 to N //e.g. 80, 100, 200, Etc (0 means ignore)*/
uint8_t exposure_type; /*< Exposure type enumeration from 1 to N (0 means ignore)*/
uint8_t command_id; /*< Command Identity (incremental loop: 0 to 255)//A command sent multiple times will be executed or pooled just once*/
uint8_t engine_cut_off; /*< Main engine cut-off time before camera trigger in seconds/10 (0 means no cut-off)*/
uint8_t extra_param; /*< Extra parameters enumeration (0 means ignore)*/
} mavlink_digicam_configure_t;

#define MAVLINK_MSG_ID_DIGICAM_CONFIGURE_LEN 15
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

typedef struct __mavlink_digicam_control_t
{
float extra_value; ///< Correspondent value to given extra_param
uint8_t target_system; ///< System ID
uint8_t target_component; ///< Component ID
uint8_t session; ///< 0: stop, 1: start or keep it up //Session control e.g. show/hide lens
uint8_t zoom_pos; ///< 1 to N //Zoom's absolute position (0 means ignore)
int8_t zoom_step; ///< -100 to 100 //Zooming step value to offset zoom from the current position
uint8_t focus_lock; ///< 0: unlock focus or keep unlocked, 1: lock focus or keep locked, 3: re-lock focus
uint8_t shot; ///< 0: ignore, 1: shot or start filming
uint8_t command_id; ///< Command Identity (incremental loop: 0 to 255)//A command sent multiple times will be executed or pooled just once
uint8_t extra_param; ///< Extra parameters enumeration (0 means ignore)
float extra_value; /*< Correspondent value to given extra_param*/
uint8_t target_system; /*< System ID*/
uint8_t target_component; /*< Component ID*/
uint8_t session; /*< 0: stop, 1: start or keep it up //Session control e.g. show/hide lens*/
uint8_t zoom_pos; /*< 1 to N //Zoom's absolute position (0 means ignore)*/
int8_t zoom_step; /*< -100 to 100 //Zooming step value to offset zoom from the current position*/
uint8_t focus_lock; /*< 0: unlock focus or keep unlocked, 1: lock focus or keep locked, 3: re-lock focus*/
uint8_t shot; /*< 0: ignore, 1: shot or start filming*/
uint8_t command_id; /*< Command Identity (incremental loop: 0 to 255)//A command sent multiple times will be executed or pooled just once*/
uint8_t extra_param; /*< Extra parameters enumeration (0 means ignore)*/
} mavlink_digicam_control_t;

#define MAVLINK_MSG_ID_DIGICAM_CONTROL_LEN 13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

typedef struct __mavlink_ekf_status_report_t
{
float velocity_variance; ///< Velocity variance
float pos_horiz_variance; ///< Horizontal Position variance
float pos_vert_variance; ///< Vertical Position variance
float compass_variance; ///< Compass variance
float terrain_alt_variance; ///< Terrain Altitude variance
uint16_t flags; ///< Flags
float velocity_variance; /*< Velocity variance*/
float pos_horiz_variance; /*< Horizontal Position variance*/
float pos_vert_variance; /*< Vertical Position variance*/
float compass_variance; /*< Compass variance*/
float terrain_alt_variance; /*< Terrain Altitude variance*/
uint16_t flags; /*< Flags*/
} mavlink_ekf_status_report_t;

#define MAVLINK_MSG_ID_EKF_STATUS_REPORT_LEN 22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

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)
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

typedef struct __mavlink_fence_point_t
{
float lat; ///< Latitude of point
float lng; ///< Longitude of point
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*/
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)*/
} mavlink_fence_point_t;

#define MAVLINK_MSG_ID_FENCE_POINT_LEN 12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

typedef struct __mavlink_fence_status_t
{
uint32_t breach_time; ///< time of last breach in milliseconds since boot
uint16_t breach_count; ///< number of fence breaches
uint8_t breach_status; ///< 0 if currently inside fence, 1 if outside
uint8_t breach_type; ///< last breach type (see FENCE_BREACH_* enum)
uint32_t breach_time; /*< time of last breach in milliseconds since boot*/
uint16_t breach_count; /*< number of fence breaches*/
uint8_t breach_status; /*< 0 if currently inside fence, 1 if outside*/
uint8_t breach_type; /*< last breach type (see FENCE_BREACH_* enum)*/
} mavlink_fence_status_t;

#define MAVLINK_MSG_ID_FENCE_STATUS_LEN 8
Expand Down
Loading

0 comments on commit b8fb3de

Please sign in to comment.