Skip to content

Commit

Permalink
remove carriage return from end of battery_status
Browse files Browse the repository at this point in the history
  • Loading branch information
xingruic authored Jun 1, 2021
1 parent 17a1f4e commit b8da1ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ def tello_control(key, keyboard_controller, gesture_controller):

def tello_battery(tello):
global battery_status
battery_status = tello.get_battery()
try:
battery_status = tello.get_battery()[:-2]
except:
battery_status = -1

# FPS Measurement
cv_fps_calc = CvFpsCalc(buffer_len=10)
Expand Down

0 comments on commit b8da1ef

Please sign in to comment.