-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(automatic) update dialects to rev https://github.com/mavlink/mavlink…
- Loading branch information
gomavlib-bot
committed
Mar 5, 2024
1 parent
78ab8f4
commit d46f2ad
Showing
26 changed files
with
356 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
Oops, something went wrong.