info

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoService_GetFlightInformation_FullMethodName       = "/mavsdk.rpc.info.InfoService/GetFlightInformation"
	InfoService_GetIdentification_FullMethodName          = "/mavsdk.rpc.info.InfoService/GetIdentification"
	InfoService_GetProduct_FullMethodName                 = "/mavsdk.rpc.info.InfoService/GetProduct"
	InfoService_GetVersion_FullMethodName                 = "/mavsdk.rpc.info.InfoService/GetVersion"
	InfoService_GetSpeedFactor_FullMethodName             = "/mavsdk.rpc.info.InfoService/GetSpeedFactor"
	InfoService_SubscribeFlightInformation_FullMethodName = "/mavsdk.rpc.info.InfoService/SubscribeFlightInformation"
)

Variables

View Source
var (
	Version_FlightSoftwareVersionType_name = map[int32]string{
		0: "FLIGHT_SOFTWARE_VERSION_TYPE_UNKNOWN",
		1: "FLIGHT_SOFTWARE_VERSION_TYPE_DEV",
		2: "FLIGHT_SOFTWARE_VERSION_TYPE_ALPHA",
		3: "FLIGHT_SOFTWARE_VERSION_TYPE_BETA",
		4: "FLIGHT_SOFTWARE_VERSION_TYPE_RC",
		5: "FLIGHT_SOFTWARE_VERSION_TYPE_RELEASE",
	}
	Version_FlightSoftwareVersionType_value = map[string]int32{
		"FLIGHT_SOFTWARE_VERSION_TYPE_UNKNOWN": 0,
		"FLIGHT_SOFTWARE_VERSION_TYPE_DEV":     1,
		"FLIGHT_SOFTWARE_VERSION_TYPE_ALPHA":   2,
		"FLIGHT_SOFTWARE_VERSION_TYPE_BETA":    3,
		"FLIGHT_SOFTWARE_VERSION_TYPE_RC":      4,
		"FLIGHT_SOFTWARE_VERSION_TYPE_RELEASE": 5,
	}
)

Enum value maps for Version_FlightSoftwareVersionType.

View Source
var (
	InfoResult_Result_name = map[int32]string{
		0: "RESULT_UNKNOWN",
		1: "RESULT_SUCCESS",
		2: "RESULT_INFORMATION_NOT_RECEIVED_YET",
		3: "RESULT_NO_SYSTEM",
	}
	InfoResult_Result_value = map[string]int32{
		"RESULT_UNKNOWN":                      0,
		"RESULT_SUCCESS":                      1,
		"RESULT_INFORMATION_NOT_RECEIVED_YET": 2,
		"RESULT_NO_SYSTEM":                    3,
	}
)

Enum value maps for InfoResult_Result.

View Source
var InfoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mavsdk.rpc.info.InfoService",
	HandlerType: (*InfoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetFlightInformation",
			Handler:    _InfoService_GetFlightInformation_Handler,
		},
		{
			MethodName: "GetIdentification",
			Handler:    _InfoService_GetIdentification_Handler,
		},
		{
			MethodName: "GetProduct",
			Handler:    _InfoService_GetProduct_Handler,
		},
		{
			MethodName: "GetVersion",
			Handler:    _InfoService_GetVersion_Handler,
		},
		{
			MethodName: "GetSpeedFactor",
			Handler:    _InfoService_GetSpeedFactor_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeFlightInformation",
			Handler:       _InfoService_SubscribeFlightInformation_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "info.proto",
}

InfoService_ServiceDesc is the grpc.ServiceDesc for InfoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInfoServiceServer

func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer)

Types

type FlightInfo

type FlightInfo struct {
	TimeBootMs            uint32 `protobuf:"varint,1,opt,name=time_boot_ms,json=timeBootMs,proto3" json:"time_boot_ms,omitempty"` // Time since system boot
	FlightUid             uint64 `protobuf:"varint,2,opt,name=flight_uid,json=flightUid,proto3" json:"flight_uid,omitempty"`      // Flight counter. Starts from zero, is incremented at every disarm and is never reset (even after reboot)
	DurationSinceArmingMs uint32 ``                                                                                               // Duration since arming in milliseconds
	/* 129-byte string literal not displayed */
	DurationSinceTakeoffMs uint32 `` // Duration since takeoff in milliseconds
	/* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

System flight information.

func (*FlightInfo) Descriptor deprecated

func (*FlightInfo) Descriptor() ([]byte, []int)

Deprecated: Use FlightInfo.ProtoReflect.Descriptor instead.

func (*FlightInfo) GetDurationSinceArmingMs added in v0.0.8

func (x *FlightInfo) GetDurationSinceArmingMs() uint32

func (*FlightInfo) GetDurationSinceTakeoffMs added in v0.0.8

func (x *FlightInfo) GetDurationSinceTakeoffMs() uint32

func (*FlightInfo) GetFlightUid

func (x *FlightInfo) GetFlightUid() uint64

func (*FlightInfo) GetTimeBootMs

func (x *FlightInfo) GetTimeBootMs() uint32

func (*FlightInfo) ProtoMessage

func (*FlightInfo) ProtoMessage()

func (*FlightInfo) ProtoReflect

func (x *FlightInfo) ProtoReflect() protoreflect.Message

func (*FlightInfo) Reset

func (x *FlightInfo) Reset()

func (*FlightInfo) String

func (x *FlightInfo) String() string

type FlightInformationResponse added in v0.0.8

type FlightInformationResponse struct {
	FlightInfo *FlightInfo `protobuf:"bytes,1,opt,name=flight_info,json=flightInfo,proto3" json:"flight_info,omitempty"` // The next flight information
	// contains filtered or unexported fields
}

func (*FlightInformationResponse) Descriptor deprecated added in v0.0.8

func (*FlightInformationResponse) Descriptor() ([]byte, []int)

Deprecated: Use FlightInformationResponse.ProtoReflect.Descriptor instead.

func (*FlightInformationResponse) GetFlightInfo added in v0.0.8

func (x *FlightInformationResponse) GetFlightInfo() *FlightInfo

func (*FlightInformationResponse) ProtoMessage added in v0.0.8

func (*FlightInformationResponse) ProtoMessage()

func (*FlightInformationResponse) ProtoReflect added in v0.0.8

func (*FlightInformationResponse) Reset added in v0.0.8

func (x *FlightInformationResponse) Reset()

func (*FlightInformationResponse) String added in v0.0.8

func (x *FlightInformationResponse) String() string

type GetFlightInformationRequest

type GetFlightInformationRequest struct {
	// contains filtered or unexported fields
}

func (*GetFlightInformationRequest) Descriptor deprecated

func (*GetFlightInformationRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFlightInformationRequest.ProtoReflect.Descriptor instead.

func (*GetFlightInformationRequest) ProtoMessage

func (*GetFlightInformationRequest) ProtoMessage()

func (*GetFlightInformationRequest) ProtoReflect

func (*GetFlightInformationRequest) Reset

func (x *GetFlightInformationRequest) Reset()

func (*GetFlightInformationRequest) String

func (x *GetFlightInformationRequest) String() string

type GetFlightInformationResponse

type GetFlightInformationResponse struct {
	InfoResult *InfoResult `protobuf:"bytes,1,opt,name=info_result,json=infoResult,proto3" json:"info_result,omitempty"`
	FlightInfo *FlightInfo `protobuf:"bytes,2,opt,name=flight_info,json=flightInfo,proto3" json:"flight_info,omitempty"` // Flight information of the system
	// contains filtered or unexported fields
}

func (*GetFlightInformationResponse) Descriptor deprecated

func (*GetFlightInformationResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFlightInformationResponse.ProtoReflect.Descriptor instead.

func (*GetFlightInformationResponse) GetFlightInfo

func (x *GetFlightInformationResponse) GetFlightInfo() *FlightInfo

func (*GetFlightInformationResponse) GetInfoResult

func (x *GetFlightInformationResponse) GetInfoResult() *InfoResult

func (*GetFlightInformationResponse) ProtoMessage

func (*GetFlightInformationResponse) ProtoMessage()

func (*GetFlightInformationResponse) ProtoReflect

func (*GetFlightInformationResponse) Reset

func (x *GetFlightInformationResponse) Reset()

func (*GetFlightInformationResponse) String

type GetIdentificationRequest

type GetIdentificationRequest struct {
	// contains filtered or unexported fields
}

func (*GetIdentificationRequest) Descriptor deprecated

func (*GetIdentificationRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetIdentificationRequest.ProtoReflect.Descriptor instead.

func (*GetIdentificationRequest) ProtoMessage

func (*GetIdentificationRequest) ProtoMessage()

func (*GetIdentificationRequest) ProtoReflect

func (x *GetIdentificationRequest) ProtoReflect() protoreflect.Message

func (*GetIdentificationRequest) Reset

func (x *GetIdentificationRequest) Reset()

func (*GetIdentificationRequest) String

func (x *GetIdentificationRequest) String() string

type GetIdentificationResponse

type GetIdentificationResponse struct {
	InfoResult     *InfoResult     `protobuf:"bytes,1,opt,name=info_result,json=infoResult,proto3" json:"info_result,omitempty"`
	Identification *Identification `protobuf:"bytes,2,opt,name=identification,proto3" json:"identification,omitempty"` // Identification of the system
	// contains filtered or unexported fields
}

func (*GetIdentificationResponse) Descriptor deprecated

func (*GetIdentificationResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetIdentificationResponse.ProtoReflect.Descriptor instead.

func (*GetIdentificationResponse) GetIdentification

func (x *GetIdentificationResponse) GetIdentification() *Identification

func (*GetIdentificationResponse) GetInfoResult

func (x *GetIdentificationResponse) GetInfoResult() *InfoResult

func (*GetIdentificationResponse) ProtoMessage

func (*GetIdentificationResponse) ProtoMessage()

func (*GetIdentificationResponse) ProtoReflect

func (*GetIdentificationResponse) Reset

func (x *GetIdentificationResponse) Reset()

func (*GetIdentificationResponse) String

func (x *GetIdentificationResponse) String() string

type GetProductRequest

type GetProductRequest struct {
	// contains filtered or unexported fields
}

func (*GetProductRequest) Descriptor deprecated

func (*GetProductRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.

func (*GetProductRequest) ProtoMessage

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) ProtoReflect

func (x *GetProductRequest) ProtoReflect() protoreflect.Message

func (*GetProductRequest) Reset

func (x *GetProductRequest) Reset()

func (*GetProductRequest) String

func (x *GetProductRequest) String() string

type GetProductResponse

type GetProductResponse struct {
	InfoResult *InfoResult `protobuf:"bytes,1,opt,name=info_result,json=infoResult,proto3" json:"info_result,omitempty"`
	Product    *Product    `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"` // Product information of the system
	// contains filtered or unexported fields
}

func (*GetProductResponse) Descriptor deprecated

func (*GetProductResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetProductResponse.ProtoReflect.Descriptor instead.

func (*GetProductResponse) GetInfoResult

func (x *GetProductResponse) GetInfoResult() *InfoResult

func (*GetProductResponse) GetProduct

func (x *GetProductResponse) GetProduct() *Product

func (*GetProductResponse) ProtoMessage

func (*GetProductResponse) ProtoMessage()

func (*GetProductResponse) ProtoReflect

func (x *GetProductResponse) ProtoReflect() protoreflect.Message

func (*GetProductResponse) Reset

func (x *GetProductResponse) Reset()

func (*GetProductResponse) String

func (x *GetProductResponse) String() string

type GetSpeedFactorRequest

type GetSpeedFactorRequest struct {
	// contains filtered or unexported fields
}

func (*GetSpeedFactorRequest) Descriptor deprecated

func (*GetSpeedFactorRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSpeedFactorRequest.ProtoReflect.Descriptor instead.

func (*GetSpeedFactorRequest) ProtoMessage

func (*GetSpeedFactorRequest) ProtoMessage()

func (*GetSpeedFactorRequest) ProtoReflect

func (x *GetSpeedFactorRequest) ProtoReflect() protoreflect.Message

func (*GetSpeedFactorRequest) Reset

func (x *GetSpeedFactorRequest) Reset()

func (*GetSpeedFactorRequest) String

func (x *GetSpeedFactorRequest) String() string

type GetSpeedFactorResponse

type GetSpeedFactorResponse struct {
	InfoResult  *InfoResult `protobuf:"bytes,1,opt,name=info_result,json=infoResult,proto3" json:"info_result,omitempty"`
	SpeedFactor float64     `protobuf:"fixed64,2,opt,name=speed_factor,json=speedFactor,proto3" json:"speed_factor,omitempty"` // Speed factor of simulation
	// contains filtered or unexported fields
}

func (*GetSpeedFactorResponse) Descriptor deprecated

func (*GetSpeedFactorResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSpeedFactorResponse.ProtoReflect.Descriptor instead.

func (*GetSpeedFactorResponse) GetInfoResult

func (x *GetSpeedFactorResponse) GetInfoResult() *InfoResult

func (*GetSpeedFactorResponse) GetSpeedFactor

func (x *GetSpeedFactorResponse) GetSpeedFactor() float64

func (*GetSpeedFactorResponse) ProtoMessage

func (*GetSpeedFactorResponse) ProtoMessage()

func (*GetSpeedFactorResponse) ProtoReflect

func (x *GetSpeedFactorResponse) ProtoReflect() protoreflect.Message

func (*GetSpeedFactorResponse) Reset

func (x *GetSpeedFactorResponse) Reset()

func (*GetSpeedFactorResponse) String

func (x *GetSpeedFactorResponse) String() string

type GetVersionRequest

type GetVersionRequest struct {
	// contains filtered or unexported fields
}

func (*GetVersionRequest) Descriptor deprecated

func (*GetVersionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) ProtoReflect

func (x *GetVersionRequest) ProtoReflect() protoreflect.Message

func (*GetVersionRequest) Reset

func (x *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (x *GetVersionRequest) String() string

type GetVersionResponse

type GetVersionResponse struct {
	InfoResult *InfoResult `protobuf:"bytes,1,opt,name=info_result,json=infoResult,proto3" json:"info_result,omitempty"`
	Version    *Version    `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Version information about the system
	// contains filtered or unexported fields
}

func (*GetVersionResponse) Descriptor deprecated

func (*GetVersionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.

func (*GetVersionResponse) GetInfoResult

func (x *GetVersionResponse) GetInfoResult() *InfoResult

func (*GetVersionResponse) GetVersion

func (x *GetVersionResponse) GetVersion() *Version

func (*GetVersionResponse) ProtoMessage

func (*GetVersionResponse) ProtoMessage()

func (*GetVersionResponse) ProtoReflect

func (x *GetVersionResponse) ProtoReflect() protoreflect.Message

func (*GetVersionResponse) Reset

func (x *GetVersionResponse) Reset()

func (*GetVersionResponse) String

func (x *GetVersionResponse) String() string

type Identification

type Identification struct {
	HardwareUid string `protobuf:"bytes,1,opt,name=hardware_uid,json=hardwareUid,proto3" json:"hardware_uid,omitempty"` // UID of the hardware. This refers to uid2 of MAVLink. If the system does not support uid2 yet, this is all zeros.
	LegacyUid   uint64 `protobuf:"varint,2,opt,name=legacy_uid,json=legacyUid,proto3" json:"legacy_uid,omitempty"`      // Legacy UID of the hardware, referred to as uid in MAVLink (formerly exposed during system discovery as UUID).
	// contains filtered or unexported fields
}

System identification.

func (*Identification) Descriptor deprecated

func (*Identification) Descriptor() ([]byte, []int)

Deprecated: Use Identification.ProtoReflect.Descriptor instead.

func (*Identification) GetHardwareUid

func (x *Identification) GetHardwareUid() string

func (*Identification) GetLegacyUid added in v0.0.3

func (x *Identification) GetLegacyUid() uint64

func (*Identification) ProtoMessage

func (*Identification) ProtoMessage()

func (*Identification) ProtoReflect

func (x *Identification) ProtoReflect() protoreflect.Message

func (*Identification) Reset

func (x *Identification) Reset()

func (*Identification) String

func (x *Identification) String() string

type InfoResult

type InfoResult struct {
	Result    InfoResult_Result `protobuf:"varint,1,opt,name=result,proto3,enum=mavsdk.rpc.info.InfoResult_Result" json:"result,omitempty"` // Result enum value
	ResultStr string            `protobuf:"bytes,2,opt,name=result_str,json=resultStr,proto3" json:"result_str,omitempty"`                  // Human-readable English string describing the result
	// contains filtered or unexported fields
}

Result type.

func (*InfoResult) Descriptor deprecated

func (*InfoResult) Descriptor() ([]byte, []int)

Deprecated: Use InfoResult.ProtoReflect.Descriptor instead.

func (*InfoResult) GetResult

func (x *InfoResult) GetResult() InfoResult_Result

func (*InfoResult) GetResultStr

func (x *InfoResult) GetResultStr() string

func (*InfoResult) ProtoMessage

func (*InfoResult) ProtoMessage()

func (*InfoResult) ProtoReflect

func (x *InfoResult) ProtoReflect() protoreflect.Message

func (*InfoResult) Reset

func (x *InfoResult) Reset()

func (*InfoResult) String

func (x *InfoResult) String() string

type InfoResult_Result

type InfoResult_Result int32

Possible results returned for info requests.

const (
	InfoResult_RESULT_UNKNOWN                      InfoResult_Result = 0 // Unknown result
	InfoResult_RESULT_SUCCESS                      InfoResult_Result = 1 // Request succeeded
	InfoResult_RESULT_INFORMATION_NOT_RECEIVED_YET InfoResult_Result = 2 // Information has not been received yet
	InfoResult_RESULT_NO_SYSTEM                    InfoResult_Result = 3 // No system is connected
)

func (InfoResult_Result) Descriptor

func (InfoResult_Result) Enum

func (InfoResult_Result) EnumDescriptor deprecated

func (InfoResult_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use InfoResult_Result.Descriptor instead.

func (InfoResult_Result) Number

func (InfoResult_Result) String

func (x InfoResult_Result) String() string

func (InfoResult_Result) Type

type InfoServiceClient

type InfoServiceClient interface {
	// Get flight information of the system.
	GetFlightInformation(ctx context.Context, in *GetFlightInformationRequest, opts ...grpc.CallOption) (*GetFlightInformationResponse, error)
	// Get the identification of the system.
	GetIdentification(ctx context.Context, in *GetIdentificationRequest, opts ...grpc.CallOption) (*GetIdentificationResponse, error)
	// Get product information of the system.
	GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*GetProductResponse, error)
	// Get the version information of the system.
	GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error)
	// Get the speed factor of a simulation (with lockstep a simulation can run faster or slower than realtime).
	GetSpeedFactor(ctx context.Context, in *GetSpeedFactorRequest, opts ...grpc.CallOption) (*GetSpeedFactorResponse, error)
	// Subscribe to 'flight information' updates.
	SubscribeFlightInformation(ctx context.Context, in *SubscribeFlightInformationRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[FlightInformationResponse], error)
}

InfoServiceClient is the client API for InfoService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Provide information about the hardware and/or software of a system.

type InfoServiceServer

type InfoServiceServer interface {
	// Get flight information of the system.
	GetFlightInformation(context.Context, *GetFlightInformationRequest) (*GetFlightInformationResponse, error)
	// Get the identification of the system.
	GetIdentification(context.Context, *GetIdentificationRequest) (*GetIdentificationResponse, error)
	// Get product information of the system.
	GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
	// Get the version information of the system.
	GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)
	// Get the speed factor of a simulation (with lockstep a simulation can run faster or slower than realtime).
	GetSpeedFactor(context.Context, *GetSpeedFactorRequest) (*GetSpeedFactorResponse, error)
	// Subscribe to 'flight information' updates.
	SubscribeFlightInformation(*SubscribeFlightInformationRequest, grpc.ServerStreamingServer[FlightInformationResponse]) error
	// contains filtered or unexported methods
}

InfoServiceServer is the server API for InfoService service. All implementations must embed UnimplementedInfoServiceServer for forward compatibility.

Provide information about the hardware and/or software of a system.

type InfoService_SubscribeFlightInformationClient added in v0.0.8

type InfoService_SubscribeFlightInformationClient = grpc.ServerStreamingClient[FlightInformationResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type InfoService_SubscribeFlightInformationServer added in v0.0.8

type InfoService_SubscribeFlightInformationServer = grpc.ServerStreamingServer[FlightInformationResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Product

type Product struct {
	VendorId    int32  `protobuf:"varint,1,opt,name=vendor_id,json=vendorId,proto3" json:"vendor_id,omitempty"`         // ID of the board vendor
	VendorName  string `protobuf:"bytes,2,opt,name=vendor_name,json=vendorName,proto3" json:"vendor_name,omitempty"`    // Name of the vendor
	ProductId   int32  `protobuf:"varint,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`      // ID of the product
	ProductName string `protobuf:"bytes,4,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` // Name of the product
	// contains filtered or unexported fields
}

System product information.

func (*Product) Descriptor deprecated

func (*Product) Descriptor() ([]byte, []int)

Deprecated: Use Product.ProtoReflect.Descriptor instead.

func (*Product) GetProductId

func (x *Product) GetProductId() int32

func (*Product) GetProductName

func (x *Product) GetProductName() string

func (*Product) GetVendorId

func (x *Product) GetVendorId() int32

func (*Product) GetVendorName

func (x *Product) GetVendorName() string

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

func (x *Product) ProtoReflect() protoreflect.Message

func (*Product) Reset

func (x *Product) Reset()

func (*Product) String

func (x *Product) String() string

type ServiceImpl

type ServiceImpl struct {
	Client InfoServiceClient
}

func (*ServiceImpl) FlightInformation added in v0.0.8

func (a *ServiceImpl) FlightInformation(ctx context.Context) (<-chan *FlightInfo, error)

func (*ServiceImpl) GetFlightInformation

func (s *ServiceImpl) GetFlightInformation(ctx context.Context) (*GetFlightInformationResponse, error)

func (*ServiceImpl) GetIdentification

func (s *ServiceImpl) GetIdentification(ctx context.Context) (*GetIdentificationResponse, error)

func (*ServiceImpl) GetProduct

func (s *ServiceImpl) GetProduct(ctx context.Context) (*GetProductResponse, error)

func (*ServiceImpl) GetSpeedFactor

func (s *ServiceImpl) GetSpeedFactor(ctx context.Context) (*GetSpeedFactorResponse, error)

func (*ServiceImpl) GetVersion

func (s *ServiceImpl) GetVersion(ctx context.Context) (*GetVersionResponse, error)

type SubscribeFlightInformationRequest added in v0.0.8

type SubscribeFlightInformationRequest struct {
	// contains filtered or unexported fields
}

func (*SubscribeFlightInformationRequest) Descriptor deprecated added in v0.0.8

func (*SubscribeFlightInformationRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeFlightInformationRequest.ProtoReflect.Descriptor instead.

func (*SubscribeFlightInformationRequest) ProtoMessage added in v0.0.8

func (*SubscribeFlightInformationRequest) ProtoMessage()

func (*SubscribeFlightInformationRequest) ProtoReflect added in v0.0.8

func (*SubscribeFlightInformationRequest) Reset added in v0.0.8

func (*SubscribeFlightInformationRequest) String added in v0.0.8

type UnimplementedInfoServiceServer

type UnimplementedInfoServiceServer struct{}

UnimplementedInfoServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedInfoServiceServer) GetIdentification

func (UnimplementedInfoServiceServer) GetProduct

func (UnimplementedInfoServiceServer) GetSpeedFactor

func (UnimplementedInfoServiceServer) GetVersion

func (UnimplementedInfoServiceServer) SubscribeFlightInformation added in v0.0.8

type UnsafeInfoServiceServer added in v0.0.3

type UnsafeInfoServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeInfoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InfoServiceServer will result in compilation errors.

type Version

type Version struct {
	FlightSwMajor       int32                             `protobuf:"varint,1,opt,name=flight_sw_major,json=flightSwMajor,proto3" json:"flight_sw_major,omitempty"`                     // Flight software major version
	FlightSwMinor       int32                             `protobuf:"varint,2,opt,name=flight_sw_minor,json=flightSwMinor,proto3" json:"flight_sw_minor,omitempty"`                     // Flight software minor version
	FlightSwPatch       int32                             `protobuf:"varint,3,opt,name=flight_sw_patch,json=flightSwPatch,proto3" json:"flight_sw_patch,omitempty"`                     // Flight software patch version
	FlightSwVendorMajor int32                             `protobuf:"varint,4,opt,name=flight_sw_vendor_major,json=flightSwVendorMajor,proto3" json:"flight_sw_vendor_major,omitempty"` // Flight software vendor major version
	FlightSwVendorMinor int32                             `protobuf:"varint,5,opt,name=flight_sw_vendor_minor,json=flightSwVendorMinor,proto3" json:"flight_sw_vendor_minor,omitempty"` // Flight software vendor minor version
	FlightSwVendorPatch int32                             `protobuf:"varint,6,opt,name=flight_sw_vendor_patch,json=flightSwVendorPatch,proto3" json:"flight_sw_vendor_patch,omitempty"` // Flight software vendor patch version
	OsSwMajor           int32                             `protobuf:"varint,7,opt,name=os_sw_major,json=osSwMajor,proto3" json:"os_sw_major,omitempty"`                                 // Operating system software major version
	OsSwMinor           int32                             `protobuf:"varint,8,opt,name=os_sw_minor,json=osSwMinor,proto3" json:"os_sw_minor,omitempty"`                                 // Operating system software minor version
	OsSwPatch           int32                             `protobuf:"varint,9,opt,name=os_sw_patch,json=osSwPatch,proto3" json:"os_sw_patch,omitempty"`                                 // Operating system software patch version
	FlightSwGitHash     string                            `protobuf:"bytes,10,opt,name=flight_sw_git_hash,json=flightSwGitHash,proto3" json:"flight_sw_git_hash,omitempty"`             // Flight software git hash
	OsSwGitHash         string                            `protobuf:"bytes,11,opt,name=os_sw_git_hash,json=osSwGitHash,proto3" json:"os_sw_git_hash,omitempty"`                         // Operating system software git hash
	FlightSwVersionType Version_FlightSoftwareVersionType ``                                                                                                                            // Flight software version type
	/* 179-byte string literal not displayed */
	// contains filtered or unexported fields
}

System version information.

func (*Version) Descriptor deprecated

func (*Version) Descriptor() ([]byte, []int)

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetFlightSwGitHash

func (x *Version) GetFlightSwGitHash() string

func (*Version) GetFlightSwMajor

func (x *Version) GetFlightSwMajor() int32

func (*Version) GetFlightSwMinor

func (x *Version) GetFlightSwMinor() int32

func (*Version) GetFlightSwPatch

func (x *Version) GetFlightSwPatch() int32

func (*Version) GetFlightSwVendorMajor

func (x *Version) GetFlightSwVendorMajor() int32

func (*Version) GetFlightSwVendorMinor

func (x *Version) GetFlightSwVendorMinor() int32

func (*Version) GetFlightSwVendorPatch

func (x *Version) GetFlightSwVendorPatch() int32

func (*Version) GetFlightSwVersionType added in v0.0.6

func (x *Version) GetFlightSwVersionType() Version_FlightSoftwareVersionType

func (*Version) GetOsSwGitHash

func (x *Version) GetOsSwGitHash() string

func (*Version) GetOsSwMajor

func (x *Version) GetOsSwMajor() int32

func (*Version) GetOsSwMinor

func (x *Version) GetOsSwMinor() int32

func (*Version) GetOsSwPatch

func (x *Version) GetOsSwPatch() int32

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

func (x *Version) ProtoReflect() protoreflect.Message

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

type Version_FlightSoftwareVersionType added in v0.0.6

type Version_FlightSoftwareVersionType int32

These values define the type of firmware/flight software release

const (
	Version_FLIGHT_SOFTWARE_VERSION_TYPE_UNKNOWN Version_FlightSoftwareVersionType = 0 // Unknown type
	Version_FLIGHT_SOFTWARE_VERSION_TYPE_DEV     Version_FlightSoftwareVersionType = 1 // Development release
	Version_FLIGHT_SOFTWARE_VERSION_TYPE_ALPHA   Version_FlightSoftwareVersionType = 2 // Alpha release
	Version_FLIGHT_SOFTWARE_VERSION_TYPE_BETA    Version_FlightSoftwareVersionType = 3 // Beta release
	Version_FLIGHT_SOFTWARE_VERSION_TYPE_RC      Version_FlightSoftwareVersionType = 4 // Release candidate
	Version_FLIGHT_SOFTWARE_VERSION_TYPE_RELEASE Version_FlightSoftwareVersionType = 5 // Official stable release
)

func (Version_FlightSoftwareVersionType) Descriptor added in v0.0.6

func (Version_FlightSoftwareVersionType) Enum added in v0.0.6

func (Version_FlightSoftwareVersionType) EnumDescriptor deprecated added in v0.0.6

func (Version_FlightSoftwareVersionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Version_FlightSoftwareVersionType.Descriptor instead.

func (Version_FlightSoftwareVersionType) Number added in v0.0.6

func (Version_FlightSoftwareVersionType) String added in v0.0.6

func (Version_FlightSoftwareVersionType) Type added in v0.0.6

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL