Skip to content

Commit

Permalink
(automatic) update dialects to rev https://github.com/mavlink/mavlink…
Browse files Browse the repository at this point in the history
  • Loading branch information
gomavlib-bot committed Mar 5, 2024
1 parent 78ab8f4 commit d46f2ad
Show file tree
Hide file tree
Showing 26 changed files with 356 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pkg/dialects/all/enum_camera_source.go
Original file line number Diff line number Diff line change
@@ -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
)
4 changes: 4 additions & 0 deletions pkg/dialects/all/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/ardupilotmega/enum_camera_source.go
Original file line number Diff line number Diff line change
@@ -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
)
4 changes: 4 additions & 0 deletions pkg/dialects/ardupilotmega/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/asluav/enum_camera_source.go
Original file line number Diff line number Diff line change
@@ -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
)
4 changes: 4 additions & 0 deletions pkg/dialects/asluav/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/avssuas/enum_camera_source.go
Original file line number Diff line number Diff line change
@@ -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
)
4 changes: 4 additions & 0 deletions pkg/dialects/avssuas/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
62 changes: 62 additions & 0 deletions pkg/dialects/common/enum_camera_source.go
Original file line number Diff line number Diff line change
@@ -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)
}
4 changes: 4 additions & 0 deletions pkg/dialects/common/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/cubepilot/enum_camera_source.go
Original file line number Diff line number Diff line change
@@ -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
)
2 changes: 2 additions & 0 deletions pkg/dialects/cubepilot/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/development/enum_camera_source.go
Original file line number Diff line number Diff line change
@@ -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
)
4 changes: 4 additions & 0 deletions pkg/dialects/development/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/matrixpilot/enum_camera_source.go
Original file line number Diff line number Diff line change
@@ -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
)
Loading

0 comments on commit d46f2ad

Please sign in to comment.