datamgr

package
v0.0.0-...-6bf85cd Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package datamgr Created by RTT. Author: teocci@yandex.com on 2021-Sep-30

Package datamgr Created by RTT. Author: teocci@yandex.com on 2021-Sep-30

Package datamgr Created by RTT. Author: teocci@yandex.com on 2021-Sep-28

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitConf

type InitConf struct {
	Host      string
	Port      int64
	ConnID    int64
	ModuleTag string
	CompanyID int64
	DroneID   int64
	FlightID  int64
	WSHost    string
}

type RTT

type RTT struct {
	Seq            int64     `json:"seq" csv:"seq"`
	DroneID        int64     `json:"drone_id" csv:"drone_id"`
	FlightID       int64     `json:"flight_id" csv:"flight_id"`
	TimeBootMs     uint32    `json:"time_boot_ms" csv:"time_boot_ms"`
	Lat            int32     `json:"lat" csv:"lat"`
	Lon            int32     `json:"lon" csv:"lon"`
	Alt            int32     `json:"alt" csv:"lat"`
	Roll           float32   `json:"roll" csv:"lat"`
	Pitch          float32   `json:"pitch" csv:"lat"`
	Yaw            float32   `json:"yaw" csv:"lat"`
	BatVoltage     float32   `json:"battery_voltage" csv:"battery_voltage"`
	BatCurrent     float32   `json:"battery_current" csv:"battery_current"`
	BatPercent     float32   `json:"battery_percentage" csv:"battery_percentage"`
	BatTemperature float32   `json:"battery_temperature" csv:"battery_temperature"`
	Temperature    float32   `json:"temperature" csv:"temperature"`
	LastUpdate     time.Time `json:"last_update" csv:"last_update"`
}

func ParseRTT

func ParseRTT(data []string) *RTT

type Register

type Register struct {
	CMD       string `json:"cmd"`
	ConnID    int64  `json:"connection_id"`
	WorkerID  int64  `json:"worker_id"`
	ModuleTag string `json:"module_tag"`
	DroneID   int64  `json:"drone_id"`
	Role      string `json:"role"`
}

type UpdateTelemetry

type UpdateTelemetry struct {
	CMD       string `json:"cmd"`
	ToConnID  int64  `json:"to_connection_id"`
	ModuleTag string `json:"module_tag"`
	DroneID   int64  `json:"drone_id"`
	Record    RTT    `json:"record"`
}

Jump to

Keyboard shortcuts

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