model

package
v0.0.0-...-0b7008c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailValue

type DetailValue struct {
	Time                    float64 `json:"time"`
	BatteryLevel            float64 `json:"battery_level"`
	ControllerGpsLongitude  float64 `json:"controller_gps_longitude"`
	ControllerGpsLatitude   float64 `json:"controller_gps_latitude"`
	FlyingState             float64 `json:"flying_state"`
	AlertState              float64 `json:"alert_state"`
	WifiSignal              float64 `json:"wifi_signal"`
	ProductGpsAvailable     bool    `json:"product_gps_available"`
	ProductGpsLongitude     float64 `json:"product_gps_longitude"`
	ProductGpsLatitude      float64 `json:"product_gps_latitude"`
	ProductGpsPositionError float64 `json:"product_gps_position_error"`
	ProductGpsSVNumber      int64   `json:"product_gps_sv_number"`
	SpeedVX                 float64 `json:"speed_vx"`
	SpeedVY                 float64 `json:"speed_vy"`
	SpeedVZ                 float64 `json:"speed_vz"`
	AnglePhi                float64 `json:"angle_phi"`
	AngleTheta              float64 `json:"angle_theta"`
	AnglePsi                float64 `json:"angle_psi"`
	Altitude                float64 `json:"altitude"`
	FlipType                float64 `json:"flip_type"`
	Speed                   float64 `json:"speed"`
}

type PUD

type PUD struct {
	Version               string          `json:"version"`
	SoftwareVersion       string          `json:"software_version"`
	HardwareVersion       string          `json:"hardware_version"`
	Date                  string          `json:"date"`
	ProductId             int64           `json:"product_id"`
	SerialNumber          string          `json:"serial_number"`
	ProductName           string          `json:"product_name"`
	Uuid                  string          `json:"uuid"`
	RunOrigin             int             `json:"run_origin"`
	ControllerModel       string          `json:"controller_model"`
	ControllerApplication string          `json:"controller_application"`
	ProductStyle          interface{}     `json:"product_style"`
	ProductAccessory      interface{}     `json:"product_accessory"`
	GpsAvailable          bool            `json:"gps_available"`
	GpsLatitude           float64         `json:"gps_latitude"`
	GpsLongitude          float64         `json:"gps_longitude"`
	Crash                 int             `json:"crash"`
	Jump                  int             `json:"jump"`
	RunTime               int             `json:"run_time"`
	TotalRunTime          int             `json:"total_run_time"`
	DetailsHeaders        []string        `json:"details_headers"`
	DetailsData           [][]interface{} `json:"details_data"`
}

func Load

func Load(input string) *PUD

func (*PUD) AlertStateAt

func (pud *PUD) AlertStateAt(index int) float64

func (*PUD) AltitudeAt

func (pud *PUD) AltitudeAt(index int) float64

func (*PUD) AnglePhiAt

func (pud *PUD) AnglePhiAt(index int) float64

func (*PUD) AnglePsiAt

func (pud *PUD) AnglePsiAt(index int) float64

func (*PUD) AngleThetaAt

func (pud *PUD) AngleThetaAt(index int) float64

func (*PUD) BatteryLevelAt

func (pud *PUD) BatteryLevelAt(index int) float64

func (*PUD) ControllerGpsLongitudelAt

func (pud *PUD) ControllerGpsLongitudelAt(index int) float64

func (*PUD) Csv

func (p *PUD) Csv() [][]string

func (*PUD) FlipTypeAt

func (pud *PUD) FlipTypeAt(index int) float64

func (*PUD) FlyingStateAt

func (pud *PUD) FlyingStateAt(index int) float64

func (*PUD) IndexForKey

func (pud *PUD) IndexForKey(keySearch string) int

func (*PUD) ProductGpsAvailableAt

func (pud *PUD) ProductGpsAvailableAt(index int) bool

func (*PUD) ProductGpsLatidudeAt

func (pud *PUD) ProductGpsLatidudeAt(index int) float64

func (*PUD) ProductGpsLongitudeAt

func (pud *PUD) ProductGpsLongitudeAt(index int) float64

func (*PUD) ProductGpsPositionErrorAt

func (pud *PUD) ProductGpsPositionErrorAt(index int) float64

func (*PUD) SpeedAt

func (pud *PUD) SpeedAt(index int) float64

func (*PUD) SpeedVxAt

func (pud *PUD) SpeedVxAt(index int) float64

func (*PUD) SpeedVyAt

func (pud *PUD) SpeedVyAt(index int) float64

func (*PUD) SpeedVzAt

func (pud *PUD) SpeedVzAt(index int) float64

func (*PUD) TimeAt

func (pud *PUD) TimeAt(index int) float64

func (*PUD) WifiSignalAt

func (pud *PUD) WifiSignalAt(index int) float64

Jump to

Keyboard shortcuts

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