From d46f2ada56f9f6e86cf4ab52d267c0a54024fea5 Mon Sep 17 00:00:00 2001 From: gomavlib-bot Date: Tue, 5 Mar 2024 05:14:27 +0000 Subject: [PATCH] (automatic) update dialects to rev https://github.com/mavlink/mavlink/tree/e9b532a9a131c2a716778b83e55da233ed1800ff --- pkg/dialects/all/enum_camera_source.go | 21 +++++++ pkg/dialects/all/enum_mav_cmd.go | 4 ++ .../ardupilotmega/enum_camera_source.go | 21 +++++++ pkg/dialects/ardupilotmega/enum_mav_cmd.go | 4 ++ pkg/dialects/asluav/enum_camera_source.go | 21 +++++++ pkg/dialects/asluav/enum_mav_cmd.go | 4 ++ pkg/dialects/avssuas/enum_camera_source.go | 21 +++++++ pkg/dialects/avssuas/enum_mav_cmd.go | 4 ++ pkg/dialects/common/enum_camera_source.go | 62 +++++++++++++++++++ pkg/dialects/common/enum_mav_cmd.go | 4 ++ pkg/dialects/cubepilot/enum_camera_source.go | 21 +++++++ pkg/dialects/cubepilot/enum_mav_cmd.go | 2 + .../development/enum_camera_source.go | 21 +++++++ pkg/dialects/development/enum_mav_cmd.go | 4 ++ .../matrixpilot/enum_camera_source.go | 21 +++++++ pkg/dialects/matrixpilot/enum_mav_cmd.go | 4 ++ pkg/dialects/paparazzi/enum_camera_source.go | 21 +++++++ pkg/dialects/paparazzi/enum_mav_cmd.go | 2 + .../pythonarraytest/enum_camera_source.go | 21 +++++++ pkg/dialects/pythonarraytest/enum_mav_cmd.go | 2 + pkg/dialects/storm32/enum_camera_source.go | 21 +++++++ pkg/dialects/storm32/enum_mav_cmd.go | 4 ++ pkg/dialects/ualberta/enum_camera_source.go | 21 +++++++ pkg/dialects/ualberta/enum_mav_cmd.go | 2 + pkg/dialects/uavionix/enum_camera_source.go | 21 +++++++ pkg/dialects/uavionix/enum_mav_cmd.go | 2 + 26 files changed, 356 insertions(+) create mode 100644 pkg/dialects/all/enum_camera_source.go create mode 100644 pkg/dialects/ardupilotmega/enum_camera_source.go create mode 100644 pkg/dialects/asluav/enum_camera_source.go create mode 100644 pkg/dialects/avssuas/enum_camera_source.go create mode 100644 pkg/dialects/common/enum_camera_source.go create mode 100644 pkg/dialects/cubepilot/enum_camera_source.go create mode 100644 pkg/dialects/development/enum_camera_source.go create mode 100644 pkg/dialects/matrixpilot/enum_camera_source.go create mode 100644 pkg/dialects/paparazzi/enum_camera_source.go create mode 100644 pkg/dialects/pythonarraytest/enum_camera_source.go create mode 100644 pkg/dialects/storm32/enum_camera_source.go create mode 100644 pkg/dialects/ualberta/enum_camera_source.go create mode 100644 pkg/dialects/uavionix/enum_camera_source.go diff --git a/pkg/dialects/all/enum_camera_source.go b/pkg/dialects/all/enum_camera_source.go new file mode 100644 index 000000000..12db29696 --- /dev/null +++ b/pkg/dialects/all/enum_camera_source.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package all + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/all/enum_mav_cmd.go b/pkg/dialects/all/enum_mav_cmd.go index 66faa4481..f4495e7d3 100644 --- a/pkg/dialects/all/enum_mav_cmd.go +++ b/pkg/dialects/all/enum_mav_cmd.go @@ -249,6 +249,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = 533 + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = 534 // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. @@ -609,6 +611,7 @@ var labels_MAV_CMD = map[MAV_CMD]string{ MAV_CMD_SET_CAMERA_ZOOM: "MAV_CMD_SET_CAMERA_ZOOM", MAV_CMD_SET_CAMERA_FOCUS: "MAV_CMD_SET_CAMERA_FOCUS", MAV_CMD_SET_STORAGE_USAGE: "MAV_CMD_SET_STORAGE_USAGE", + MAV_CMD_SET_CAMERA_SOURCE: "MAV_CMD_SET_CAMERA_SOURCE", MAV_CMD_JUMP_TAG: "MAV_CMD_JUMP_TAG", MAV_CMD_DO_JUMP_TAG: "MAV_CMD_DO_JUMP_TAG", MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW: "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW", @@ -824,6 +827,7 @@ var values_MAV_CMD = map[string]MAV_CMD{ "MAV_CMD_SET_CAMERA_ZOOM": MAV_CMD_SET_CAMERA_ZOOM, "MAV_CMD_SET_CAMERA_FOCUS": MAV_CMD_SET_CAMERA_FOCUS, "MAV_CMD_SET_STORAGE_USAGE": MAV_CMD_SET_STORAGE_USAGE, + "MAV_CMD_SET_CAMERA_SOURCE": MAV_CMD_SET_CAMERA_SOURCE, "MAV_CMD_JUMP_TAG": MAV_CMD_JUMP_TAG, "MAV_CMD_DO_JUMP_TAG": MAV_CMD_DO_JUMP_TAG, "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW": MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW, diff --git a/pkg/dialects/ardupilotmega/enum_camera_source.go b/pkg/dialects/ardupilotmega/enum_camera_source.go new file mode 100644 index 000000000..c304433dd --- /dev/null +++ b/pkg/dialects/ardupilotmega/enum_camera_source.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package ardupilotmega + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/ardupilotmega/enum_mav_cmd.go b/pkg/dialects/ardupilotmega/enum_mav_cmd.go index 5d57a9f81..732095cd5 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_cmd.go +++ b/pkg/dialects/ardupilotmega/enum_mav_cmd.go @@ -249,6 +249,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = 533 + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = 534 // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. @@ -552,6 +554,7 @@ var labels_MAV_CMD = map[MAV_CMD]string{ MAV_CMD_SET_CAMERA_ZOOM: "MAV_CMD_SET_CAMERA_ZOOM", MAV_CMD_SET_CAMERA_FOCUS: "MAV_CMD_SET_CAMERA_FOCUS", MAV_CMD_SET_STORAGE_USAGE: "MAV_CMD_SET_STORAGE_USAGE", + MAV_CMD_SET_CAMERA_SOURCE: "MAV_CMD_SET_CAMERA_SOURCE", MAV_CMD_JUMP_TAG: "MAV_CMD_JUMP_TAG", MAV_CMD_DO_JUMP_TAG: "MAV_CMD_DO_JUMP_TAG", MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW: "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW", @@ -747,6 +750,7 @@ var values_MAV_CMD = map[string]MAV_CMD{ "MAV_CMD_SET_CAMERA_ZOOM": MAV_CMD_SET_CAMERA_ZOOM, "MAV_CMD_SET_CAMERA_FOCUS": MAV_CMD_SET_CAMERA_FOCUS, "MAV_CMD_SET_STORAGE_USAGE": MAV_CMD_SET_STORAGE_USAGE, + "MAV_CMD_SET_CAMERA_SOURCE": MAV_CMD_SET_CAMERA_SOURCE, "MAV_CMD_JUMP_TAG": MAV_CMD_JUMP_TAG, "MAV_CMD_DO_JUMP_TAG": MAV_CMD_DO_JUMP_TAG, "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW": MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW, diff --git a/pkg/dialects/asluav/enum_camera_source.go b/pkg/dialects/asluav/enum_camera_source.go new file mode 100644 index 000000000..66c49d503 --- /dev/null +++ b/pkg/dialects/asluav/enum_camera_source.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" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/asluav/enum_mav_cmd.go b/pkg/dialects/asluav/enum_mav_cmd.go index 477f47fa1..9ff301d42 100644 --- a/pkg/dialects/asluav/enum_mav_cmd.go +++ b/pkg/dialects/asluav/enum_mav_cmd.go @@ -249,6 +249,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = 533 + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = 534 // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. @@ -493,6 +495,7 @@ var labels_MAV_CMD = map[MAV_CMD]string{ MAV_CMD_SET_CAMERA_ZOOM: "MAV_CMD_SET_CAMERA_ZOOM", MAV_CMD_SET_CAMERA_FOCUS: "MAV_CMD_SET_CAMERA_FOCUS", MAV_CMD_SET_STORAGE_USAGE: "MAV_CMD_SET_STORAGE_USAGE", + MAV_CMD_SET_CAMERA_SOURCE: "MAV_CMD_SET_CAMERA_SOURCE", MAV_CMD_JUMP_TAG: "MAV_CMD_JUMP_TAG", MAV_CMD_DO_JUMP_TAG: "MAV_CMD_DO_JUMP_TAG", MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW: "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW", @@ -659,6 +662,7 @@ var values_MAV_CMD = map[string]MAV_CMD{ "MAV_CMD_SET_CAMERA_ZOOM": MAV_CMD_SET_CAMERA_ZOOM, "MAV_CMD_SET_CAMERA_FOCUS": MAV_CMD_SET_CAMERA_FOCUS, "MAV_CMD_SET_STORAGE_USAGE": MAV_CMD_SET_STORAGE_USAGE, + "MAV_CMD_SET_CAMERA_SOURCE": MAV_CMD_SET_CAMERA_SOURCE, "MAV_CMD_JUMP_TAG": MAV_CMD_JUMP_TAG, "MAV_CMD_DO_JUMP_TAG": MAV_CMD_DO_JUMP_TAG, "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW": MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW, diff --git a/pkg/dialects/avssuas/enum_camera_source.go b/pkg/dialects/avssuas/enum_camera_source.go new file mode 100644 index 000000000..520975a75 --- /dev/null +++ b/pkg/dialects/avssuas/enum_camera_source.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" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/avssuas/enum_mav_cmd.go b/pkg/dialects/avssuas/enum_mav_cmd.go index c5bce1543..5a37a4fcc 100644 --- a/pkg/dialects/avssuas/enum_mav_cmd.go +++ b/pkg/dialects/avssuas/enum_mav_cmd.go @@ -249,6 +249,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = 533 + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = 534 // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. @@ -503,6 +505,7 @@ var labels_MAV_CMD = map[MAV_CMD]string{ MAV_CMD_SET_CAMERA_ZOOM: "MAV_CMD_SET_CAMERA_ZOOM", MAV_CMD_SET_CAMERA_FOCUS: "MAV_CMD_SET_CAMERA_FOCUS", MAV_CMD_SET_STORAGE_USAGE: "MAV_CMD_SET_STORAGE_USAGE", + MAV_CMD_SET_CAMERA_SOURCE: "MAV_CMD_SET_CAMERA_SOURCE", MAV_CMD_JUMP_TAG: "MAV_CMD_JUMP_TAG", MAV_CMD_DO_JUMP_TAG: "MAV_CMD_DO_JUMP_TAG", MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW: "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW", @@ -674,6 +677,7 @@ var values_MAV_CMD = map[string]MAV_CMD{ "MAV_CMD_SET_CAMERA_ZOOM": MAV_CMD_SET_CAMERA_ZOOM, "MAV_CMD_SET_CAMERA_FOCUS": MAV_CMD_SET_CAMERA_FOCUS, "MAV_CMD_SET_STORAGE_USAGE": MAV_CMD_SET_STORAGE_USAGE, + "MAV_CMD_SET_CAMERA_SOURCE": MAV_CMD_SET_CAMERA_SOURCE, "MAV_CMD_JUMP_TAG": MAV_CMD_JUMP_TAG, "MAV_CMD_DO_JUMP_TAG": MAV_CMD_DO_JUMP_TAG, "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW": MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW, diff --git a/pkg/dialects/common/enum_camera_source.go b/pkg/dialects/common/enum_camera_source.go new file mode 100644 index 000000000..5b9ad011a --- /dev/null +++ b/pkg/dialects/common/enum_camera_source.go @@ -0,0 +1,62 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package common + +import ( + "fmt" + "strconv" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE uint64 + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = 0 + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = 1 + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = 2 + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = 3 +) + +var labels_CAMERA_SOURCE = map[CAMERA_SOURCE]string{ + CAMERA_SOURCE_DEFAULT: "CAMERA_SOURCE_DEFAULT", + CAMERA_SOURCE_RGB: "CAMERA_SOURCE_RGB", + CAMERA_SOURCE_IR: "CAMERA_SOURCE_IR", + CAMERA_SOURCE_NDVI: "CAMERA_SOURCE_NDVI", +} + +var values_CAMERA_SOURCE = map[string]CAMERA_SOURCE{ + "CAMERA_SOURCE_DEFAULT": CAMERA_SOURCE_DEFAULT, + "CAMERA_SOURCE_RGB": CAMERA_SOURCE_RGB, + "CAMERA_SOURCE_IR": CAMERA_SOURCE_IR, + "CAMERA_SOURCE_NDVI": CAMERA_SOURCE_NDVI, +} + +// MarshalText implements the encoding.TextMarshaler interface. +func (e CAMERA_SOURCE) MarshalText() ([]byte, error) { + if name, ok := labels_CAMERA_SOURCE[e]; ok { + return []byte(name), nil + } + return []byte(strconv.Itoa(int(e))), nil +} + +// UnmarshalText implements the encoding.TextUnmarshaler interface. +func (e *CAMERA_SOURCE) UnmarshalText(text []byte) error { + if value, ok := values_CAMERA_SOURCE[string(text)]; ok { + *e = value + } else if value, err := strconv.Atoi(string(text)); err == nil { + *e = CAMERA_SOURCE(value) + } else { + return fmt.Errorf("invalid label '%s'", text) + } + return nil +} + +// String implements the fmt.Stringer interface. +func (e CAMERA_SOURCE) String() string { + val, _ := e.MarshalText() + return string(val) +} diff --git a/pkg/dialects/common/enum_mav_cmd.go b/pkg/dialects/common/enum_mav_cmd.go index f0bbc830a..6ed5b7355 100644 --- a/pkg/dialects/common/enum_mav_cmd.go +++ b/pkg/dialects/common/enum_mav_cmd.go @@ -249,6 +249,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = 533 + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = 534 // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. @@ -489,6 +491,7 @@ var labels_MAV_CMD = map[MAV_CMD]string{ MAV_CMD_SET_CAMERA_ZOOM: "MAV_CMD_SET_CAMERA_ZOOM", MAV_CMD_SET_CAMERA_FOCUS: "MAV_CMD_SET_CAMERA_FOCUS", MAV_CMD_SET_STORAGE_USAGE: "MAV_CMD_SET_STORAGE_USAGE", + MAV_CMD_SET_CAMERA_SOURCE: "MAV_CMD_SET_CAMERA_SOURCE", MAV_CMD_JUMP_TAG: "MAV_CMD_JUMP_TAG", MAV_CMD_DO_JUMP_TAG: "MAV_CMD_DO_JUMP_TAG", MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW: "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW", @@ -653,6 +656,7 @@ var values_MAV_CMD = map[string]MAV_CMD{ "MAV_CMD_SET_CAMERA_ZOOM": MAV_CMD_SET_CAMERA_ZOOM, "MAV_CMD_SET_CAMERA_FOCUS": MAV_CMD_SET_CAMERA_FOCUS, "MAV_CMD_SET_STORAGE_USAGE": MAV_CMD_SET_STORAGE_USAGE, + "MAV_CMD_SET_CAMERA_SOURCE": MAV_CMD_SET_CAMERA_SOURCE, "MAV_CMD_JUMP_TAG": MAV_CMD_JUMP_TAG, "MAV_CMD_DO_JUMP_TAG": MAV_CMD_DO_JUMP_TAG, "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW": MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW, diff --git a/pkg/dialects/cubepilot/enum_camera_source.go b/pkg/dialects/cubepilot/enum_camera_source.go new file mode 100644 index 000000000..b94d0c4ab --- /dev/null +++ b/pkg/dialects/cubepilot/enum_camera_source.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" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/cubepilot/enum_mav_cmd.go b/pkg/dialects/cubepilot/enum_mav_cmd.go index 5c9e0be1a..0be719f94 100644 --- a/pkg/dialects/cubepilot/enum_mav_cmd.go +++ b/pkg/dialects/cubepilot/enum_mav_cmd.go @@ -248,6 +248,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = common.MAV_CMD_SET_STORAGE_USAGE + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = common.MAV_CMD_SET_CAMERA_SOURCE // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. diff --git a/pkg/dialects/development/enum_camera_source.go b/pkg/dialects/development/enum_camera_source.go new file mode 100644 index 000000000..8e01ad4db --- /dev/null +++ b/pkg/dialects/development/enum_camera_source.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" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/development/enum_mav_cmd.go b/pkg/dialects/development/enum_mav_cmd.go index b3038e695..b8383bab2 100644 --- a/pkg/dialects/development/enum_mav_cmd.go +++ b/pkg/dialects/development/enum_mav_cmd.go @@ -249,6 +249,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = 533 + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = 534 // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. @@ -522,6 +524,7 @@ var labels_MAV_CMD = map[MAV_CMD]string{ MAV_CMD_SET_CAMERA_ZOOM: "MAV_CMD_SET_CAMERA_ZOOM", MAV_CMD_SET_CAMERA_FOCUS: "MAV_CMD_SET_CAMERA_FOCUS", MAV_CMD_SET_STORAGE_USAGE: "MAV_CMD_SET_STORAGE_USAGE", + MAV_CMD_SET_CAMERA_SOURCE: "MAV_CMD_SET_CAMERA_SOURCE", MAV_CMD_JUMP_TAG: "MAV_CMD_JUMP_TAG", MAV_CMD_DO_JUMP_TAG: "MAV_CMD_DO_JUMP_TAG", MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW: "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW", @@ -694,6 +697,7 @@ var values_MAV_CMD = map[string]MAV_CMD{ "MAV_CMD_SET_CAMERA_ZOOM": MAV_CMD_SET_CAMERA_ZOOM, "MAV_CMD_SET_CAMERA_FOCUS": MAV_CMD_SET_CAMERA_FOCUS, "MAV_CMD_SET_STORAGE_USAGE": MAV_CMD_SET_STORAGE_USAGE, + "MAV_CMD_SET_CAMERA_SOURCE": MAV_CMD_SET_CAMERA_SOURCE, "MAV_CMD_JUMP_TAG": MAV_CMD_JUMP_TAG, "MAV_CMD_DO_JUMP_TAG": MAV_CMD_DO_JUMP_TAG, "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW": MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW, diff --git a/pkg/dialects/matrixpilot/enum_camera_source.go b/pkg/dialects/matrixpilot/enum_camera_source.go new file mode 100644 index 000000000..7d9545874 --- /dev/null +++ b/pkg/dialects/matrixpilot/enum_camera_source.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" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/matrixpilot/enum_mav_cmd.go b/pkg/dialects/matrixpilot/enum_mav_cmd.go index 80c09c9fe..28483f83d 100644 --- a/pkg/dialects/matrixpilot/enum_mav_cmd.go +++ b/pkg/dialects/matrixpilot/enum_mav_cmd.go @@ -249,6 +249,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = 533 + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = 534 // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. @@ -491,6 +493,7 @@ var labels_MAV_CMD = map[MAV_CMD]string{ MAV_CMD_SET_CAMERA_ZOOM: "MAV_CMD_SET_CAMERA_ZOOM", MAV_CMD_SET_CAMERA_FOCUS: "MAV_CMD_SET_CAMERA_FOCUS", MAV_CMD_SET_STORAGE_USAGE: "MAV_CMD_SET_STORAGE_USAGE", + MAV_CMD_SET_CAMERA_SOURCE: "MAV_CMD_SET_CAMERA_SOURCE", MAV_CMD_JUMP_TAG: "MAV_CMD_JUMP_TAG", MAV_CMD_DO_JUMP_TAG: "MAV_CMD_DO_JUMP_TAG", MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW: "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW", @@ -656,6 +659,7 @@ var values_MAV_CMD = map[string]MAV_CMD{ "MAV_CMD_SET_CAMERA_ZOOM": MAV_CMD_SET_CAMERA_ZOOM, "MAV_CMD_SET_CAMERA_FOCUS": MAV_CMD_SET_CAMERA_FOCUS, "MAV_CMD_SET_STORAGE_USAGE": MAV_CMD_SET_STORAGE_USAGE, + "MAV_CMD_SET_CAMERA_SOURCE": MAV_CMD_SET_CAMERA_SOURCE, "MAV_CMD_JUMP_TAG": MAV_CMD_JUMP_TAG, "MAV_CMD_DO_JUMP_TAG": MAV_CMD_DO_JUMP_TAG, "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW": MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW, diff --git a/pkg/dialects/paparazzi/enum_camera_source.go b/pkg/dialects/paparazzi/enum_camera_source.go new file mode 100644 index 000000000..c8afd6af5 --- /dev/null +++ b/pkg/dialects/paparazzi/enum_camera_source.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" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/paparazzi/enum_mav_cmd.go b/pkg/dialects/paparazzi/enum_mav_cmd.go index 5850fbcd0..9dfe48355 100644 --- a/pkg/dialects/paparazzi/enum_mav_cmd.go +++ b/pkg/dialects/paparazzi/enum_mav_cmd.go @@ -248,6 +248,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = common.MAV_CMD_SET_STORAGE_USAGE + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = common.MAV_CMD_SET_CAMERA_SOURCE // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. diff --git a/pkg/dialects/pythonarraytest/enum_camera_source.go b/pkg/dialects/pythonarraytest/enum_camera_source.go new file mode 100644 index 000000000..36778db74 --- /dev/null +++ b/pkg/dialects/pythonarraytest/enum_camera_source.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" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/pythonarraytest/enum_mav_cmd.go b/pkg/dialects/pythonarraytest/enum_mav_cmd.go index 4ca5e8fc0..3414a6649 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_cmd.go +++ b/pkg/dialects/pythonarraytest/enum_mav_cmd.go @@ -248,6 +248,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = common.MAV_CMD_SET_STORAGE_USAGE + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = common.MAV_CMD_SET_CAMERA_SOURCE // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. diff --git a/pkg/dialects/storm32/enum_camera_source.go b/pkg/dialects/storm32/enum_camera_source.go new file mode 100644 index 000000000..a4a605676 --- /dev/null +++ b/pkg/dialects/storm32/enum_camera_source.go @@ -0,0 +1,21 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll,dupl,gocritic +package storm32 + +import ( + "github.com/bluenviron/gomavlib/v2/pkg/dialects/common" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/storm32/enum_mav_cmd.go b/pkg/dialects/storm32/enum_mav_cmd.go index 7db97e06b..b6d865088 100644 --- a/pkg/dialects/storm32/enum_mav_cmd.go +++ b/pkg/dialects/storm32/enum_mav_cmd.go @@ -249,6 +249,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = 533 + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = 534 // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. @@ -558,6 +560,7 @@ var labels_MAV_CMD = map[MAV_CMD]string{ MAV_CMD_SET_CAMERA_ZOOM: "MAV_CMD_SET_CAMERA_ZOOM", MAV_CMD_SET_CAMERA_FOCUS: "MAV_CMD_SET_CAMERA_FOCUS", MAV_CMD_SET_STORAGE_USAGE: "MAV_CMD_SET_STORAGE_USAGE", + MAV_CMD_SET_CAMERA_SOURCE: "MAV_CMD_SET_CAMERA_SOURCE", MAV_CMD_JUMP_TAG: "MAV_CMD_JUMP_TAG", MAV_CMD_DO_JUMP_TAG: "MAV_CMD_DO_JUMP_TAG", MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW: "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW", @@ -756,6 +759,7 @@ var values_MAV_CMD = map[string]MAV_CMD{ "MAV_CMD_SET_CAMERA_ZOOM": MAV_CMD_SET_CAMERA_ZOOM, "MAV_CMD_SET_CAMERA_FOCUS": MAV_CMD_SET_CAMERA_FOCUS, "MAV_CMD_SET_STORAGE_USAGE": MAV_CMD_SET_STORAGE_USAGE, + "MAV_CMD_SET_CAMERA_SOURCE": MAV_CMD_SET_CAMERA_SOURCE, "MAV_CMD_JUMP_TAG": MAV_CMD_JUMP_TAG, "MAV_CMD_DO_JUMP_TAG": MAV_CMD_DO_JUMP_TAG, "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW": MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW, diff --git a/pkg/dialects/ualberta/enum_camera_source.go b/pkg/dialects/ualberta/enum_camera_source.go new file mode 100644 index 000000000..7398ab6f9 --- /dev/null +++ b/pkg/dialects/ualberta/enum_camera_source.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" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/ualberta/enum_mav_cmd.go b/pkg/dialects/ualberta/enum_mav_cmd.go index 2012da253..11d78beca 100644 --- a/pkg/dialects/ualberta/enum_mav_cmd.go +++ b/pkg/dialects/ualberta/enum_mav_cmd.go @@ -248,6 +248,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = common.MAV_CMD_SET_STORAGE_USAGE + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = common.MAV_CMD_SET_CAMERA_SOURCE // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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. diff --git a/pkg/dialects/uavionix/enum_camera_source.go b/pkg/dialects/uavionix/enum_camera_source.go new file mode 100644 index 000000000..3a9dc11d6 --- /dev/null +++ b/pkg/dialects/uavionix/enum_camera_source.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" +) + +// Camera sources for MAV_CMD_SET_CAMERA_SOURCE +type CAMERA_SOURCE = common.CAMERA_SOURCE + +const ( + // Default camera source. + CAMERA_SOURCE_DEFAULT CAMERA_SOURCE = common.CAMERA_SOURCE_DEFAULT + // RGB camera source. + CAMERA_SOURCE_RGB CAMERA_SOURCE = common.CAMERA_SOURCE_RGB + // IR camera source. + CAMERA_SOURCE_IR CAMERA_SOURCE = common.CAMERA_SOURCE_IR + // NDVI camera source. + CAMERA_SOURCE_NDVI CAMERA_SOURCE = common.CAMERA_SOURCE_NDVI +) diff --git a/pkg/dialects/uavionix/enum_mav_cmd.go b/pkg/dialects/uavionix/enum_mav_cmd.go index c1542bbc5..809f17744 100644 --- a/pkg/dialects/uavionix/enum_mav_cmd.go +++ b/pkg/dialects/uavionix/enum_mav_cmd.go @@ -248,6 +248,8 @@ const ( // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. MAV_CMD_SET_STORAGE_USAGE MAV_CMD = common.MAV_CMD_SET_STORAGE_USAGE + // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. + MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = common.MAV_CMD_SET_CAMERA_SOURCE // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 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.