data

package
v0.0.0-...-dada8fb Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package data Created by Teocci. Author: teocci@yandex.com on 2021-Aug-29

Package data Created by RTT. Author: teocci@yandex.com on 2021-Aug-30

Package data Created by Teocci. Author: teocci@yandex.com on 2021-Aug-29

Index

Constants

View Source
const (
	GEOFile = "GEOdata"
	FCCFile = "FCC"
	RTTFile = "RTT"

	GEOPath = "./tmp/GEOdata.csv"
	FCCPath = "./tmp/FCC.csv"

	GEODatPath = "./tmp/GEOdata.dat"
	FCCDatPath = "./tmp/FCC.dat"

	DestPath  = "./tmp"
	RTTPrefix = "01"
)

Variables

This section is empty.

Functions

func FNV32

func FNV32(s string) uint32

FNV32 hashes using fnv32 algorithm

func FNV32a

func FNV32a(s string) uint32

FNV32a hashes using fnv32a algorithm

func FNV64

func FNV64(s string) uint64

FNV64 hashes using fnv64 algorithm

func FNV64a

func FNV64a(s string) uint64

FNV64a hashes using fnv64a algorithm

func FNV64aS

func FNV64aS(s string) string

func MD5

func MD5(s string) string

MD5 hashes using md5 algorithm

func SHA1

func SHA1(s string) string

SHA1 hashes using sha1 algorithm

func SHA256

func SHA256(s string) string

SHA256 hashes using sha256 algorithm

func SHA512

func SHA512(text string) string

SHA512 hashes using sha512 algorithm

Types

type FCC

type FCC struct {
	FCCTime        float32 `json:"fcc_time" csv:"FCCTime"`
	GPSTime        float32 `json:"gps_time" csv:"GPSTime"`
	Temperature    float32 `json:"temperature" csv:"Temp"`
	BatVoltage     float32 `json:"bat_voltage" csv:"Bat"`
	BatCurrent     float32 `json:"bat_current" csv:"BatCurr"`
	BatPercent     float32 `json:"bat_percent" csv:"BatPercent"`
	BatTemperature float32 `json:"bat_temperature" csv:"BatTemp"`
}

func ParseFCC

func ParseFCC(data []string) *FCC

type GEOData

type GEOData struct {
	FCCTime float32 `json:"fcc_time" csv:"FCCTime"`
	Lat     float32 `json:"lat" csv:"Lat"`
	Long    float32 `json:"long" csv:"Long"`
	Alt     float32 `json:"alt" csv:"Alt"`
	Roll    float32 `json:"roll" csv:"Roll"`
	Pitch   float32 `json:"pitch" csv:"Pitch"`
	Yaw     float32 `json:"yaw" csv:"Yaw"`
}

func ParseGEOData

func ParseGEOData(data []string) *GEOData

type RTT

type RTT struct {
	DroneID         int     `json:"drone_id" csv:"drone_id"`
	FlightSessionID int     `json:"flight_session_id" csv:"flight_session_id"`
	FCCTime         float32 `json:"fcc_time" csv:"FCCTime"`
	Lat             float32 `json:"lat" csv:"lat"`
	Long            float32 `json:"long" csv:"lat"`
	Alt             float32 `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"`
	GPSTime         float32 `json:"modify_date" csv:"modify_date"`
}

func ParseRTT

func ParseRTT(data []string) *RTT

Jump to

Keyboard shortcuts

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