From e53afad5703a73a7412656e55643abb1b4f67683 Mon Sep 17 00:00:00 2001 From: gomavlib-bot Date: Thu, 28 Sep 2023 05:14:27 +0000 Subject: [PATCH] (automatic) update dialects to rev https://github.com/mavlink/mavlink/tree/b295e70eefa5eb4eee4cf6531e33f4b4c4e472d6 --- pkg/dialects/all/enum_mav_cmd.go | 2 +- pkg/dialects/all/enum_speed_type.go | 15 +++-- pkg/dialects/ardupilotmega/enum_mav_cmd.go | 2 +- pkg/dialects/ardupilotmega/enum_speed_type.go | 54 ++++------------ pkg/dialects/asluav/enum_mav_cmd.go | 2 +- pkg/dialects/asluav/enum_speed_type.go | 21 ++++++ pkg/dialects/avssuas/enum_mav_cmd.go | 2 +- pkg/dialects/avssuas/enum_speed_type.go | 21 ++++++ pkg/dialects/common/enum_mav_cmd.go | 2 +- pkg/dialects/common/enum_speed_type.go | 64 +++++++++++++++++++ pkg/dialects/cubepilot/enum_mav_cmd.go | 2 +- pkg/dialects/cubepilot/enum_speed_type.go | 21 ++++++ pkg/dialects/development/enum_mav_cmd.go | 2 +- pkg/dialects/development/enum_speed_type.go | 21 ++++++ pkg/dialects/matrixpilot/enum_mav_cmd.go | 2 +- pkg/dialects/matrixpilot/enum_speed_type.go | 21 ++++++ pkg/dialects/paparazzi/enum_mav_cmd.go | 2 +- pkg/dialects/paparazzi/enum_speed_type.go | 21 ++++++ pkg/dialects/pythonarraytest/enum_mav_cmd.go | 2 +- .../pythonarraytest/enum_speed_type.go | 21 ++++++ pkg/dialects/storm32/enum_mav_cmd.go | 2 +- pkg/dialects/storm32/enum_speed_type.go | 15 +++-- pkg/dialects/ualberta/enum_mav_cmd.go | 2 +- pkg/dialects/ualberta/enum_speed_type.go | 21 ++++++ pkg/dialects/uavionix/enum_mav_cmd.go | 2 +- pkg/dialects/uavionix/enum_speed_type.go | 21 ++++++ 26 files changed, 299 insertions(+), 64 deletions(-) create mode 100644 pkg/dialects/asluav/enum_speed_type.go create mode 100644 pkg/dialects/avssuas/enum_speed_type.go create mode 100644 pkg/dialects/common/enum_speed_type.go create mode 100644 pkg/dialects/cubepilot/enum_speed_type.go create mode 100644 pkg/dialects/development/enum_speed_type.go create mode 100644 pkg/dialects/matrixpilot/enum_speed_type.go create mode 100644 pkg/dialects/paparazzi/enum_speed_type.go create mode 100644 pkg/dialects/pythonarraytest/enum_speed_type.go create mode 100644 pkg/dialects/ualberta/enum_speed_type.go create mode 100644 pkg/dialects/uavionix/enum_speed_type.go diff --git a/pkg/dialects/all/enum_mav_cmd.go b/pkg/dialects/all/enum_mav_cmd.go index 97e7c128e..3af2a8783 100644 --- a/pkg/dialects/all/enum_mav_cmd.go +++ b/pkg/dialects/all/enum_mav_cmd.go @@ -73,7 +73,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = 176 // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = 177 - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = 178 // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/all/enum_speed_type.go b/pkg/dialects/all/enum_speed_type.go index 7f86cc742..57e8123c9 100644 --- a/pkg/dialects/all/enum_speed_type.go +++ b/pkg/dialects/all/enum_speed_type.go @@ -3,12 +3,19 @@ package all import ( - "github.com/bluenviron/gomavlib/v2/pkg/dialects/ardupilotmega" + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" ) -type SPEED_TYPE = ardupilotmega.SPEED_TYPE +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE const ( - SPEED_TYPE_AIRSPEED SPEED_TYPE = ardupilotmega.SPEED_TYPE_AIRSPEED - SPEED_TYPE_GROUNDSPEED SPEED_TYPE = ardupilotmega.SPEED_TYPE_GROUNDSPEED + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED ) diff --git a/pkg/dialects/ardupilotmega/enum_mav_cmd.go b/pkg/dialects/ardupilotmega/enum_mav_cmd.go index a19418b93..c2d819ffe 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_cmd.go +++ b/pkg/dialects/ardupilotmega/enum_mav_cmd.go @@ -73,7 +73,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = 176 // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = 177 - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = 178 // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/ardupilotmega/enum_speed_type.go b/pkg/dialects/ardupilotmega/enum_speed_type.go index 0ce8e5950..4b6d06bcd 100644 --- a/pkg/dialects/ardupilotmega/enum_speed_type.go +++ b/pkg/dialects/ardupilotmega/enum_speed_type.go @@ -3,51 +3,19 @@ package ardupilotmega import ( - "fmt" - "strconv" + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" ) -type SPEED_TYPE uint32 +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE const ( - SPEED_TYPE_AIRSPEED SPEED_TYPE = 0 - SPEED_TYPE_GROUNDSPEED SPEED_TYPE = 1 + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED ) - -var labels_SPEED_TYPE = map[SPEED_TYPE]string{ - SPEED_TYPE_AIRSPEED: "SPEED_TYPE_AIRSPEED", - SPEED_TYPE_GROUNDSPEED: "SPEED_TYPE_GROUNDSPEED", -} - -var values_SPEED_TYPE = map[string]SPEED_TYPE{ - "SPEED_TYPE_AIRSPEED": SPEED_TYPE_AIRSPEED, - "SPEED_TYPE_GROUNDSPEED": SPEED_TYPE_GROUNDSPEED, -} - -// MarshalText implements the encoding.TextMarshaler interface. -func (e SPEED_TYPE) MarshalText() ([]byte, error) { - name, ok := labels_SPEED_TYPE[e] - if !ok { - return nil, fmt.Errorf("invalid value %d", e) - } - return []byte(name), nil -} - -// UnmarshalText implements the encoding.TextUnmarshaler interface. -func (e *SPEED_TYPE) UnmarshalText(text []byte) error { - value, ok := values_SPEED_TYPE[string(text)] - if !ok { - return fmt.Errorf("invalid label '%s'", text) - } - *e = value - return nil -} - -// String implements the fmt.Stringer interface. -func (e SPEED_TYPE) String() string { - name, ok := labels_SPEED_TYPE[e] - if !ok { - return strconv.Itoa(int(e)) - } - return name -} diff --git a/pkg/dialects/asluav/enum_mav_cmd.go b/pkg/dialects/asluav/enum_mav_cmd.go index b23311832..828eb99ad 100644 --- a/pkg/dialects/asluav/enum_mav_cmd.go +++ b/pkg/dialects/asluav/enum_mav_cmd.go @@ -73,7 +73,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = 176 // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = 177 - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = 178 // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/asluav/enum_speed_type.go b/pkg/dialects/asluav/enum_speed_type.go new file mode 100644 index 000000000..2da4dd781 --- /dev/null +++ b/pkg/dialects/asluav/enum_speed_type.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package asluav + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE + +const ( + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED +) diff --git a/pkg/dialects/avssuas/enum_mav_cmd.go b/pkg/dialects/avssuas/enum_mav_cmd.go index f3082da53..7be36fde4 100644 --- a/pkg/dialects/avssuas/enum_mav_cmd.go +++ b/pkg/dialects/avssuas/enum_mav_cmd.go @@ -73,7 +73,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = 176 // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = 177 - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = 178 // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/avssuas/enum_speed_type.go b/pkg/dialects/avssuas/enum_speed_type.go new file mode 100644 index 000000000..5e7878dd5 --- /dev/null +++ b/pkg/dialects/avssuas/enum_speed_type.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package avssuas + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE + +const ( + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED +) diff --git a/pkg/dialects/common/enum_mav_cmd.go b/pkg/dialects/common/enum_mav_cmd.go index 9adc17486..81e6d9ce9 100644 --- a/pkg/dialects/common/enum_mav_cmd.go +++ b/pkg/dialects/common/enum_mav_cmd.go @@ -73,7 +73,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = 176 // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = 177 - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = 178 // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/common/enum_speed_type.go b/pkg/dialects/common/enum_speed_type.go new file mode 100644 index 000000000..f66915410 --- /dev/null +++ b/pkg/dialects/common/enum_speed_type.go @@ -0,0 +1,64 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package common + +import ( + "fmt" + "strconv" +) + +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE uint32 + +const ( + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = 0 + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = 1 + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = 2 + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = 3 +) + +var labels_SPEED_TYPE = map[SPEED_TYPE]string{ + SPEED_TYPE_AIRSPEED: "SPEED_TYPE_AIRSPEED", + SPEED_TYPE_GROUNDSPEED: "SPEED_TYPE_GROUNDSPEED", + SPEED_TYPE_CLIMB_SPEED: "SPEED_TYPE_CLIMB_SPEED", + SPEED_TYPE_DESCENT_SPEED: "SPEED_TYPE_DESCENT_SPEED", +} + +var values_SPEED_TYPE = map[string]SPEED_TYPE{ + "SPEED_TYPE_AIRSPEED": SPEED_TYPE_AIRSPEED, + "SPEED_TYPE_GROUNDSPEED": SPEED_TYPE_GROUNDSPEED, + "SPEED_TYPE_CLIMB_SPEED": SPEED_TYPE_CLIMB_SPEED, + "SPEED_TYPE_DESCENT_SPEED": SPEED_TYPE_DESCENT_SPEED, +} + +// MarshalText implements the encoding.TextMarshaler interface. +func (e SPEED_TYPE) MarshalText() ([]byte, error) { + name, ok := labels_SPEED_TYPE[e] + if !ok { + return nil, fmt.Errorf("invalid value %d", e) + } + return []byte(name), nil +} + +// UnmarshalText implements the encoding.TextUnmarshaler interface. +func (e *SPEED_TYPE) UnmarshalText(text []byte) error { + value, ok := values_SPEED_TYPE[string(text)] + if !ok { + return fmt.Errorf("invalid label '%s'", text) + } + *e = value + return nil +} + +// String implements the fmt.Stringer interface. +func (e SPEED_TYPE) String() string { + name, ok := labels_SPEED_TYPE[e] + if !ok { + return strconv.Itoa(int(e)) + } + return name +} diff --git a/pkg/dialects/cubepilot/enum_mav_cmd.go b/pkg/dialects/cubepilot/enum_mav_cmd.go index b5e6ac165..223c37d3c 100644 --- a/pkg/dialects/cubepilot/enum_mav_cmd.go +++ b/pkg/dialects/cubepilot/enum_mav_cmd.go @@ -72,7 +72,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = common.MAV_CMD_DO_SET_MODE // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = common.MAV_CMD_DO_JUMP - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = common.MAV_CMD_DO_CHANGE_SPEED // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/cubepilot/enum_speed_type.go b/pkg/dialects/cubepilot/enum_speed_type.go new file mode 100644 index 000000000..752a95738 --- /dev/null +++ b/pkg/dialects/cubepilot/enum_speed_type.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package cubepilot + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE + +const ( + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED +) diff --git a/pkg/dialects/development/enum_mav_cmd.go b/pkg/dialects/development/enum_mav_cmd.go index cda99e721..b989cc49f 100644 --- a/pkg/dialects/development/enum_mav_cmd.go +++ b/pkg/dialects/development/enum_mav_cmd.go @@ -73,7 +73,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = 176 // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = 177 - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = 178 // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/development/enum_speed_type.go b/pkg/dialects/development/enum_speed_type.go new file mode 100644 index 000000000..36f25b18f --- /dev/null +++ b/pkg/dialects/development/enum_speed_type.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package development + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE + +const ( + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED +) diff --git a/pkg/dialects/matrixpilot/enum_mav_cmd.go b/pkg/dialects/matrixpilot/enum_mav_cmd.go index 526feb086..eff59b86a 100644 --- a/pkg/dialects/matrixpilot/enum_mav_cmd.go +++ b/pkg/dialects/matrixpilot/enum_mav_cmd.go @@ -73,7 +73,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = 176 // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = 177 - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = 178 // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/matrixpilot/enum_speed_type.go b/pkg/dialects/matrixpilot/enum_speed_type.go new file mode 100644 index 000000000..b7aea1d77 --- /dev/null +++ b/pkg/dialects/matrixpilot/enum_speed_type.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package matrixpilot + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE + +const ( + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED +) diff --git a/pkg/dialects/paparazzi/enum_mav_cmd.go b/pkg/dialects/paparazzi/enum_mav_cmd.go index a2233bd96..c3725c757 100644 --- a/pkg/dialects/paparazzi/enum_mav_cmd.go +++ b/pkg/dialects/paparazzi/enum_mav_cmd.go @@ -72,7 +72,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = common.MAV_CMD_DO_SET_MODE // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = common.MAV_CMD_DO_JUMP - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = common.MAV_CMD_DO_CHANGE_SPEED // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/paparazzi/enum_speed_type.go b/pkg/dialects/paparazzi/enum_speed_type.go new file mode 100644 index 000000000..1e903d53a --- /dev/null +++ b/pkg/dialects/paparazzi/enum_speed_type.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package paparazzi + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE + +const ( + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED +) diff --git a/pkg/dialects/pythonarraytest/enum_mav_cmd.go b/pkg/dialects/pythonarraytest/enum_mav_cmd.go index f1f457c3e..880750bc3 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_cmd.go +++ b/pkg/dialects/pythonarraytest/enum_mav_cmd.go @@ -72,7 +72,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = common.MAV_CMD_DO_SET_MODE // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = common.MAV_CMD_DO_JUMP - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = common.MAV_CMD_DO_CHANGE_SPEED // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/pythonarraytest/enum_speed_type.go b/pkg/dialects/pythonarraytest/enum_speed_type.go new file mode 100644 index 000000000..4dba4c6e9 --- /dev/null +++ b/pkg/dialects/pythonarraytest/enum_speed_type.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package pythonarraytest + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE + +const ( + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED +) diff --git a/pkg/dialects/storm32/enum_mav_cmd.go b/pkg/dialects/storm32/enum_mav_cmd.go index e82a80464..d096b8bc8 100644 --- a/pkg/dialects/storm32/enum_mav_cmd.go +++ b/pkg/dialects/storm32/enum_mav_cmd.go @@ -73,7 +73,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = 176 // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = 177 - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = 178 // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/storm32/enum_speed_type.go b/pkg/dialects/storm32/enum_speed_type.go index 474b7c9c3..43ce686d0 100644 --- a/pkg/dialects/storm32/enum_speed_type.go +++ b/pkg/dialects/storm32/enum_speed_type.go @@ -3,12 +3,19 @@ package storm32 import ( - "github.com/bluenviron/gomavlib/v2/pkg/dialects/ardupilotmega" + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" ) -type SPEED_TYPE = ardupilotmega.SPEED_TYPE +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE const ( - SPEED_TYPE_AIRSPEED SPEED_TYPE = ardupilotmega.SPEED_TYPE_AIRSPEED - SPEED_TYPE_GROUNDSPEED SPEED_TYPE = ardupilotmega.SPEED_TYPE_GROUNDSPEED + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED ) diff --git a/pkg/dialects/ualberta/enum_mav_cmd.go b/pkg/dialects/ualberta/enum_mav_cmd.go index 52400f8f2..12719dc21 100644 --- a/pkg/dialects/ualberta/enum_mav_cmd.go +++ b/pkg/dialects/ualberta/enum_mav_cmd.go @@ -72,7 +72,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = common.MAV_CMD_DO_SET_MODE // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = common.MAV_CMD_DO_JUMP - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = common.MAV_CMD_DO_CHANGE_SPEED // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/ualberta/enum_speed_type.go b/pkg/dialects/ualberta/enum_speed_type.go new file mode 100644 index 000000000..a8210f5ac --- /dev/null +++ b/pkg/dialects/ualberta/enum_speed_type.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package ualberta + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE + +const ( + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED +) diff --git a/pkg/dialects/uavionix/enum_mav_cmd.go b/pkg/dialects/uavionix/enum_mav_cmd.go index f3109600f..af7651645 100644 --- a/pkg/dialects/uavionix/enum_mav_cmd.go +++ b/pkg/dialects/uavionix/enum_mav_cmd.go @@ -72,7 +72,7 @@ const ( MAV_CMD_DO_SET_MODE MAV_CMD = common.MAV_CMD_DO_SET_MODE // Jump to the desired command in the mission list. Repeat this action only the specified number of times MAV_CMD_DO_JUMP MAV_CMD = common.MAV_CMD_DO_JUMP - // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change. + // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change MAV_CMD_DO_CHANGE_SPEED MAV_CMD = common.MAV_CMD_DO_CHANGE_SPEED // Sets the home position to either to the current position or a specified position. // The home position is the default position that the system will return to and land on. diff --git a/pkg/dialects/uavionix/enum_speed_type.go b/pkg/dialects/uavionix/enum_speed_type.go new file mode 100644 index 000000000..9e8db691d --- /dev/null +++ b/pkg/dialects/uavionix/enum_speed_type.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package uavionix + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED +type SPEED_TYPE = common.SPEED_TYPE + +const ( + // Airspeed + SPEED_TYPE_AIRSPEED SPEED_TYPE = common.SPEED_TYPE_AIRSPEED + // Groundspeed + SPEED_TYPE_GROUNDSPEED SPEED_TYPE = common.SPEED_TYPE_GROUNDSPEED + // Climb speed + SPEED_TYPE_CLIMB_SPEED SPEED_TYPE = common.SPEED_TYPE_CLIMB_SPEED + // Descent speed + SPEED_TYPE_DESCENT_SPEED SPEED_TYPE = common.SPEED_TYPE_DESCENT_SPEED +)