-
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
Sep 28, 2023
1 parent
fb76b0a
commit e53afad
Showing
26 changed files
with
299 additions
and
64 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
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
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
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" | ||
) | ||
|
||
// 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 | ||
) |
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" | ||
) | ||
|
||
// 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 | ||
) |
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,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 | ||
} |
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" | ||
) | ||
|
||
// 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 | ||
) |
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" | ||
) | ||
|
||
// 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 | ||
) |
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" | ||
) | ||
|
||
// 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 | ||
) |
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 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 | ||
) |
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 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 | ||
) |
Oops, something went wrong.