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 May 11, 2023
1 parent f9b8630 commit 13d1f0e
Show file tree
Hide file tree
Showing 44 changed files with 171 additions and 33 deletions.
2 changes: 1 addition & 1 deletion pkg/dialects/all/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const (
MAV_CMD_JUMP_TAG MAV_CMD = 600
// Jump to the matching tag in the mission list. Repeat this action for the specified number of times. A mission should contain a single matching tag for each jump. If this is not the case then a jump to a missing tag should complete the mission, and a jump where there are multiple matching tags should always select the one with the lowest mission sequence number.
MAV_CMD_DO_JUMP_TAG MAV_CMD = 601
// High level setpoint to be sent to a gimbal manager to set a gimbal attitude. It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: a gimbal is never to react to this command but only the gimbal manager.
// Set gimbal manager pitch/yaw setpoints (low rate command). It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: only the gimbal manager will react to this command - it will be ignored by a gimbal device. Use GIMBAL_MANAGER_SET_PITCHYAW if you need to stream pitch/yaw setpoints at higher rate.
MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW MAV_CMD = 1000
// Gimbal configuration to set which sysid/compid is in primary and secondary control.
MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE MAV_CMD = 1001
Expand Down
20 changes: 20 additions & 0 deletions pkg/dialects/all/enum_mav_mode_property.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package all

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/development"
)

// Mode properties.
type MAV_MODE_PROPERTY = development.MAV_MODE_PROPERTY

const (
// If set, this mode is an advanced mode.
// For example a rate-controlled manual mode might be advanced, whereas a position-controlled manual mode is not.
// A GCS can optionally use this flag to configure the UI for its intended users.
MAV_MODE_PROPERTY_ADVANCED MAV_MODE_PROPERTY = development.MAV_MODE_PROPERTY_ADVANCED
// If set, this mode should not be added to the list of selectable modes.
// The mode might still be selected by the FC directly (for example as part of a failsafe).
MAV_MODE_PROPERTY_NOT_USER_SELECTABLE MAV_MODE_PROPERTY = development.MAV_MODE_PROPERTY_NOT_USER_SELECTABLE
)
4 changes: 4 additions & 0 deletions pkg/dialects/all/enum_mav_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ const (
MAV_RESULT_IN_PROGRESS MAV_RESULT = common.MAV_RESULT_IN_PROGRESS
// Command has been cancelled (as a result of receiving a COMMAND_CANCEL message).
MAV_RESULT_CANCELLED MAV_RESULT = common.MAV_RESULT_CANCELLED
// Command is valid, but it is only accepted when sent as a COMMAND_LONG (as it has float values for params 5 and 6).
MAV_RESULT_COMMAND_LONG_ONLY MAV_RESULT = common.MAV_RESULT_COMMAND_LONG_ONLY
// Command is valid, but it is only accepted when sent as a COMMAND_INT (as it encodes a location in params 5, 6 and 7, and hence requires a reference MAV_FRAME).
MAV_RESULT_COMMAND_INT_ONLY MAV_RESULT = common.MAV_RESULT_COMMAND_INT_ONLY
)
2 changes: 1 addition & 1 deletion pkg/dialects/all/message_gimbal_manager_set_pitchyaw.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/common"
)

// High level message to control a gimbal's pitch and yaw angles. This message is to be sent to the gimbal manager (e.g. from a ground station). Angles and rates can be set to NaN according to use case.
// Set gimbal manager pitch and yaw angles (high rate message). This message is to be sent to the gimbal manager (e.g. from a ground station) and will be ignored by gimbal devices. Angles and rates can be set to NaN according to use case. Use MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments that require confirmation.
type MessageGimbalManagerSetPitchyaw = common.MessageGimbalManagerSetPitchyaw
2 changes: 1 addition & 1 deletion pkg/dialects/ardupilotmega/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const (
MAV_CMD_JUMP_TAG MAV_CMD = 600
// Jump to the matching tag in the mission list. Repeat this action for the specified number of times. A mission should contain a single matching tag for each jump. If this is not the case then a jump to a missing tag should complete the mission, and a jump where there are multiple matching tags should always select the one with the lowest mission sequence number.
MAV_CMD_DO_JUMP_TAG MAV_CMD = 601
// High level setpoint to be sent to a gimbal manager to set a gimbal attitude. It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: a gimbal is never to react to this command but only the gimbal manager.
// Set gimbal manager pitch/yaw setpoints (low rate command). It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: only the gimbal manager will react to this command - it will be ignored by a gimbal device. Use GIMBAL_MANAGER_SET_PITCHYAW if you need to stream pitch/yaw setpoints at higher rate.
MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW MAV_CMD = 1000
// Gimbal configuration to set which sysid/compid is in primary and secondary control.
MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE MAV_CMD = 1001
Expand Down
4 changes: 4 additions & 0 deletions pkg/dialects/ardupilotmega/enum_mav_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ const (
MAV_RESULT_IN_PROGRESS MAV_RESULT = common.MAV_RESULT_IN_PROGRESS
// Command has been cancelled (as a result of receiving a COMMAND_CANCEL message).
MAV_RESULT_CANCELLED MAV_RESULT = common.MAV_RESULT_CANCELLED
// Command is valid, but it is only accepted when sent as a COMMAND_LONG (as it has float values for params 5 and 6).
MAV_RESULT_COMMAND_LONG_ONLY MAV_RESULT = common.MAV_RESULT_COMMAND_LONG_ONLY
// Command is valid, but it is only accepted when sent as a COMMAND_INT (as it encodes a location in params 5, 6 and 7, and hence requires a reference MAV_FRAME).
MAV_RESULT_COMMAND_INT_ONLY MAV_RESULT = common.MAV_RESULT_COMMAND_INT_ONLY
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/common"
)

// High level message to control a gimbal's pitch and yaw angles. This message is to be sent to the gimbal manager (e.g. from a ground station). Angles and rates can be set to NaN according to use case.
// Set gimbal manager pitch and yaw angles (high rate message). This message is to be sent to the gimbal manager (e.g. from a ground station) and will be ignored by gimbal devices. Angles and rates can be set to NaN according to use case. Use MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments that require confirmation.
type MessageGimbalManagerSetPitchyaw = common.MessageGimbalManagerSetPitchyaw
2 changes: 1 addition & 1 deletion pkg/dialects/asluav/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const (
MAV_CMD_JUMP_TAG MAV_CMD = 600
// Jump to the matching tag in the mission list. Repeat this action for the specified number of times. A mission should contain a single matching tag for each jump. If this is not the case then a jump to a missing tag should complete the mission, and a jump where there are multiple matching tags should always select the one with the lowest mission sequence number.
MAV_CMD_DO_JUMP_TAG MAV_CMD = 601
// High level setpoint to be sent to a gimbal manager to set a gimbal attitude. It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: a gimbal is never to react to this command but only the gimbal manager.
// Set gimbal manager pitch/yaw setpoints (low rate command). It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: only the gimbal manager will react to this command - it will be ignored by a gimbal device. Use GIMBAL_MANAGER_SET_PITCHYAW if you need to stream pitch/yaw setpoints at higher rate.
MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW MAV_CMD = 1000
// Gimbal configuration to set which sysid/compid is in primary and secondary control.
MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE MAV_CMD = 1001
Expand Down
4 changes: 4 additions & 0 deletions pkg/dialects/asluav/enum_mav_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ const (
MAV_RESULT_IN_PROGRESS MAV_RESULT = common.MAV_RESULT_IN_PROGRESS
// Command has been cancelled (as a result of receiving a COMMAND_CANCEL message).
MAV_RESULT_CANCELLED MAV_RESULT = common.MAV_RESULT_CANCELLED
// Command is valid, but it is only accepted when sent as a COMMAND_LONG (as it has float values for params 5 and 6).
MAV_RESULT_COMMAND_LONG_ONLY MAV_RESULT = common.MAV_RESULT_COMMAND_LONG_ONLY
// Command is valid, but it is only accepted when sent as a COMMAND_INT (as it encodes a location in params 5, 6 and 7, and hence requires a reference MAV_FRAME).
MAV_RESULT_COMMAND_INT_ONLY MAV_RESULT = common.MAV_RESULT_COMMAND_INT_ONLY
)
2 changes: 1 addition & 1 deletion pkg/dialects/asluav/message_gimbal_manager_set_pitchyaw.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/common"
)

// High level message to control a gimbal's pitch and yaw angles. This message is to be sent to the gimbal manager (e.g. from a ground station). Angles and rates can be set to NaN according to use case.
// Set gimbal manager pitch and yaw angles (high rate message). This message is to be sent to the gimbal manager (e.g. from a ground station) and will be ignored by gimbal devices. Angles and rates can be set to NaN according to use case. Use MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments that require confirmation.
type MessageGimbalManagerSetPitchyaw = common.MessageGimbalManagerSetPitchyaw
2 changes: 1 addition & 1 deletion pkg/dialects/avssuas/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const (
MAV_CMD_JUMP_TAG MAV_CMD = 600
// Jump to the matching tag in the mission list. Repeat this action for the specified number of times. A mission should contain a single matching tag for each jump. If this is not the case then a jump to a missing tag should complete the mission, and a jump where there are multiple matching tags should always select the one with the lowest mission sequence number.
MAV_CMD_DO_JUMP_TAG MAV_CMD = 601
// High level setpoint to be sent to a gimbal manager to set a gimbal attitude. It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: a gimbal is never to react to this command but only the gimbal manager.
// Set gimbal manager pitch/yaw setpoints (low rate command). It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: only the gimbal manager will react to this command - it will be ignored by a gimbal device. Use GIMBAL_MANAGER_SET_PITCHYAW if you need to stream pitch/yaw setpoints at higher rate.
MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW MAV_CMD = 1000
// Gimbal configuration to set which sysid/compid is in primary and secondary control.
MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE MAV_CMD = 1001
Expand Down
4 changes: 4 additions & 0 deletions pkg/dialects/avssuas/enum_mav_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ const (
MAV_RESULT_IN_PROGRESS MAV_RESULT = common.MAV_RESULT_IN_PROGRESS
// Command has been cancelled (as a result of receiving a COMMAND_CANCEL message).
MAV_RESULT_CANCELLED MAV_RESULT = common.MAV_RESULT_CANCELLED
// Command is valid, but it is only accepted when sent as a COMMAND_LONG (as it has float values for params 5 and 6).
MAV_RESULT_COMMAND_LONG_ONLY MAV_RESULT = common.MAV_RESULT_COMMAND_LONG_ONLY
// Command is valid, but it is only accepted when sent as a COMMAND_INT (as it encodes a location in params 5, 6 and 7, and hence requires a reference MAV_FRAME).
MAV_RESULT_COMMAND_INT_ONLY MAV_RESULT = common.MAV_RESULT_COMMAND_INT_ONLY
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/common"
)

// High level message to control a gimbal's pitch and yaw angles. This message is to be sent to the gimbal manager (e.g. from a ground station). Angles and rates can be set to NaN according to use case.
// Set gimbal manager pitch and yaw angles (high rate message). This message is to be sent to the gimbal manager (e.g. from a ground station) and will be ignored by gimbal devices. Angles and rates can be set to NaN according to use case. Use MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments that require confirmation.
type MessageGimbalManagerSetPitchyaw = common.MessageGimbalManagerSetPitchyaw
2 changes: 1 addition & 1 deletion pkg/dialects/common/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const (
MAV_CMD_JUMP_TAG MAV_CMD = 600
// Jump to the matching tag in the mission list. Repeat this action for the specified number of times. A mission should contain a single matching tag for each jump. If this is not the case then a jump to a missing tag should complete the mission, and a jump where there are multiple matching tags should always select the one with the lowest mission sequence number.
MAV_CMD_DO_JUMP_TAG MAV_CMD = 601
// High level setpoint to be sent to a gimbal manager to set a gimbal attitude. It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: a gimbal is never to react to this command but only the gimbal manager.
// Set gimbal manager pitch/yaw setpoints (low rate command). It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: only the gimbal manager will react to this command - it will be ignored by a gimbal device. Use GIMBAL_MANAGER_SET_PITCHYAW if you need to stream pitch/yaw setpoints at higher rate.
MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW MAV_CMD = 1000
// Gimbal configuration to set which sysid/compid is in primary and secondary control.
MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE MAV_CMD = 1001
Expand Down
6 changes: 6 additions & 0 deletions pkg/dialects/common/enum_mav_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ const (
MAV_RESULT_IN_PROGRESS MAV_RESULT = 5
// Command has been cancelled (as a result of receiving a COMMAND_CANCEL message).
MAV_RESULT_CANCELLED MAV_RESULT = 6
// Command is valid, but it is only accepted when sent as a COMMAND_LONG (as it has float values for params 5 and 6).
MAV_RESULT_COMMAND_LONG_ONLY MAV_RESULT = 7
// Command is valid, but it is only accepted when sent as a COMMAND_INT (as it encodes a location in params 5, 6 and 7, and hence requires a reference MAV_FRAME).
MAV_RESULT_COMMAND_INT_ONLY MAV_RESULT = 8
)

var labels_MAV_RESULT = map[MAV_RESULT]string{
Expand All @@ -35,6 +39,8 @@ var labels_MAV_RESULT = map[MAV_RESULT]string{
MAV_RESULT_FAILED: "MAV_RESULT_FAILED",
MAV_RESULT_IN_PROGRESS: "MAV_RESULT_IN_PROGRESS",
MAV_RESULT_CANCELLED: "MAV_RESULT_CANCELLED",
MAV_RESULT_COMMAND_LONG_ONLY: "MAV_RESULT_COMMAND_LONG_ONLY",
MAV_RESULT_COMMAND_INT_ONLY: "MAV_RESULT_COMMAND_INT_ONLY",
}

// MarshalText implements the encoding.TextMarshaler interface.
Expand Down
4 changes: 2 additions & 2 deletions pkg/dialects/common/message_command_ack.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ type MessageCommandAck struct {
Command MAV_CMD `mavenum:"uint16"`
// Result of command.
Result MAV_RESULT `mavenum:"uint8"`
// Also used as result_param1, it can be set with an enum containing the errors reasons of why the command was denied, or the progress percentage when result is MAV_RESULT_IN_PROGRESS (UINT8_MAX if the progress is unknown).
// The progress percentage when result is MAV_RESULT_IN_PROGRESS. Values: [0-100], or UINT8_MAX if the progress is unknown.
Progress uint8 `mavext:"true"`
// Additional parameter of the result, example: which parameter of MAV_CMD_NAV_WAYPOINT caused it to be denied.
// Additional result information. Can be set with a command-specific enum containing command-specific error reasons for why the command might be denied. If used, the associated enum must be documented in the corresponding MAV_CMD (this enum should have a 0 value to indicate "unused" or "unknown").
ResultParam2 int32 `mavext:"true"`
// System ID of the target recipient. This is the ID of the system that sent the command for which this COMMAND_ACK is an acknowledgement.
TargetSystem uint8 `mavext:"true"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/dialects/common/message_gimbal_manager_set_pitchyaw.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//nolint:revive,misspell,govet,lll
package common

// High level message to control a gimbal's pitch and yaw angles. This message is to be sent to the gimbal manager (e.g. from a ground station). Angles and rates can be set to NaN according to use case.
// Set gimbal manager pitch and yaw angles (high rate message). This message is to be sent to the gimbal manager (e.g. from a ground station) and will be ignored by gimbal devices. Angles and rates can be set to NaN according to use case. Use MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments that require confirmation.
type MessageGimbalManagerSetPitchyaw struct {
// System ID
TargetSystem uint8
Expand Down
2 changes: 1 addition & 1 deletion pkg/dialects/cubepilot/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const (
MAV_CMD_JUMP_TAG MAV_CMD = common.MAV_CMD_JUMP_TAG
// Jump to the matching tag in the mission list. Repeat this action for the specified number of times. A mission should contain a single matching tag for each jump. If this is not the case then a jump to a missing tag should complete the mission, and a jump where there are multiple matching tags should always select the one with the lowest mission sequence number.
MAV_CMD_DO_JUMP_TAG MAV_CMD = common.MAV_CMD_DO_JUMP_TAG
// High level setpoint to be sent to a gimbal manager to set a gimbal attitude. It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: a gimbal is never to react to this command but only the gimbal manager.
// Set gimbal manager pitch/yaw setpoints (low rate command). It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: only the gimbal manager will react to this command - it will be ignored by a gimbal device. Use GIMBAL_MANAGER_SET_PITCHYAW if you need to stream pitch/yaw setpoints at higher rate.
MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW MAV_CMD = common.MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW
// Gimbal configuration to set which sysid/compid is in primary and secondary control.
MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE MAV_CMD = common.MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE
Expand Down
4 changes: 4 additions & 0 deletions pkg/dialects/cubepilot/enum_mav_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ const (
MAV_RESULT_IN_PROGRESS MAV_RESULT = common.MAV_RESULT_IN_PROGRESS
// Command has been cancelled (as a result of receiving a COMMAND_CANCEL message).
MAV_RESULT_CANCELLED MAV_RESULT = common.MAV_RESULT_CANCELLED
// Command is valid, but it is only accepted when sent as a COMMAND_LONG (as it has float values for params 5 and 6).
MAV_RESULT_COMMAND_LONG_ONLY MAV_RESULT = common.MAV_RESULT_COMMAND_LONG_ONLY
// Command is valid, but it is only accepted when sent as a COMMAND_INT (as it encodes a location in params 5, 6 and 7, and hence requires a reference MAV_FRAME).
MAV_RESULT_COMMAND_INT_ONLY MAV_RESULT = common.MAV_RESULT_COMMAND_INT_ONLY
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/common"
)

// High level message to control a gimbal's pitch and yaw angles. This message is to be sent to the gimbal manager (e.g. from a ground station). Angles and rates can be set to NaN according to use case.
// Set gimbal manager pitch and yaw angles (high rate message). This message is to be sent to the gimbal manager (e.g. from a ground station) and will be ignored by gimbal devices. Angles and rates can be set to NaN according to use case. Use MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW for low-rate adjustments that require confirmation.
type MessageGimbalManagerSetPitchyaw = common.MessageGimbalManagerSetPitchyaw
Loading

0 comments on commit 13d1f0e

Please sign in to comment.