Tools: Autotest: fix python style

This commit is contained in:
Willian Galvani 2022-05-25 14:14:00 -03:00
parent 5368c3f9d2
commit 8c5c1bd5fc
1 changed files with 9 additions and 8 deletions

View File

@ -111,14 +111,15 @@ class AutoTestSub(AutoTest):
"""
angles in eulers
"""
msg = self.mav.mav.set_attitude_target_send(
0,
0, 0,
1<<6, #
mavextra.euler_to_quat([math.radians(roll), math.radians(pitch), math.radians(yaw)]),
0, #roll rate
0, #pitch rate
0, 0) # yaw rate, thrust
self.mav.mav.set_attitude_target_send(
0,
0, 0,
1 << 6,
mavextra.euler_to_quat([math.radians(roll), math.radians(pitch), math.radians(yaw)]),
0, # roll rate
0, # pitch rate
0, 0 # yaw rate, thrust
)
def test_alt_hold(self):
"""Test ALT_HOLD mode