mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Tools: correct math in frsky passthrough test
This commit is contained in:
parent
29d31accf2
commit
d6248ce57a
@ -4120,7 +4120,7 @@ switch value'''
|
|||||||
self.progress(" yaw=%u gpi=%u" % (yaw, gpi.hdg))
|
self.progress(" yaw=%u gpi=%u" % (yaw, gpi.hdg))
|
||||||
self.progress(" xy_vel=%u" % xy_vel)
|
self.progress(" xy_vel=%u" % xy_vel)
|
||||||
self.progress(" z_vel_dm_per_second=%u" % z_vel_dm_per_second)
|
self.progress(" z_vel_dm_per_second=%u" % z_vel_dm_per_second)
|
||||||
if int(round(yaw/10,3)) == int(round(gpi.hdg/100, 3)):
|
if int(round(yaw/10.0)) == int(round(gpi.hdg/100.0)):
|
||||||
self.progress("Yaw match")
|
self.progress("Yaw match")
|
||||||
return True
|
return True
|
||||||
# FIXME: need to be under way to check the velocities, really....
|
# FIXME: need to be under way to check the velocities, really....
|
||||||
|
Loading…
Reference in New Issue
Block a user