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 Sep 28, 2023
1 parent fb76b0a commit e53afad
Show file tree
Hide file tree
Showing 26 changed files with 299 additions and 64 deletions.
2 changes: 1 addition & 1 deletion pkg/dialects/all/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
15 changes: 11 additions & 4 deletions pkg/dialects/all/enum_speed_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
2 changes: 1 addition & 1 deletion pkg/dialects/ardupilotmega/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
54 changes: 11 additions & 43 deletions pkg/dialects/ardupilotmega/enum_speed_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion pkg/dialects/asluav/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/asluav/enum_speed_type.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"
)

// 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
)
2 changes: 1 addition & 1 deletion pkg/dialects/avssuas/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/avssuas/enum_speed_type.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"
)

// 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
)
2 changes: 1 addition & 1 deletion pkg/dialects/common/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
64 changes: 64 additions & 0 deletions pkg/dialects/common/enum_speed_type.go
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
}
2 changes: 1 addition & 1 deletion pkg/dialects/cubepilot/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/cubepilot/enum_speed_type.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"
)

// 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
)
2 changes: 1 addition & 1 deletion pkg/dialects/development/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/development/enum_speed_type.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"
)

// 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
)
2 changes: 1 addition & 1 deletion pkg/dialects/matrixpilot/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/matrixpilot/enum_speed_type.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"
)

// 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
)
2 changes: 1 addition & 1 deletion pkg/dialects/paparazzi/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/paparazzi/enum_speed_type.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 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
)
2 changes: 1 addition & 1 deletion pkg/dialects/pythonarraytest/enum_mav_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions pkg/dialects/pythonarraytest/enum_speed_type.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 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
)
Loading

0 comments on commit e53afad

Please sign in to comment.