Skip to content

No battery drain and other issues in flight #9

@Scratchcat1

Description

@Scratchcat1

AATC/AATC_Drone_Logic.py

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions