Documentation ¶
Overview ¶
Package model Created by RTT. Author: teocci@yandex.com on 2021-Nov-11
Package model Created by RTT. Author: teocci@yandex.com on 2021-Aug-30
Package model Created by RTT. Author: teocci@yandex.com on 2021-Oct-19
Package model Created by RTT. Author: teocci@yandex.com on 2021-Sep-01
Package model Created by RTT. Author: teocci@yandex.com on 2021-Sep-01
Package model Created by RTT. Author: teocci@yandex.com on 2021-Oct-22
Index ¶
Constants ¶
View Source
const ( FlightStatusUnknown SessionStatus = 0 FlightStatusGround = 1 FlightStatusAirborne = 2 FlightStatusOnMission = 4 FlightStatusMissionCompleted = 8 FlightStatusBackingHome = 16 FlightStatusCreated = 256 FlightStatusActive = 512 FlightStatusCompleted = 1024 FlightStatusProcessed = 2048 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Company ¶
type Drone ¶
type Drone struct { ID int64 `json:"id" csv:"id" pg:"id,pk,unique"` CompanyID int64 `json:"company_id" csv:"company_id" pg:"company_id,notnull"` Code string `json:"code" csv:"code" pg:"code,notnull"` Name string `json:"name" csv:"name" pg:"name"` Model string `json:"model" csv:"model" pg:"model"` TypeInfo string `json:"type_info" csv:"type_info" pg:"type_info"` Size string `json:"size" csv:"size" pg:"size"` EngineUnit string `json:"engine_unit" csv:"engine_unit" pg:"engine_unit"` MaxTakeOffWeight string `json:"max_take_off_weight" csv:"max_take_off_weight" pg:"max_take_off_weight"` OperatingRange string `json:"operating_range" csv:"operating_range" pg:"operating_range"` MaxOperatingTime string `json:"max_operating_time" csv:"max_operating_time" pg:"max_operating_time"` Restrictions string `json:"restrictions" csv:"restrictions" pg:"restrictions"` Description string `json:"description" csv:"description" pg:"description"` TaskInfo string `json:"task_info" csv:"task_info" pg:"task_info"` Task int `json:"task" csv:"task" pg:"task"` Autopilot int `json:"autopilot" csv:"autopilot" pg:"autopilot"` Type int `json:"type" csv:"type" pg:"type"` BaseMode int `json:"base_mode" csv:"base_mode" pg:"base_mode"` LastUpdate time.Time `json:"last_update" csv:"last_update" pg:"last_update"` }
type Flight ¶
type Flight struct { ID int64 `json:"id" csv:"id" pg:"id,pk,unique"` DroneID int64 `json:"drone_id" csv:"drone_id" pg:"drone_id"` Hash string `json:"hash" csv:"hash" pg:"hash,unique,notnull"` Mission string `json:"mission" csv:"mission" pg:"mission,unique,notnull"` MissionInfo string `json:"mission_info" csv:"mission_info" pg:"mission_info"` MissionType string `json:"mission_type" csv:"mission_type" pg:"mission_type"` Length int64 `json:"length" csv:"length" pg:"length"` Duration int64 `json:"duration" csv:"duration" pg:"duration"` Distance float32 `json:"distance" csv:"distance" pg:"distance"` Status int `json:"status" csv:"status" pg:"status"` Date time.Time `json:"date" csv:"date" pg:"date"` LastUpdate time.Time `json:"last_update" csv:"last_update" pg:"last_update"` }
type FlightRecord ¶
type FlightRecord struct { ID int64 `json:"id" csv:"id" pg:"id,pk,unique"` DroneID int64 `json:"drone_id" csv:"drone_id" pg:"drone_id"` FlightID int64 `json:"flight_id" pg:"flight_id" pg:"flight_id"` Sequence int64 `json:"sequence" csv:"seq" pg:"sequence"` Duration int64 `json:"duration" csv:"duration" pg:"duration"` Distance float32 `json:"distance" csv:"distance" pg:"distance"` Speed float32 `json:"speed" csv:"speed" pg:"speed"` Latitude float32 `json:"latitude" csv:"lat" pg:"latitude"` Longitude float32 `json:"longitude" csv:"long" pg:"longitude"` Altitude float32 `json:"altitude" csv:"alt" pg:"altitude"` Roll float32 `json:"roll" csv:"roll" pg:"roll"` Pitch float32 `json:"pitch" csv:"pitch" pg:"pitch"` Yaw float32 `json:"yaw" csv:"yaw" pg:"yaw"` BatVoltage float32 `json:"battery_voltage" csv:"battery_voltage" pg:"battery_voltage"` BatCurrent float32 `json:"battery_current" csv:"battery_current" pg:"battery_current"` BatPercent float32 `json:"battery_percentage" csv:"battery_percentage" pg:"battery_percentage"` BatTemperature float32 `json:"battery_temperature" csv:"battery_temperature" pg:"battery_temperature"` Temperature float32 `json:"temperature" csv:"temperature" pg:"temperature"` GPSStatus float32 `json:"gps_status" csv:"gps_status" pg:"gps_status"` DroneStatus float32 `json:"drone_status" csv:"drone_status" pg:"drone_status"` LastUpdate time.Time `json:"last_update" csv:"last_update" pg:"last_update"` }
func (*FlightRecord) InsertWithCheck ¶
func (fsr *FlightRecord) InsertWithCheck(db *gopg.DB) bool
func (*FlightRecord) Parse ¶
func (fsr *FlightRecord) Parse(rtt datamgr.RTT)
type SessionStatus ¶
type SessionStatus int
type Video ¶
type Video struct { ID int64 `json:"id" csv:"id" pg:"id,pk,unique"` FlightID int64 `json:"flight_id" csv:"flight_id" pg:"flight_id,notnull"` Name string `json:"name" csv:"name" pg:"name,unique,notnull"` Path string `json:"path" csv:"path" pg:"path,unique,notnull"` Status int `json:"status" csv:"status" pg:"status"` LastUpdate time.Time `json:"last_update" csv:"last_update" pg:"last_update"` }
Click to show internal directories.
Click to hide internal directories.