ardupilot/Tools/LogAnalyzer/tests/TestBalanceTwist.py
Andrew Chapman 36e480483f LogAnalyzer: Initial commit for discussion
A lot of this is still stub code, but far enough along for discussion
and feedback. Some good example tests are TestVibration and TestBrownout

datatypes handled correctly now (previsouly all read as floats), added
flag to skip bad input lines, now prints some general log info (size,
duration, etc), added some basic performance timing,
2014-06-24 15:07:45 +10:00

18 lines
474 B
Python

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"
def run(self, logdata):
self.result = TestResult()
self.result.status = TestResult.StatusType.PASS
if logdata.vehicleType == "ArduPlane":
self.result.status = TestResult.StatusType.NA
# TODO: implement copter test for unbalanced or twisted copter frame