Archimonde666 / Challenge-drone-EA

GNU General Public License v3.0
0 stars 1 forks source link

Error handling when the battery is low #38

Open pbag47 opened 2 years ago

pbag47 commented 2 years ago

Using the real Tello, an error occurs when the battery is low to prevent it from taking off. However, this error provides unclear information and it may be tough to identify the problem with the provided description for a newcomer.

A homemade battery check during the UAV connection may solve this problem.

(Make sure that this battery check does not work for the simulator, as the battery can sometimes reach 0% without any consequence on the virtual UAV)

pbag47 commented 2 years ago

In PR #39 , the battery value is displayed in green on the pygame window, if the battery level is below 25%, the display color turns to red.

This does not handle the errors (so I do not close this issue yet), but it highlights a low battery level in the UI screen, which is already a good hint for the user to find the problem.