mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 08:13:56 -04:00
autotest: add test for gyro consistency check
This commit is contained in:
parent
d80449ac13
commit
2475ee0239
@ -9363,6 +9363,18 @@ class AutoTestCopter(AutoTest):
|
|||||||
if self.get_sim_time() - tstart < 8:
|
if self.get_sim_time() - tstart < 8:
|
||||||
raise NotAchievedException("Should take 10 seconds to become armableafter IMU upset")
|
raise NotAchievedException("Should take 10 seconds to become armableafter IMU upset")
|
||||||
|
|
||||||
|
self.start_subsubtest("prearm checks for gyro inconsistency")
|
||||||
|
self.context_push()
|
||||||
|
self.set_parameters({
|
||||||
|
"SIM_GYR1_BIAS_X": math.radians(10),
|
||||||
|
})
|
||||||
|
self.assert_prearm_failure("Gyros inconsistent")
|
||||||
|
self.context_pop()
|
||||||
|
tstart = self.get_sim_time()
|
||||||
|
self.wait_ready_to_arm()
|
||||||
|
if self.get_sim_time() - tstart < 8:
|
||||||
|
raise NotAchievedException("Should take 10 seconds to become armableafter IMU upset")
|
||||||
|
|
||||||
def Sprayer(self):
|
def Sprayer(self):
|
||||||
"""Test sprayer functionality."""
|
"""Test sprayer functionality."""
|
||||||
self.context_push()
|
self.context_push()
|
||||||
|
Loading…
Reference in New Issue
Block a user