-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Lines 116 to 117 in 9816fc7
| def DroneHardware(FlightQueue,StatusQueue): | |
| Battery = 100 |
Battery of Drone currently does not decrease during flight and Drone will always follow path exactly, no movement of wind is shown.
Time Interval Battery Drain = ( Distance Moved / Range )*100 * random.random(0.9,1.1)
This means that if the drone moved a Distance equal to half it's range it will have used ~50% of it's battery.
The random section means that it will have some randomness eg due to wind etc
Distance moved could be calculated from AATC_Coordinate.DeltaCoordsToMetres using the last two coordinates.