2014-01-27 02:38:57 -04:00
|
|
|
from LogAnalyzer import Test,TestResult
|
|
|
|
import DataflashLog
|
|
|
|
|
|
|
|
|
|
|
|
class TestBalanceTwist(Test):
|
|
|
|
'''test for badly unbalanced copter, including yaw twist'''
|
|
|
|
|
|
|
|
def __init__(self):
|
2014-07-08 17:49:42 -03:00
|
|
|
Test.__init__(self)
|
2014-01-27 02:38:57 -04:00
|
|
|
self.name = "Balance/Twist"
|
|
|
|
|
2014-03-03 13:46:17 -04:00
|
|
|
def run(self, logdata, verbose):
|
2014-01-27 02:38:57 -04:00
|
|
|
self.result = TestResult()
|
2014-06-15 18:35:14 -03:00
|
|
|
self.result.status = TestResult.StatusType.GOOD
|
2014-01-27 02:38:57 -04:00
|
|
|
|
2014-02-26 08:50:55 -04:00
|
|
|
if logdata.vehicleType != "ArduCopter":
|
2014-01-27 02:38:57 -04:00
|
|
|
self.result.status = TestResult.StatusType.NA
|
2014-03-19 20:37:23 -03:00
|
|
|
return
|
2014-01-27 02:38:57 -04:00
|
|
|
|
|
|
|
# TODO: implement copter test for unbalanced or twisted copter frame
|