Skip to content

Commit

Permalink
(automatic) update dialects to rev https://github.com/mavlink/mavlink…
Browse files Browse the repository at this point in the history
  • Loading branch information
gomavlib-bot committed Mar 22, 2024
1 parent fb05a3c commit 9fffb73
Show file tree
Hide file tree
Showing 15 changed files with 58 additions and 84 deletions.
10 changes: 4 additions & 6 deletions pkg/dialects/all/enum_mav_frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,29 @@ import (
type MAV_FRAME = common.MAV_FRAME

const (
// Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL).
// Global (WGS84) coordinate frame + altitude relative to mean sea level (MSL).
MAV_FRAME_GLOBAL MAV_FRAME = common.MAV_FRAME_GLOBAL
// NED local tangent frame (x: North, y: East, z: Down) with origin fixed relative to earth.
MAV_FRAME_LOCAL_NED MAV_FRAME = common.MAV_FRAME_LOCAL_NED
// NOT a coordinate frame, indicates a mission command.
MAV_FRAME_MISSION MAV_FRAME = common.MAV_FRAME_MISSION
// Global (WGS84) coordinate frame + altitude relative to the home position.
// First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home position.
MAV_FRAME_GLOBAL_RELATIVE_ALT MAV_FRAME = common.MAV_FRAME_GLOBAL_RELATIVE_ALT
// ENU local tangent frame (x: East, y: North, z: Up) with origin fixed relative to earth.
MAV_FRAME_LOCAL_ENU MAV_FRAME = common.MAV_FRAME_LOCAL_ENU
// Global (WGS84) coordinate frame (scaled) + MSL altitude. First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude over mean sea level (MSL).
// Global (WGS84) coordinate frame (scaled) + altitude relative to mean sea level (MSL).
MAV_FRAME_GLOBAL_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_INT
// Global (WGS84) coordinate frame (scaled) + altitude relative to the home position.
// First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude with 0 being at the altitude of the home position.
MAV_FRAME_GLOBAL_RELATIVE_ALT_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_RELATIVE_ALT_INT
// NED local tangent frame (x: North, y: East, z: Down) with origin that travels with the vehicle.
MAV_FRAME_LOCAL_OFFSET_NED MAV_FRAME = common.MAV_FRAME_LOCAL_OFFSET_NED
// Same as MAV_FRAME_LOCAL_NED when used to represent position values. Same as MAV_FRAME_BODY_FRD when used with velocity/acceleration values.
MAV_FRAME_BODY_NED MAV_FRAME = common.MAV_FRAME_BODY_NED
// This is the same as MAV_FRAME_BODY_FRD.
MAV_FRAME_BODY_OFFSET_NED MAV_FRAME = common.MAV_FRAME_BODY_OFFSET_NED
// Global (WGS84) coordinate frame with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees, second value / y: longitude in degrees, third value / z: positive altitude in meters with 0 being at ground level in terrain model.
// Global (WGS84) coordinate frame with AGL altitude (altitude at ground level).
MAV_FRAME_GLOBAL_TERRAIN_ALT MAV_FRAME = common.MAV_FRAME_GLOBAL_TERRAIN_ALT
// Global (WGS84) coordinate frame (scaled) with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude in meters with 0 being at ground level in terrain model.
// Global (WGS84) coordinate frame (scaled) with AGL altitude (altitude at ground level).
MAV_FRAME_GLOBAL_TERRAIN_ALT_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_TERRAIN_ALT_INT
// FRD local frame aligned to the vehicle's attitude (x: Forward, y: Right, z: Down) with an origin that travels with vehicle.
MAV_FRAME_BODY_FRD MAV_FRAME = common.MAV_FRAME_BODY_FRD
Expand Down
10 changes: 4 additions & 6 deletions pkg/dialects/ardupilotmega/enum_mav_frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,29 @@ import (
type MAV_FRAME = common.MAV_FRAME

const (
// Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL).
// Global (WGS84) coordinate frame + altitude relative to mean sea level (MSL).
MAV_FRAME_GLOBAL MAV_FRAME = common.MAV_FRAME_GLOBAL
// NED local tangent frame (x: North, y: East, z: Down) with origin fixed relative to earth.
MAV_FRAME_LOCAL_NED MAV_FRAME = common.MAV_FRAME_LOCAL_NED
// NOT a coordinate frame, indicates a mission command.
MAV_FRAME_MISSION MAV_FRAME = common.MAV_FRAME_MISSION
// Global (WGS84) coordinate frame + altitude relative to the home position.
// First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home position.
MAV_FRAME_GLOBAL_RELATIVE_ALT MAV_FRAME = common.MAV_FRAME_GLOBAL_RELATIVE_ALT
// ENU local tangent frame (x: East, y: North, z: Up) with origin fixed relative to earth.
MAV_FRAME_LOCAL_ENU MAV_FRAME = common.MAV_FRAME_LOCAL_ENU
// Global (WGS84) coordinate frame (scaled) + MSL altitude. First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude over mean sea level (MSL).
// Global (WGS84) coordinate frame (scaled) + altitude relative to mean sea level (MSL).
MAV_FRAME_GLOBAL_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_INT
// Global (WGS84) coordinate frame (scaled) + altitude relative to the home position.
// First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude with 0 being at the altitude of the home position.
MAV_FRAME_GLOBAL_RELATIVE_ALT_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_RELATIVE_ALT_INT
// NED local tangent frame (x: North, y: East, z: Down) with origin that travels with the vehicle.
MAV_FRAME_LOCAL_OFFSET_NED MAV_FRAME = common.MAV_FRAME_LOCAL_OFFSET_NED
// Same as MAV_FRAME_LOCAL_NED when used to represent position values. Same as MAV_FRAME_BODY_FRD when used with velocity/acceleration values.
MAV_FRAME_BODY_NED MAV_FRAME = common.MAV_FRAME_BODY_NED
// This is the same as MAV_FRAME_BODY_FRD.
MAV_FRAME_BODY_OFFSET_NED MAV_FRAME = common.MAV_FRAME_BODY_OFFSET_NED
// Global (WGS84) coordinate frame with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees, second value / y: longitude in degrees, third value / z: positive altitude in meters with 0 being at ground level in terrain model.
// Global (WGS84) coordinate frame with AGL altitude (altitude at ground level).
MAV_FRAME_GLOBAL_TERRAIN_ALT MAV_FRAME = common.MAV_FRAME_GLOBAL_TERRAIN_ALT
// Global (WGS84) coordinate frame (scaled) with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude in meters with 0 being at ground level in terrain model.
// Global (WGS84) coordinate frame (scaled) with AGL altitude (altitude at ground level).
MAV_FRAME_GLOBAL_TERRAIN_ALT_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_TERRAIN_ALT_INT
// FRD local frame aligned to the vehicle's attitude (x: Forward, y: Right, z: Down) with an origin that travels with vehicle.
MAV_FRAME_BODY_FRD MAV_FRAME = common.MAV_FRAME_BODY_FRD
Expand Down
10 changes: 4 additions & 6 deletions pkg/dialects/asluav/enum_mav_frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,29 @@ import (
type MAV_FRAME = common.MAV_FRAME

const (
// Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL).
// Global (WGS84) coordinate frame + altitude relative to mean sea level (MSL).
MAV_FRAME_GLOBAL MAV_FRAME = common.MAV_FRAME_GLOBAL
// NED local tangent frame (x: North, y: East, z: Down) with origin fixed relative to earth.
MAV_FRAME_LOCAL_NED MAV_FRAME = common.MAV_FRAME_LOCAL_NED
// NOT a coordinate frame, indicates a mission command.
MAV_FRAME_MISSION MAV_FRAME = common.MAV_FRAME_MISSION
// Global (WGS84) coordinate frame + altitude relative to the home position.
// First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home position.
MAV_FRAME_GLOBAL_RELATIVE_ALT MAV_FRAME = common.MAV_FRAME_GLOBAL_RELATIVE_ALT
// ENU local tangent frame (x: East, y: North, z: Up) with origin fixed relative to earth.
MAV_FRAME_LOCAL_ENU MAV_FRAME = common.MAV_FRAME_LOCAL_ENU
// Global (WGS84) coordinate frame (scaled) + MSL altitude. First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude over mean sea level (MSL).
// Global (WGS84) coordinate frame (scaled) + altitude relative to mean sea level (MSL).
MAV_FRAME_GLOBAL_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_INT
// Global (WGS84) coordinate frame (scaled) + altitude relative to the home position.
// First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude with 0 being at the altitude of the home position.
MAV_FRAME_GLOBAL_RELATIVE_ALT_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_RELATIVE_ALT_INT
// NED local tangent frame (x: North, y: East, z: Down) with origin that travels with the vehicle.
MAV_FRAME_LOCAL_OFFSET_NED MAV_FRAME = common.MAV_FRAME_LOCAL_OFFSET_NED
// Same as MAV_FRAME_LOCAL_NED when used to represent position values. Same as MAV_FRAME_BODY_FRD when used with velocity/acceleration values.
MAV_FRAME_BODY_NED MAV_FRAME = common.MAV_FRAME_BODY_NED
// This is the same as MAV_FRAME_BODY_FRD.
MAV_FRAME_BODY_OFFSET_NED MAV_FRAME = common.MAV_FRAME_BODY_OFFSET_NED
// Global (WGS84) coordinate frame with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees, second value / y: longitude in degrees, third value / z: positive altitude in meters with 0 being at ground level in terrain model.
// Global (WGS84) coordinate frame with AGL altitude (altitude at ground level).
MAV_FRAME_GLOBAL_TERRAIN_ALT MAV_FRAME = common.MAV_FRAME_GLOBAL_TERRAIN_ALT
// Global (WGS84) coordinate frame (scaled) with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude in meters with 0 being at ground level in terrain model.
// Global (WGS84) coordinate frame (scaled) with AGL altitude (altitude at ground level).
MAV_FRAME_GLOBAL_TERRAIN_ALT_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_TERRAIN_ALT_INT
// FRD local frame aligned to the vehicle's attitude (x: Forward, y: Right, z: Down) with an origin that travels with vehicle.
MAV_FRAME_BODY_FRD MAV_FRAME = common.MAV_FRAME_BODY_FRD
Expand Down
10 changes: 4 additions & 6 deletions pkg/dialects/avssuas/enum_mav_frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,29 @@ import (
type MAV_FRAME = common.MAV_FRAME

const (
// Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL).
// Global (WGS84) coordinate frame + altitude relative to mean sea level (MSL).
MAV_FRAME_GLOBAL MAV_FRAME = common.MAV_FRAME_GLOBAL
// NED local tangent frame (x: North, y: East, z: Down) with origin fixed relative to earth.
MAV_FRAME_LOCAL_NED MAV_FRAME = common.MAV_FRAME_LOCAL_NED
// NOT a coordinate frame, indicates a mission command.
MAV_FRAME_MISSION MAV_FRAME = common.MAV_FRAME_MISSION
// Global (WGS84) coordinate frame + altitude relative to the home position.
// First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home position.
MAV_FRAME_GLOBAL_RELATIVE_ALT MAV_FRAME = common.MAV_FRAME_GLOBAL_RELATIVE_ALT
// ENU local tangent frame (x: East, y: North, z: Up) with origin fixed relative to earth.
MAV_FRAME_LOCAL_ENU MAV_FRAME = common.MAV_FRAME_LOCAL_ENU
// Global (WGS84) coordinate frame (scaled) + MSL altitude. First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude over mean sea level (MSL).
// Global (WGS84) coordinate frame (scaled) + altitude relative to mean sea level (MSL).
MAV_FRAME_GLOBAL_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_INT
// Global (WGS84) coordinate frame (scaled) + altitude relative to the home position.
// First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude with 0 being at the altitude of the home position.
MAV_FRAME_GLOBAL_RELATIVE_ALT_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_RELATIVE_ALT_INT
// NED local tangent frame (x: North, y: East, z: Down) with origin that travels with the vehicle.
MAV_FRAME_LOCAL_OFFSET_NED MAV_FRAME = common.MAV_FRAME_LOCAL_OFFSET_NED
// Same as MAV_FRAME_LOCAL_NED when used to represent position values. Same as MAV_FRAME_BODY_FRD when used with velocity/acceleration values.
MAV_FRAME_BODY_NED MAV_FRAME = common.MAV_FRAME_BODY_NED
// This is the same as MAV_FRAME_BODY_FRD.
MAV_FRAME_BODY_OFFSET_NED MAV_FRAME = common.MAV_FRAME_BODY_OFFSET_NED
// Global (WGS84) coordinate frame with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees, second value / y: longitude in degrees, third value / z: positive altitude in meters with 0 being at ground level in terrain model.
// Global (WGS84) coordinate frame with AGL altitude (altitude at ground level).
MAV_FRAME_GLOBAL_TERRAIN_ALT MAV_FRAME = common.MAV_FRAME_GLOBAL_TERRAIN_ALT
// Global (WGS84) coordinate frame (scaled) with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude in meters with 0 being at ground level in terrain model.
// Global (WGS84) coordinate frame (scaled) with AGL altitude (altitude at ground level).
MAV_FRAME_GLOBAL_TERRAIN_ALT_INT MAV_FRAME = common.MAV_FRAME_GLOBAL_TERRAIN_ALT_INT
// FRD local frame aligned to the vehicle's attitude (x: Forward, y: Right, z: Down) with an origin that travels with vehicle.
MAV_FRAME_BODY_FRD MAV_FRAME = common.MAV_FRAME_BODY_FRD
Expand Down
10 changes: 4 additions & 6 deletions pkg/dialects/common/enum_mav_frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,29 @@ import (
type MAV_FRAME uint64

const (
// Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL).
// Global (WGS84) coordinate frame + altitude relative to mean sea level (MSL).
MAV_FRAME_GLOBAL MAV_FRAME = 0
// NED local tangent frame (x: North, y: East, z: Down) with origin fixed relative to earth.
MAV_FRAME_LOCAL_NED MAV_FRAME = 1
// NOT a coordinate frame, indicates a mission command.
MAV_FRAME_MISSION MAV_FRAME = 2
// Global (WGS84) coordinate frame + altitude relative to the home position.
// First value / x: latitude, second value / y: longitude, third value / z: positive altitude with 0 being at the altitude of the home position.
MAV_FRAME_GLOBAL_RELATIVE_ALT MAV_FRAME = 3
// ENU local tangent frame (x: East, y: North, z: Up) with origin fixed relative to earth.
MAV_FRAME_LOCAL_ENU MAV_FRAME = 4
// Global (WGS84) coordinate frame (scaled) + MSL altitude. First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude over mean sea level (MSL).
// Global (WGS84) coordinate frame (scaled) + altitude relative to mean sea level (MSL).
MAV_FRAME_GLOBAL_INT MAV_FRAME = 5
// Global (WGS84) coordinate frame (scaled) + altitude relative to the home position.
// First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude with 0 being at the altitude of the home position.
MAV_FRAME_GLOBAL_RELATIVE_ALT_INT MAV_FRAME = 6
// NED local tangent frame (x: North, y: East, z: Down) with origin that travels with the vehicle.
MAV_FRAME_LOCAL_OFFSET_NED MAV_FRAME = 7
// Same as MAV_FRAME_LOCAL_NED when used to represent position values. Same as MAV_FRAME_BODY_FRD when used with velocity/acceleration values.
MAV_FRAME_BODY_NED MAV_FRAME = 8
// This is the same as MAV_FRAME_BODY_FRD.
MAV_FRAME_BODY_OFFSET_NED MAV_FRAME = 9
// Global (WGS84) coordinate frame with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees, second value / y: longitude in degrees, third value / z: positive altitude in meters with 0 being at ground level in terrain model.
// Global (WGS84) coordinate frame with AGL altitude (altitude at ground level).
MAV_FRAME_GLOBAL_TERRAIN_ALT MAV_FRAME = 10
// Global (WGS84) coordinate frame (scaled) with AGL altitude (at the waypoint coordinate). First value / x: latitude in degrees*1E7, second value / y: longitude in degrees*1E7, third value / z: positive altitude in meters with 0 being at ground level in terrain model.
// Global (WGS84) coordinate frame (scaled) with AGL altitude (altitude at ground level).
MAV_FRAME_GLOBAL_TERRAIN_ALT_INT MAV_FRAME = 11
// FRD local frame aligned to the vehicle's attitude (x: Forward, y: Right, z: Down) with an origin that travels with vehicle.
MAV_FRAME_BODY_FRD MAV_FRAME = 12
Expand Down
6 changes: 3 additions & 3 deletions pkg/dialects/common/message_position_target_global_int.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ package common
type MessagePositionTargetGlobalInt struct {
// Timestamp (time since system boot). The rationale for the timestamp in the setpoint is to allow the system to compensate for the transport delay of the setpoint. This allows the system to compensate processing latency.
TimeBootMs uint32
// Valid options are: MAV_FRAME_GLOBAL_INT = 5, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11
// Valid options are: MAV_FRAME_GLOBAL = 0, MAV_FRAME_GLOBAL_RELATIVE_ALT = 3, MAV_FRAME_GLOBAL_TERRAIN_ALT = 10 (MAV_FRAME_GLOBAL_INT, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT are allowed synonyms, but have been deprecated)
CoordinateFrame MAV_FRAME `mavenum:"uint8"`
// Bitmap to indicate which dimensions should be ignored by the vehicle.
TypeMask POSITION_TARGET_TYPEMASK `mavenum:"uint16"`
// X Position in WGS84 frame
// Latitude in WGS84 frame
LatInt int32
// Y Position in WGS84 frame
// Longitude in WGS84 frame
LonInt int32
// Altitude (MSL, AGL or relative to home altitude, depending on frame)
Alt float32
Expand Down
6 changes: 3 additions & 3 deletions pkg/dialects/common/message_set_position_target_global_int.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ type MessageSetPositionTargetGlobalInt struct {
TargetSystem uint8
// Component ID
TargetComponent uint8
// Valid options are: MAV_FRAME_GLOBAL_INT = 5, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11
// Valid options are: MAV_FRAME_GLOBAL = 0, MAV_FRAME_GLOBAL_RELATIVE_ALT = 3, MAV_FRAME_GLOBAL_TERRAIN_ALT = 10 (MAV_FRAME_GLOBAL_INT, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT are allowed synonyms, but have been deprecated)
CoordinateFrame MAV_FRAME `mavenum:"uint8"`
// Bitmap to indicate which dimensions should be ignored by the vehicle.
TypeMask POSITION_TARGET_TYPEMASK `mavenum:"uint16"`
// X Position in WGS84 frame
// Latitude in WGS84 frame
LatInt int32
// Y Position in WGS84 frame
// Longitude in WGS84 frame
LonInt int32
// Altitude (MSL, Relative to home, or AGL - depending on frame)
Alt float32
Expand Down
Loading

0 comments on commit 9fffb73

Please sign in to comment.