Tools: correct math in frsky passthrough test

This commit is contained in:
Andy Piper 2020-01-13 17:03:03 +00:00 committed by Peter Barker
parent 29d31accf2
commit d6248ce57a
1 changed files with 1 additions and 1 deletions

View File

@ -4120,7 +4120,7 @@ switch value'''
self.progress(" yaw=%u gpi=%u" % (yaw, gpi.hdg))
self.progress(" xy_vel=%u" % xy_vel)
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")
return True
# FIXME: need to be under way to check the velocities, really....