Skip to content

Commit

Permalink
document fields for flight data
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium authored and deadprogram committed Oct 3, 2022
1 parent dbf33f7 commit eb7e419
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions platforms/dji/tello/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,42 +134,45 @@ const (
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 {
BatteryLow bool
BatteryLower bool
BatteryPercentage int8
BatteryState bool
BatteryPercentage int8 // How much battery left [in %].
CameraState int8
DownVisualState bool
DroneBatteryLeft int16
DroneFlyTimeLeft int16
DroneHover bool
DroneHover bool // If the drone is in the air and not moving.
EmOpen bool
Flying bool
OnGround bool
EastSpeed int16
Flying bool // If the drone is currently in the air.
OnGround bool // If the drone is currently on the ground.
EastSpeed int16 // Movement speed towards East [in cm/s]. Negative if moving west.
ElectricalMachineryState int16
FactoryMode bool
FlyMode int8
FlyTime int16
FlyTime int16 // How long since take off [in s/10].
FrontIn bool
FrontLSC bool
FrontOut bool
GravityState bool
VerticalSpeed int16
Height int16
ImuCalibrationState int8
ImuState bool
LightStrength int8
NorthSpeed int16
OutageRecording bool
PowerState bool
PressureState bool
SmartVideoExitMode int16
TemperatureHigh bool
VerticalSpeed int16 // Movement speed up [in cm/s].
Height int16 // The height [in decimeters].
ImuCalibrationState int8 // The IMU calibration step (when doing IMU calibration).
NorthSpeed int16 // Movement speed towards North [in cm/s]. Negative if moving South.
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
Expand Down

0 comments on commit eb7e419

Please sign in to comment.