autotest: update gimbal model to match new messages

This commit is contained in:
Andrew Tridgell 2015-04-06 16:45:51 -07:00
parent 35bac3ab4f
commit ee35c2aa35

View File

@ -239,9 +239,8 @@ class Gimbal3Axis(object):
self.demanded_angular_rate = Vector3(m.demanded_rate_x, self.demanded_angular_rate = Vector3(m.demanded_rate_x,
m.demanded_rate_y, m.demanded_rate_y,
m.demanded_rate_z) m.demanded_rate_z)
self.supplied_gyro_bias = Vector3(m.gyro_bias_x, # no longer supply a bias
m.gyro_bias_y, self.supplied_gyro_bias = Vector3()
m.gyro_bias_z)
self.seen_gimbal_control = True self.seen_gimbal_control = True
if m.get_type() == 'HEARTBEAT' and not self.seen_heartbeat: if m.get_type() == 'HEARTBEAT' and not self.seen_heartbeat:
self.seen_heartbeat = True self.seen_heartbeat = True