mirror of https://github.com/ArduPilot/ardupilot
Tools: Autotest: fix python style
This commit is contained in:
parent
5368c3f9d2
commit
8c5c1bd5fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue