common

package
v0.0.0-...-cdffa6e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDroneId

func NewDroneId() int64

Types

type AlertSignalledEvent

type AlertSignalledEvent struct {
	DroneID     int64  `json:"drone_id"`
	FaultCode   int    `json:"fault_code"`
	Description string `json:"description"`
	ReceiveOn   int64  `json:"receive_on"`
}

type PositionChangedEvent

type PositionChangedEvent struct {
	DroneID         int64   `json:"drone_id"`
	Latitude        float32 `json:"latitude"`
	Longitude       float32 `json:"longitude"`
	Altitude        float32 `json:"altitude"`
	CurrentSpeed    float32 `json:"current_speed"`
	HeadingCardinal int     `json:"heading_cardinal"`
	ReceiveOn       int64   `json:"receive_on"`
}

type TelemetryUpdatedEvent

type TelemetryUpdatedEvent struct {
	DroneID          int64 `json:"drone_id"`
	RemainingBattery int   `json:"battery"`
	Uptime           int   `json:"uptime"`
	CoreTemp         int   `json:"core_temp"`
	ReceiveOn        int64 `json:"receive_on"`
}

Jump to

Keyboard shortcuts

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