Commit Graph

49 Commits

Author SHA1 Message Date
cclauss e5256d0bd5 Tools: TestPitchRollCoupling.py: Change usage of next()
__lit.next()__ is not Python 3 compatible but __next(lit)__ is compatible with both Python 2 and 3.
2017-09-24 12:36:03 +10:00
Peter Barker ac3cb355c4 Tools: LogAnalyzer: fix bugs, handle newer log formats
Tools: LogAnalyzer: avoid fatal error if mag data is all zeros

Tools: LogAnalyzer: correct comparisons against logdata.vehicleType

Tools: LogAnalyzer: handle logs with TimeUS in place of TimeMS

Tools: LogAnalyzer: handle logs with CTUN.ThO in place of CTUN.ThrOut

Tools: LogAnalyzer: correct motor average value
2017-09-24 12:34:23 +10:00
Peter Barker 7f2882f54b Tools: LogAnalyzer: cope with renamed GPS fields 2017-09-11 12:05:12 +10:00
Peter Barker 2c0e2aab15 Tools: LogAnalyzer: derive motor count from frame type MSG 2017-09-11 12:01:24 +10:00
cclauss 0f08207bdb Tools: define reduce() for Python 3
`reduce()` is called on line 55.  Python 3 dropped reduce() as a builtin.  https://docs.python.org/3/whatsnew/3.0.html#builtins encourages the rewriting of reduce() calls as explicit for loops or list comprehensions but I am not confident to try that in this context.
2017-08-28 11:43:39 +10:00
cclauss 13894506f4 from math import sqrt
Make the call match the import
2017-08-25 09:04:15 -07:00
cclauss b26b6f07bd from math import sqrt
sqrt() is called on lines 198, 200, 208.  Without this change, sqrt() is an undefined name.
2017-08-25 09:04:15 -07:00
Peter Barker ebc8dc4afc Tools: LogAnalyzer: fix whitespace 2017-07-22 10:40:22 +10:00
Peter Barker a6fd812051 Tools: LogAnalyzer: use repr in place of deprecated backticks 2017-07-22 09:28:28 +10:00
Peter Barker 44d1c77b0c Tools: LogAnalyzer: use print_function 2017-07-22 09:09:51 +10:00
Peter Barker f5e8facc87 Tools: LogAnalyzer: add NaN check 2017-03-21 09:38:21 +11:00
priseborough f9bf825094 Tools: Add analysis file for optical flow calibration data
Calculate and display recommended values of FLOW_FXSCALE and FLOW_FYSCALE from an optical flow sensor calibration test
Save plots to flow_calibration.pdf file
Save calibration parameters to flow_calibration.param file

Signed-off-by: priseborough <p_riseborough@live.com.au>

Tools: Address optical flow calibration script review comments

Tools: LogAnalyzer: stop executing TestOptFlow on insufficient data
2017-02-08 20:41:36 +11:00
Peter Barker 0168493d8a Tools: correct LogAnalyzer VCC test 2016-11-14 09:18:01 +11:00
Peter Barker 45bc95edeb Tools: LogAnalyzer: handle changed RCOU and parameters in motorbalance 2016-09-08 08:54:50 +10:00
Peter Barker f1641161d7 Tools: LogAnalyzer: correct Vcc test 2016-09-08 08:41:09 +10:00
Peter Barker 82d36520ad LogAnalyzer: fix for 64-bit ints
Also, sqrt must come from math
Also, d indicates a double (a Python float)
2015-10-14 08:50:38 +09:00
Peter Barker ec9be695fb LogAnalyzer: don't die if no arm/disarm eveents 2015-07-10 19:00:22 +10:00
Peter Barker ce558b2b98 LogAnalyzer: cope with TimeUS
See also: 177f61656f
2015-07-10 19:00:22 +10:00
Markus Koetter 789fd06192 LogAnalyzer - Improve Autotune Test
- previously version could report failed autotune sessions as valid and
   valid sessions as failed
2014-10-27 15:55:57 -07:00
Randy Mackay 4aa07d7aef LogAnalyser: rename BalanceTwist to MotorBalance 2014-10-27 13:58:19 +09:00
Randy Mackay 98e9ce3206 LogAnalyser: TestBalanceTwist sanity check of motor values 2014-10-27 13:58:16 +09:00
Jonathan Challinger a62f1f0f48 LogAnalyzer: updated testCompass to match our prearm check 2014-10-27 13:58:15 +09:00
Jonathan Challinger 0955284d7e LogAnalyzer: balance/twist initial commit 2014-10-27 13:58:12 +09:00
Randy Mackay 41d7462eee LogAnalyzer: add POSHOLD to TestPitchRollCoupling 2014-09-29 11:46:02 +09:00
Jonathan Challinger 7c3e614c19 LogAnalyzer: Add IMU Mismatch check 2014-09-24 15:50:23 +09:00
Kevin Hester 5cb242f5a4 LogAnalyzer: Report missing parameters as test failures 2014-08-26 15:36:53 +09:00
Kevin Hester 332ab9bc1b LogAnalyzer: convert tabs to spaces (only) per coding conventions 2014-08-26 15:36:50 +09:00
Aaron Curtis 179d854a26 LogAnalyzer: Update to include the new "format" argument, and fix scoping on two new tests. 2014-07-08 14:13:00 -07:00
Aaron Curtis 9dbfa40afd LogAnalyzer: LogAnalyzer: make all subclasses of Test call their parent __init()__ function when overriding that function. This is the way of Python. 2014-07-08 14:12:56 -07:00
Markus Koetter da178ee3b6 LogAnalyzer: add TestAutotune
- very basic, checks for autotune start/success/fail and provides the
   most recent ATUN/ATDE values
 - very handy in case autotune fails
2014-07-07 18:10:13 -07:00
Markus Koetter 6ce0dbf3b3 LogAnalyzer: TestPitchRollCoupling add mode ""
- "" is a valid alias for AUTOTUNE
2014-07-07 18:09:29 -07:00
Linus Casassa ce0efdb7d2 LogAnalyzer: Adding HYBRID mode to LogAnalyzer. 2014-07-07 17:37:52 -07:00
Andrew Chapman 2f4af05f33 LogAnalyzer: renamed test from "Underpowered" to "Thrust" 2014-06-24 15:07:47 +10:00
Andrew Chapman 4a5e0bbe06 LogAnalyzer: renamed PASS to GOOD in output (and enums)
as per Craig’s request to clarify test output
2014-06-24 15:07:47 +10:00
Andrew Chapman 0fe6c1ee3a LogAnalyzer: fixed XML output glitch in the case of a skipped (NA) test 2014-06-24 15:07:47 +10:00
Andrew Chapman f122b1ba37 LogAnalyzer: added 'import collections', allowed for some AC3.2 logging changes 2014-06-24 15:07:47 +10:00
Andrew Chapman 0f5a89f22e LogAnalyzer: added check for binary log files (can't parse yet) 2014-06-24 15:07:46 +10:00
Andrew Chapman 70c2682c28 LogAnalyzer: detect all zeros in MAG X/Y/Z data 2014-06-24 15:07:46 +10:00
Andrew Chapman 35830f928d LogAnalyzer: added --verbose flag, added test for MAG interference 2014-06-24 15:07:46 +10:00
Andrew Chapman 130a2dcb0b LogAnalyzer: added LogIterator, copter roll/pitch > max lean angle test, 2014-06-24 15:07:46 +10:00
Andrew Chapman 81fcf4bda7 LogAnalyzer: combined statusMessage and extraFeedback 2014-06-24 15:07:46 +10:00
Andrew Chapman 2a406ac699 LogAnalyzer: added GPS glitch detection to GPS test 2014-06-24 15:07:46 +10:00
Andrew Chapman 90f07aae61 LogAnalyzer: added unit test, started moving from dictData to listData
added unit test, started moving from dictData to listData, cancelled
pre-3.0 log reading, separated DataflashLog constructor and read() call
2014-06-24 15:07:46 +10:00
Andrew Chapman c4828e1d3d LogAnalyzer: fixed plane+rover parsing, added test for underpowered copters 2014-06-24 15:07:45 +10:00
Andrew Chapman 301a3bcdaf LogAnalyzer: added test for dupe log data 2014-06-24 15:07:45 +10:00
Andrew Chapman 5aa1e6a2dd LogAnalyzer: changed command flags a little, tidy, started on TestPitchRollCoupling 2014-06-24 15:07:45 +10:00
Andrew Chapman e0ada31872 LogAnalyzer: adding Roberts bad PM performance log 2014-06-24 15:07:45 +10:00
Andrew Chapman 8d691c2a60 LogAnalyzer: added PM slow loop check, first version of xml output 2014-06-24 15:07:45 +10:00
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