Skip to content

Commit

Permalink
autotest: add test showing throttle satuation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed May 21, 2024
1 parent 07c854d commit 3eaa9e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Tools/autotest/arduplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -5340,6 +5340,13 @@ def MinThrottle(self):
self.drain_mav()
self.assert_servo_channel_value(3, servo_min)

def ClimbThrottleSaturation(self):
'''check what happens when throttle is saturated in GUIDED'''
self.set_parameters({
"TECS_CLMB_MAX": 30,
})
self.takeoff(alt=1000, mode='TAKEOFF', timeout=1000)

def tests(self):
'''return list of all tests'''
ret = super(AutoTestPlane, self).tests()
Expand Down Expand Up @@ -5449,6 +5456,7 @@ def tests(self):
self.MAV_CMD_NAV_LOITER_UNLIM,
self.MAV_CMD_NAV_RETURN_TO_LAUNCH,
self.MinThrottle,
self.ClimbThrottleSaturation,
])
return ret

Expand Down

0 comments on commit 3eaa9e3

Please sign in to comment.