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 Dec 15, 2023
1 parent c3da804 commit 7f99cbe
Show file tree
Hide file tree
Showing 36 changed files with 578 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/dialects/all/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ var dial = &dialect.Dialect{
// csairlink
&MessageAirlinkAuth{},
&MessageAirlinkAuthResponse{},
&MessageAirlinkEyeGsHolePushRequest{},
&MessageAirlinkEyeGsHolePushResponse{},
&MessageAirlinkEyeHp{},
&MessageAirlinkEyeTurnInit{},
// ardupilotmega
&MessageSensorOffsets{},
&MessageSetMagOffsets{},
Expand Down
14 changes: 14 additions & 0 deletions pkg/dialects/all/enum_airlink_eye_gs_hole_push_resp_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package all

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

type AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE

const (
AIRLINK_HPR_PARTNER_NOT_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_HPR_PARTNER_NOT_READY
AIRLINK_HPR_PARTNER_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_HPR_PARTNER_READY
)
14 changes: 14 additions & 0 deletions pkg/dialects/all/enum_airlink_eye_hole_push_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package all

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

type AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_EYE_HOLE_PUSH_TYPE

const (
AIRLINK_HP_NOT_PENETRATED AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_HP_NOT_PENETRATED
AIRLINK_HP_BROKEN AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_HP_BROKEN
)
14 changes: 14 additions & 0 deletions pkg/dialects/all/enum_airlink_eye_ip_version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package all

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

type AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_EYE_IP_VERSION

const (
AIRLINK_IP_V4 AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_IP_V4
AIRLINK_IP_V6 AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_IP_V6
)
15 changes: 15 additions & 0 deletions pkg/dialects/all/enum_airlink_eye_turn_init_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package all

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

type AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_EYE_TURN_INIT_TYPE

const (
AIRLINK_TURN_INIT_START AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_START
AIRLINK_TURN_INIT_OK AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_OK
AIRLINK_TURN_INIT_BAD AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_BAD
)
10 changes: 10 additions & 0 deletions pkg/dialects/all/message_airlink_eye_gs_hole_push_request.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll
package all

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

// Request to hole punching
type MessageAirlinkEyeGsHolePushRequest = csairlink.MessageAirlinkEyeGsHolePushRequest
10 changes: 10 additions & 0 deletions pkg/dialects/all/message_airlink_eye_gs_hole_push_response.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll
package all

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

// Response information about the connected device
type MessageAirlinkEyeGsHolePushResponse = csairlink.MessageAirlinkEyeGsHolePushResponse
10 changes: 10 additions & 0 deletions pkg/dialects/all/message_airlink_eye_hp.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll
package all

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

// A package with information about the hole punching status. It is used for constant sending to avoid NAT closing timeout.
type MessageAirlinkEyeHp = csairlink.MessageAirlinkEyeHp
10 changes: 10 additions & 0 deletions pkg/dialects/all/message_airlink_eye_turn_init.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll
package all

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

// Initializing the TURN protocol
type MessageAirlinkEyeTurnInit = csairlink.MessageAirlinkEyeTurnInit
4 changes: 4 additions & 0 deletions pkg/dialects/ardupilotmega/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ var dial = &dialect.Dialect{
// csairlink
&MessageAirlinkAuth{},
&MessageAirlinkAuthResponse{},
&MessageAirlinkEyeGsHolePushRequest{},
&MessageAirlinkEyeGsHolePushResponse{},
&MessageAirlinkEyeHp{},
&MessageAirlinkEyeTurnInit{},
// ardupilotmega
&MessageSensorOffsets{},
&MessageSetMagOffsets{},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package ardupilotmega

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

type AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE

const (
AIRLINK_HPR_PARTNER_NOT_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_HPR_PARTNER_NOT_READY
AIRLINK_HPR_PARTNER_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = csairlink.AIRLINK_HPR_PARTNER_READY
)
14 changes: 14 additions & 0 deletions pkg/dialects/ardupilotmega/enum_airlink_eye_hole_push_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package ardupilotmega

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

type AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_EYE_HOLE_PUSH_TYPE

const (
AIRLINK_HP_NOT_PENETRATED AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_HP_NOT_PENETRATED
AIRLINK_HP_BROKEN AIRLINK_EYE_HOLE_PUSH_TYPE = csairlink.AIRLINK_HP_BROKEN
)
14 changes: 14 additions & 0 deletions pkg/dialects/ardupilotmega/enum_airlink_eye_ip_version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package ardupilotmega

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

type AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_EYE_IP_VERSION

const (
AIRLINK_IP_V4 AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_IP_V4
AIRLINK_IP_V6 AIRLINK_EYE_IP_VERSION = csairlink.AIRLINK_IP_V6
)
15 changes: 15 additions & 0 deletions pkg/dialects/ardupilotmega/enum_airlink_eye_turn_init_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package ardupilotmega

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

type AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_EYE_TURN_INIT_TYPE

const (
AIRLINK_TURN_INIT_START AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_START
AIRLINK_TURN_INIT_OK AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_OK
AIRLINK_TURN_INIT_BAD AIRLINK_EYE_TURN_INIT_TYPE = csairlink.AIRLINK_TURN_INIT_BAD
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll
package ardupilotmega

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

// Request to hole punching
type MessageAirlinkEyeGsHolePushRequest = csairlink.MessageAirlinkEyeGsHolePushRequest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll
package ardupilotmega

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

// Response information about the connected device
type MessageAirlinkEyeGsHolePushResponse = csairlink.MessageAirlinkEyeGsHolePushResponse
10 changes: 10 additions & 0 deletions pkg/dialects/ardupilotmega/message_airlink_eye_hp.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll
package ardupilotmega

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

// A package with information about the hole punching status. It is used for constant sending to avoid NAT closing timeout.
type MessageAirlinkEyeHp = csairlink.MessageAirlinkEyeHp
10 changes: 10 additions & 0 deletions pkg/dialects/ardupilotmega/message_airlink_eye_turn_init.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll
package ardupilotmega

import (
"github.com/bluenviron/gomavlib/v2/pkg/dialects/csairlink"
)

// Initializing the TURN protocol
type MessageAirlinkEyeTurnInit = csairlink.MessageAirlinkEyeTurnInit
4 changes: 4 additions & 0 deletions pkg/dialects/csairlink/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ var dial = &dialect.Dialect{
// csairlink
&MessageAirlinkAuth{},
&MessageAirlinkAuthResponse{},
&MessageAirlinkEyeGsHolePushRequest{},
&MessageAirlinkEyeGsHolePushResponse{},
&MessageAirlinkEyeHp{},
&MessageAirlinkEyeTurnInit{},
},
}
51 changes: 51 additions & 0 deletions pkg/dialects/csairlink/enum_airlink_eye_gs_hole_push_resp_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package csairlink

import (
"fmt"
"strconv"
)

type AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE uint32

const (
AIRLINK_HPR_PARTNER_NOT_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = 0
AIRLINK_HPR_PARTNER_READY AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = 1
)

var labels_AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = map[AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE]string{
AIRLINK_HPR_PARTNER_NOT_READY: "AIRLINK_HPR_PARTNER_NOT_READY",
AIRLINK_HPR_PARTNER_READY: "AIRLINK_HPR_PARTNER_READY",
}

var values_AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE = map[string]AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE{
"AIRLINK_HPR_PARTNER_NOT_READY": AIRLINK_HPR_PARTNER_NOT_READY,
"AIRLINK_HPR_PARTNER_READY": AIRLINK_HPR_PARTNER_READY,
}

// MarshalText implements the encoding.TextMarshaler interface.
func (e AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE) MarshalText() ([]byte, error) {
if name, ok := labels_AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE[e]; ok {
return []byte(name), nil
}
return []byte(strconv.Itoa(int(e))), nil
}

// UnmarshalText implements the encoding.TextUnmarshaler interface.
func (e *AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE) UnmarshalText(text []byte) error {
if value, ok := values_AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE[string(text)]; ok {
*e = value
} else if value, err := strconv.Atoi(string(text)); err == nil {
*e = AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE(value)
} else {
return fmt.Errorf("invalid label '%s'", text)
}
return nil
}

// String implements the fmt.Stringer interface.
func (e AIRLINK_EYE_GS_HOLE_PUSH_RESP_TYPE) String() string {
val, _ := e.MarshalText()
return string(val)
}
51 changes: 51 additions & 0 deletions pkg/dialects/csairlink/enum_airlink_eye_hole_push_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package csairlink

import (
"fmt"
"strconv"
)

type AIRLINK_EYE_HOLE_PUSH_TYPE uint32

const (
AIRLINK_HP_NOT_PENETRATED AIRLINK_EYE_HOLE_PUSH_TYPE = 0
AIRLINK_HP_BROKEN AIRLINK_EYE_HOLE_PUSH_TYPE = 1
)

var labels_AIRLINK_EYE_HOLE_PUSH_TYPE = map[AIRLINK_EYE_HOLE_PUSH_TYPE]string{
AIRLINK_HP_NOT_PENETRATED: "AIRLINK_HP_NOT_PENETRATED",
AIRLINK_HP_BROKEN: "AIRLINK_HP_BROKEN",
}

var values_AIRLINK_EYE_HOLE_PUSH_TYPE = map[string]AIRLINK_EYE_HOLE_PUSH_TYPE{
"AIRLINK_HP_NOT_PENETRATED": AIRLINK_HP_NOT_PENETRATED,
"AIRLINK_HP_BROKEN": AIRLINK_HP_BROKEN,
}

// MarshalText implements the encoding.TextMarshaler interface.
func (e AIRLINK_EYE_HOLE_PUSH_TYPE) MarshalText() ([]byte, error) {
if name, ok := labels_AIRLINK_EYE_HOLE_PUSH_TYPE[e]; ok {
return []byte(name), nil
}
return []byte(strconv.Itoa(int(e))), nil
}

// UnmarshalText implements the encoding.TextUnmarshaler interface.
func (e *AIRLINK_EYE_HOLE_PUSH_TYPE) UnmarshalText(text []byte) error {
if value, ok := values_AIRLINK_EYE_HOLE_PUSH_TYPE[string(text)]; ok {
*e = value
} else if value, err := strconv.Atoi(string(text)); err == nil {
*e = AIRLINK_EYE_HOLE_PUSH_TYPE(value)
} else {
return fmt.Errorf("invalid label '%s'", text)
}
return nil
}

// String implements the fmt.Stringer interface.
func (e AIRLINK_EYE_HOLE_PUSH_TYPE) String() string {
val, _ := e.MarshalText()
return string(val)
}
51 changes: 51 additions & 0 deletions pkg/dialects/csairlink/enum_airlink_eye_ip_version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
//autogenerated:yes
//nolint:revive,misspell,govet,lll,dupl,gocritic
package csairlink

import (
"fmt"
"strconv"
)

type AIRLINK_EYE_IP_VERSION uint32

const (
AIRLINK_IP_V4 AIRLINK_EYE_IP_VERSION = 0
AIRLINK_IP_V6 AIRLINK_EYE_IP_VERSION = 1
)

var labels_AIRLINK_EYE_IP_VERSION = map[AIRLINK_EYE_IP_VERSION]string{
AIRLINK_IP_V4: "AIRLINK_IP_V4",
AIRLINK_IP_V6: "AIRLINK_IP_V6",
}

var values_AIRLINK_EYE_IP_VERSION = map[string]AIRLINK_EYE_IP_VERSION{
"AIRLINK_IP_V4": AIRLINK_IP_V4,
"AIRLINK_IP_V6": AIRLINK_IP_V6,
}

// MarshalText implements the encoding.TextMarshaler interface.
func (e AIRLINK_EYE_IP_VERSION) MarshalText() ([]byte, error) {
if name, ok := labels_AIRLINK_EYE_IP_VERSION[e]; ok {
return []byte(name), nil
}
return []byte(strconv.Itoa(int(e))), nil
}

// UnmarshalText implements the encoding.TextUnmarshaler interface.
func (e *AIRLINK_EYE_IP_VERSION) UnmarshalText(text []byte) error {
if value, ok := values_AIRLINK_EYE_IP_VERSION[string(text)]; ok {
*e = value
} else if value, err := strconv.Atoi(string(text)); err == nil {
*e = AIRLINK_EYE_IP_VERSION(value)
} else {
return fmt.Errorf("invalid label '%s'", text)
}
return nil
}

// String implements the fmt.Stringer interface.
func (e AIRLINK_EYE_IP_VERSION) String() string {
val, _ := e.MarshalText()
return string(val)
}
Loading

0 comments on commit 7f99cbe

Please sign in to comment.