mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 07:07:58 +00:00
drone: Fix client
This commit is contained in:
@@ -765,8 +765,8 @@ class Telemetry:
|
||||
def get_start_position(self):
|
||||
try:
|
||||
x, y, z = copter.animation.get_start_frame('fly').get_pos()
|
||||
except ValueError:
|
||||
return [float('nan'),float('nan'),float('nan'),float('nan'),'error: no start pos in animation',float('nan')]
|
||||
except (ValueError, AttributeError):
|
||||
return [float('nan'),float('nan'),float('nan'),float('nan'),"error: can't get start pos in animation",float('nan')]
|
||||
else:
|
||||
start_delay = copter.animation.start_time
|
||||
yaw = copter.animation.get_start_frame('fly').yaw
|
||||
|
||||
Reference in New Issue
Block a user