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):
|
|
|
|
self.name = "Balance/Twist"
|
2014-02-26 08:50:55 -04:00
|
|
|
self.enable = False # TEMP
|
2014-01-27 02:38:57 -04:00
|
|
|
|
|
|
|
def run(self, logdata):
|
|
|
|
self.result = TestResult()
|
|
|
|
self.result.status = TestResult.StatusType.PASS
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# TODO: implement copter test for unbalanced or twisted copter frame
|