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 Jan 30, 2025
1 parent e013eae commit b0087d4
Show file tree
Hide file tree
Showing 93 changed files with 1,781 additions and 204 deletions.
6 changes: 3 additions & 3 deletions pkg/dialects/all/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ var dial = &dialect.Dialect{
&MessageCurrentEventSequence{},
&MessageRequestEvent{},
&MessageResponseEventError{},
&MessageAvailableModes{},
&MessageCurrentMode{},
&MessageAvailableModesMonitor{},
&MessageIlluminatorStatus{},
&MessageCanfdFrame{},
&MessageCanFilterModify{},
Expand Down Expand Up @@ -366,9 +369,6 @@ var dial = &dialect.Dialect{
&MessageGroupStart{},
&MessageGroupEnd{},
&MessageRadioRcChannels{},
&MessageAvailableModes{},
&MessageCurrentMode{},
&MessageAvailableModesMonitor{},
&MessageGnssIntegrity{},
&MessageTargetAbsolute{},
&MessageTargetRelative{},
Expand Down
11 changes: 6 additions & 5 deletions pkg/dialects/all/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ const (
MAV_CMD_OVERRIDE_GOTO MAV_CMD = 252
// Mission command to set a Camera Auto Mount Pivoting Oblique Survey (Replaces CAM_TRIGG_DIST for this purpose). The camera is triggered each time this distance is exceeded, then the mount moves to the next position. Params 4~6 set-up the angle limits and number of positions for oblique survey, where mount-enabled vehicles automatically roll the camera between shots to emulate an oblique camera setup (providing an increased HFOV). This command can also be used to set the shutter integration time for the camera.
MAV_CMD_OBLIQUE_SURVEY MAV_CMD = 260
// Enable the specified standard MAVLink mode.
// If the specified mode is not supported, the vehicle should ACK with MAV_RESULT_FAILED.
// See https://mavlink.io/en/services/standard_modes.html
MAV_CMD_DO_SET_STANDARD_MODE MAV_CMD = 262
// start running a mission
MAV_CMD_MISSION_START MAV_CMD = 300
// Actuator testing command. This is similar to MAV_CMD_DO_MOTOR_TEST but operates on the level of output functions, i.e. it is possible to test Motor1 independent from which output it is configured on. Autopilots typically refuse this command while armed.
Expand Down Expand Up @@ -482,9 +486,6 @@ const (
// The system doing the upgrade will report progress using the normal command protocol sequence for a long running operation.
// Command protocol information: https://mavlink.io/en/services/command.html.
MAV_CMD_DO_UPGRADE MAV_CMD = 247
// Enable the specified standard MAVLink mode.
// If the mode is not supported the vehicle should ACK with MAV_RESULT_FAILED.
MAV_CMD_DO_SET_STANDARD_MODE MAV_CMD = 262
// Allows setting an AT S command of an SiK radio.
MAV_CMD_SET_AT_S_PARAM MAV_CMD = 550
// Set system and component id.
Expand Down Expand Up @@ -626,6 +627,7 @@ var labels_MAV_CMD = map[MAV_CMD]string{
MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN: "MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN",
MAV_CMD_OVERRIDE_GOTO: "MAV_CMD_OVERRIDE_GOTO",
MAV_CMD_OBLIQUE_SURVEY: "MAV_CMD_OBLIQUE_SURVEY",
MAV_CMD_DO_SET_STANDARD_MODE: "MAV_CMD_DO_SET_STANDARD_MODE",
MAV_CMD_MISSION_START: "MAV_CMD_MISSION_START",
MAV_CMD_ACTUATOR_TEST: "MAV_CMD_ACTUATOR_TEST",
MAV_CMD_CONFIGURE_ACTUATOR: "MAV_CMD_CONFIGURE_ACTUATOR",
Expand Down Expand Up @@ -747,7 +749,6 @@ var labels_MAV_CMD = map[MAV_CMD]string{
MAV_CMD_PAYLOAD_CONTROL: "MAV_CMD_PAYLOAD_CONTROL",
MAV_CMD_DO_FIGURE_EIGHT: "MAV_CMD_DO_FIGURE_EIGHT",
MAV_CMD_DO_UPGRADE: "MAV_CMD_DO_UPGRADE",
MAV_CMD_DO_SET_STANDARD_MODE: "MAV_CMD_DO_SET_STANDARD_MODE",
MAV_CMD_SET_AT_S_PARAM: "MAV_CMD_SET_AT_S_PARAM",
MAV_CMD_DO_SET_SYS_CMP_ID: "MAV_CMD_DO_SET_SYS_CMP_ID",
MAV_CMD_ODID_SET_EMERGENCY: "MAV_CMD_ODID_SET_EMERGENCY",
Expand Down Expand Up @@ -846,6 +847,7 @@ var values_MAV_CMD = map[string]MAV_CMD{
"MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN": MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN,
"MAV_CMD_OVERRIDE_GOTO": MAV_CMD_OVERRIDE_GOTO,
"MAV_CMD_OBLIQUE_SURVEY": MAV_CMD_OBLIQUE_SURVEY,
"MAV_CMD_DO_SET_STANDARD_MODE": MAV_CMD_DO_SET_STANDARD_MODE,
"MAV_CMD_MISSION_START": MAV_CMD_MISSION_START,
"MAV_CMD_ACTUATOR_TEST": MAV_CMD_ACTUATOR_TEST,
"MAV_CMD_CONFIGURE_ACTUATOR": MAV_CMD_CONFIGURE_ACTUATOR,
Expand Down Expand Up @@ -967,7 +969,6 @@ var values_MAV_CMD = map[string]MAV_CMD{
"MAV_CMD_PAYLOAD_CONTROL": MAV_CMD_PAYLOAD_CONTROL,
"MAV_CMD_DO_FIGURE_EIGHT": MAV_CMD_DO_FIGURE_EIGHT,
"MAV_CMD_DO_UPGRADE": MAV_CMD_DO_UPGRADE,
"MAV_CMD_DO_SET_STANDARD_MODE": MAV_CMD_DO_SET_STANDARD_MODE,
"MAV_CMD_SET_AT_S_PARAM": MAV_CMD_SET_AT_S_PARAM,
"MAV_CMD_DO_SET_SYS_CMP_ID": MAV_CMD_DO_SET_SYS_CMP_ID,
"MAV_CMD_ODID_SET_EMERGENCY": MAV_CMD_ODID_SET_EMERGENCY,
Expand Down
8 changes: 4 additions & 4 deletions pkg/dialects/all/enum_mav_mode_property.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
package all

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

// Mode properties.
type MAV_MODE_PROPERTY = development.MAV_MODE_PROPERTY
type MAV_MODE_PROPERTY = common.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
MAV_MODE_PROPERTY_ADVANCED MAV_MODE_PROPERTY = common.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
MAV_MODE_PROPERTY_NOT_USER_SELECTABLE MAV_MODE_PROPERTY = common.MAV_MODE_PROPERTY_NOT_USER_SELECTABLE
)
26 changes: 14 additions & 12 deletions pkg/dialects/all/enum_mav_standard_mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@
package all

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

// Standard modes with a well understood meaning across flight stacks and vehicle types.
// For example, most flight stack have the concept of a "return" or "RTL" mode that takes a vehicle to safety, even though the precise mechanics of this mode may differ.
// Modes may be set using MAV_CMD_DO_SET_STANDARD_MODE.
type MAV_STANDARD_MODE = development.MAV_STANDARD_MODE
// The modes supported by a flight stack can be queried using AVAILABLE_MODES and set using MAV_CMD_DO_SET_STANDARD_MODE.
// The current mode is streamed in CURRENT_MODE.
// See https://mavlink.io/en/services/standard_modes.html
type MAV_STANDARD_MODE = common.MAV_STANDARD_MODE

const (
// Non standard mode.
// This may be used when reporting the mode if the current flight mode is not a standard mode.
MAV_STANDARD_MODE_NON_STANDARD MAV_STANDARD_MODE = development.MAV_STANDARD_MODE_NON_STANDARD
MAV_STANDARD_MODE_NON_STANDARD MAV_STANDARD_MODE = common.MAV_STANDARD_MODE_NON_STANDARD
// Position mode (manual).
// Position-controlled and stabilized manual mode.
// When sticks are released vehicles return to their level-flight orientation and hold both position and altitude against wind and external forces.
Expand All @@ -23,7 +25,7 @@ const (
// Hybrid MC/FW ("VTOL") vehicles first transition to multicopter mode (if needed) but otherwise behave in the same way as MC vehicles.
// Fixed-wing (FW) vehicles must not support this mode.
// Other vehicle types must not support this mode (this may be revisited through the PR process).
MAV_STANDARD_MODE_POSITION_HOLD MAV_STANDARD_MODE = development.MAV_STANDARD_MODE_POSITION_HOLD
MAV_STANDARD_MODE_POSITION_HOLD MAV_STANDARD_MODE = common.MAV_STANDARD_MODE_POSITION_HOLD
// Orbit (manual).
// Position-controlled and stabilized manual mode.
// The vehicle circles around a fixed setpoint in the horizontal plane at a particular radius, altitude, and direction.
Expand All @@ -32,39 +34,39 @@ const (
// MC and FW vehicles may support this mode.
// Hybrid MC/FW ("VTOL") vehicles may support this mode in MC/FW or both modes; if the mode is not supported by the current configuration the vehicle should transition to the supported configuration.
// Other vehicle types must not support this mode (this may be revisited through the PR process).
MAV_STANDARD_MODE_ORBIT MAV_STANDARD_MODE = development.MAV_STANDARD_MODE_ORBIT
MAV_STANDARD_MODE_ORBIT MAV_STANDARD_MODE = common.MAV_STANDARD_MODE_ORBIT
// Cruise mode (manual).
// Position-controlled and stabilized manual mode.
// When sticks are released vehicles return to their level-flight orientation and hold their original track against wind and external forces.
// Fixed-wing (FW) vehicles level orientation and maintain current track and altitude against wind and external forces.
// Hybrid MC/FW ("VTOL") vehicles first transition to FW mode (if needed) but otherwise behave in the same way as MC vehicles.
// Multicopter (MC) vehicles must not support this mode.
// Other vehicle types must not support this mode (this may be revisited through the PR process).
MAV_STANDARD_MODE_CRUISE MAV_STANDARD_MODE = development.MAV_STANDARD_MODE_CRUISE
MAV_STANDARD_MODE_CRUISE MAV_STANDARD_MODE = common.MAV_STANDARD_MODE_CRUISE
// Altitude hold (manual).
// Altitude-controlled and stabilized manual mode.
// When sticks are released vehicles return to their level-flight orientation and hold their altitude.
// MC vehicles continue with existing momentum and may move with wind (or other external forces).
// FW vehicles continue with current heading, but may be moved off-track by wind.
// Hybrid MC/FW ("VTOL") vehicles behave according to their current configuration/mode (FW or MC).
// Other vehicle types must not support this mode (this may be revisited through the PR process).
MAV_STANDARD_MODE_ALTITUDE_HOLD MAV_STANDARD_MODE = development.MAV_STANDARD_MODE_ALTITUDE_HOLD
MAV_STANDARD_MODE_ALTITUDE_HOLD MAV_STANDARD_MODE = common.MAV_STANDARD_MODE_ALTITUDE_HOLD
// Safe recovery mode (auto).
// Automatic mode that takes vehicle to a predefined safe location via a safe flight path, and may also automatically land the vehicle.
// This mode is more commonly referred to as RTL and/or or Smart RTL.
// The precise return location, flight path, and landing behaviour depend on vehicle configuration and type.
// For example, the vehicle might return to the home/launch location, a rally point, or the start of a mission landing, it might follow a direct path, mission path, or breadcrumb path, and land using a mission landing pattern or some other kind of descent.
MAV_STANDARD_MODE_SAFE_RECOVERY MAV_STANDARD_MODE = development.MAV_STANDARD_MODE_SAFE_RECOVERY
MAV_STANDARD_MODE_SAFE_RECOVERY MAV_STANDARD_MODE = common.MAV_STANDARD_MODE_SAFE_RECOVERY
// Mission mode (automatic).
// Automatic mode that executes MAVLink missions.
// Missions are executed from the current waypoint as soon as the mode is enabled.
MAV_STANDARD_MODE_MISSION MAV_STANDARD_MODE = development.MAV_STANDARD_MODE_MISSION
MAV_STANDARD_MODE_MISSION MAV_STANDARD_MODE = common.MAV_STANDARD_MODE_MISSION
// Land mode (auto).
// Automatic mode that lands the vehicle at the current location.
// The precise landing behaviour depends on vehicle configuration and type.
MAV_STANDARD_MODE_LAND MAV_STANDARD_MODE = development.MAV_STANDARD_MODE_LAND
MAV_STANDARD_MODE_LAND MAV_STANDARD_MODE = common.MAV_STANDARD_MODE_LAND
// Takeoff mode (auto).
// Automatic takeoff mode.
// The precise takeoff behaviour depends on vehicle configuration and type.
MAV_STANDARD_MODE_TAKEOFF MAV_STANDARD_MODE = development.MAV_STANDARD_MODE_TAKEOFF
MAV_STANDARD_MODE_TAKEOFF MAV_STANDARD_MODE = common.MAV_STANDARD_MODE_TAKEOFF
)
12 changes: 7 additions & 5 deletions pkg/dialects/all/message_available_modes.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
package all

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

// Get information about a particular flight modes.
// The message can be enumerated or requested for a particular mode using MAV_CMD_REQUEST_MESSAGE.
// Information about a flight mode.
// The message can be enumerated to get information for all modes, or requested for a particular mode, using MAV_CMD_REQUEST_MESSAGE.
// Specify 0 in param2 to request that the message is emitted for all available modes or the specific index for just one mode.
// The modes must be available/settable for the current vehicle/frame type.
// Each modes should only be emitted once (even if it is both standard and custom).
type MessageAvailableModes = development.MessageAvailableModes
// Each mode should only be emitted once (even if it is both standard and custom).
// Note that the current mode should be emitted in CURRENT_MODE, and that if the mode list can change then AVAILABLE_MODES_MONITOR must be emitted on first change and subsequently streamed.
// See https://mavlink.io/en/services/standard_modes.html
type MessageAvailableModes = common.MessageAvailableModes
5 changes: 3 additions & 2 deletions pkg/dialects/all/message_available_modes_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
package all

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

// A change to the sequence number indicates that the set of AVAILABLE_MODES has changed.
// A receiver must re-request all available modes whenever the sequence number changes.
// This is only emitted after the first change and should then be broadcast at low rate (nominally 0.3 Hz) and on change.
type MessageAvailableModesMonitor = development.MessageAvailableModesMonitor
// See https://mavlink.io/en/services/standard_modes.html
type MessageAvailableModesMonitor = common.MessageAvailableModesMonitor
5 changes: 3 additions & 2 deletions pkg/dialects/all/message_current_mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
package all

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

// Get the current mode.
// This should be emitted on any mode change, and broadcast at low rate (nominally 0.5 Hz).
// It may be requested using MAV_CMD_REQUEST_MESSAGE.
type MessageCurrentMode = development.MessageCurrentMode
// See https://mavlink.io/en/services/standard_modes.html
type MessageCurrentMode = common.MessageCurrentMode
3 changes: 3 additions & 0 deletions pkg/dialects/ardupilotmega/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ var dial = &dialect.Dialect{
&MessageCurrentEventSequence{},
&MessageRequestEvent{},
&MessageResponseEventError{},
&MessageAvailableModes{},
&MessageCurrentMode{},
&MessageAvailableModesMonitor{},
&MessageIlluminatorStatus{},
&MessageCanfdFrame{},
&MessageCanFilterModify{},
Expand Down
6 changes: 6 additions & 0 deletions pkg/dialects/ardupilotmega/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ const (
MAV_CMD_OVERRIDE_GOTO MAV_CMD = 252
// Mission command to set a Camera Auto Mount Pivoting Oblique Survey (Replaces CAM_TRIGG_DIST for this purpose). The camera is triggered each time this distance is exceeded, then the mount moves to the next position. Params 4~6 set-up the angle limits and number of positions for oblique survey, where mount-enabled vehicles automatically roll the camera between shots to emulate an oblique camera setup (providing an increased HFOV). This command can also be used to set the shutter integration time for the camera.
MAV_CMD_OBLIQUE_SURVEY MAV_CMD = 260
// Enable the specified standard MAVLink mode.
// If the specified mode is not supported, the vehicle should ACK with MAV_RESULT_FAILED.
// See https://mavlink.io/en/services/standard_modes.html
MAV_CMD_DO_SET_STANDARD_MODE MAV_CMD = 262
// start running a mission
MAV_CMD_MISSION_START MAV_CMD = 300
// Actuator testing command. This is similar to MAV_CMD_DO_MOTOR_TEST but operates on the level of output functions, i.e. it is possible to test Motor1 independent from which output it is configured on. Autopilots typically refuse this command while armed.
Expand Down Expand Up @@ -550,6 +554,7 @@ var labels_MAV_CMD = map[MAV_CMD]string{
MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN: "MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN",
MAV_CMD_OVERRIDE_GOTO: "MAV_CMD_OVERRIDE_GOTO",
MAV_CMD_OBLIQUE_SURVEY: "MAV_CMD_OBLIQUE_SURVEY",
MAV_CMD_DO_SET_STANDARD_MODE: "MAV_CMD_DO_SET_STANDARD_MODE",
MAV_CMD_MISSION_START: "MAV_CMD_MISSION_START",
MAV_CMD_ACTUATOR_TEST: "MAV_CMD_ACTUATOR_TEST",
MAV_CMD_CONFIGURE_ACTUATOR: "MAV_CMD_CONFIGURE_ACTUATOR",
Expand Down Expand Up @@ -750,6 +755,7 @@ var values_MAV_CMD = map[string]MAV_CMD{
"MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN": MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN,
"MAV_CMD_OVERRIDE_GOTO": MAV_CMD_OVERRIDE_GOTO,
"MAV_CMD_OBLIQUE_SURVEY": MAV_CMD_OBLIQUE_SURVEY,
"MAV_CMD_DO_SET_STANDARD_MODE": MAV_CMD_DO_SET_STANDARD_MODE,
"MAV_CMD_MISSION_START": MAV_CMD_MISSION_START,
"MAV_CMD_ACTUATOR_TEST": MAV_CMD_ACTUATOR_TEST,
"MAV_CMD_CONFIGURE_ACTUATOR": MAV_CMD_CONFIGURE_ACTUATOR,
Expand Down
20 changes: 20 additions & 0 deletions pkg/dialects/ardupilotmega/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 ardupilotmega

import (
"github.com/bluenviron/gomavlib/v3/pkg/dialects/common"
)

// Mode properties.
type MAV_MODE_PROPERTY = common.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 = common.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 = common.MAV_MODE_PROPERTY_NOT_USER_SELECTABLE
)
Loading

0 comments on commit b0087d4

Please sign in to comment.