mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-24 13:48:49 +08:00
document fields for flight data
This commit is contained in:
parent
dbf33f7f63
commit
eb7e419c49
@ -134,42 +134,45 @@ const (
|
|||||||
VideoBitRate4M VideoBitRate = 5
|
VideoBitRate4M VideoBitRate = 5
|
||||||
)
|
)
|
||||||
|
|
||||||
// FlightData packet returned by the Tello
|
// FlightData packet returned by the Tello.
|
||||||
|
//
|
||||||
|
// The meaning of some fields is not documented. If you learned more, please, contribute.
|
||||||
|
// See https://github.com/hybridgroup/gobot/issues/798.
|
||||||
type FlightData struct {
|
type FlightData struct {
|
||||||
BatteryLow bool
|
BatteryLow bool
|
||||||
BatteryLower bool
|
BatteryLower bool
|
||||||
BatteryPercentage int8
|
BatteryPercentage int8 // How much battery left [in %].
|
||||||
BatteryState bool
|
|
||||||
CameraState int8
|
CameraState int8
|
||||||
DownVisualState bool
|
|
||||||
DroneBatteryLeft int16
|
DroneBatteryLeft int16
|
||||||
DroneFlyTimeLeft int16
|
DroneFlyTimeLeft int16
|
||||||
DroneHover bool
|
DroneHover bool // If the drone is in the air and not moving.
|
||||||
EmOpen bool
|
EmOpen bool
|
||||||
Flying bool
|
Flying bool // If the drone is currently in the air.
|
||||||
OnGround bool
|
OnGround bool // If the drone is currently on the ground.
|
||||||
EastSpeed int16
|
EastSpeed int16 // Movement speed towards East [in cm/s]. Negative if moving west.
|
||||||
ElectricalMachineryState int16
|
ElectricalMachineryState int16
|
||||||
FactoryMode bool
|
FactoryMode bool
|
||||||
FlyMode int8
|
FlyMode int8
|
||||||
FlyTime int16
|
FlyTime int16 // How long since take off [in s/10].
|
||||||
FrontIn bool
|
FrontIn bool
|
||||||
FrontLSC bool
|
FrontLSC bool
|
||||||
FrontOut bool
|
FrontOut bool
|
||||||
GravityState bool
|
GravityState bool
|
||||||
VerticalSpeed int16
|
VerticalSpeed int16 // Movement speed up [in cm/s].
|
||||||
Height int16
|
Height int16 // The height [in decimeters].
|
||||||
ImuCalibrationState int8
|
ImuCalibrationState int8 // The IMU calibration step (when doing IMU calibration).
|
||||||
ImuState bool
|
NorthSpeed int16 // Movement speed towards North [in cm/s]. Negative if moving South.
|
||||||
LightStrength int8
|
|
||||||
NorthSpeed int16
|
|
||||||
OutageRecording bool
|
|
||||||
PowerState bool
|
|
||||||
PressureState bool
|
|
||||||
SmartVideoExitMode int16
|
|
||||||
TemperatureHigh bool
|
|
||||||
ThrowFlyTimer int8
|
ThrowFlyTimer int8
|
||||||
WindState bool
|
|
||||||
|
// Warnings:
|
||||||
|
DownVisualState bool // If the ground is visible by the down camera.
|
||||||
|
BatteryState bool // If there is an issue with battery.
|
||||||
|
ImuState bool // If drone needs IMU (Inertial Measurement Unit) calibration.
|
||||||
|
OutageRecording bool // If there is an issue with video recording.
|
||||||
|
PowerState bool // If there is an issue with power supply.
|
||||||
|
PressureState bool // If there is an issue with air pressure.
|
||||||
|
TemperatureHigh bool // If drone is overheating.
|
||||||
|
WindState bool // If the wind is too strong.
|
||||||
}
|
}
|
||||||
|
|
||||||
// WifiData packet returned by the Tello
|
// WifiData packet returned by the Tello
|
||||||
|
Loading…
x
Reference in New Issue
Block a user