Commit Graph

59 Commits

Author SHA1 Message Date
Randy Mackay d5df8312ad Tools: LogAnalyzer updated to use FLOW_TYPE 2019-04-08 11:26:59 +09:00
Peter Barker 29042c95eb Tools: LogAnalyzer: understand more fields are allowed to have floats in 2018-12-25 00:27:06 +11:00
Peter Barker a8fa17e7fd Tools: LogAnalyzer: exempt CTUN.DSAlt from NaN check 2018-11-29 08:35:39 +11:00
Peter Barker 3dc6c34465 Tools: LogAnalyzer: fix various Tests for newer-style logs
Tools: LogAnalyzer: don't continue if we fail to set vehicle type from MSG

Tools: LogAnalyzer: cope with renamed CTUN.BarAlt attribute

Tools: LogAnalyzer: cope with renamed CTUN.BarAlt attribute

Tools: LogAnalyzer: cope with missing THR_MIN parameter
2017-12-02 09:26:09 +11:00
Peter Barker 7257fb6284 Tools: LogAnalyzer: correct join() in GPSGlitch test 2017-12-01 10:30:56 +11:00
Peter Barker 6bd5ac78f5 Tools: LogAnalyzer: fix string-method-on-int bug for unknown modes 2017-09-30 09:19:17 +10:00
cclauss c6aaa12e94 Tools: LogAnalyzer: Fix undefined name VehicleType
Tools: TestAutotune.py: Fix undefined name VehicleType

__VehicleType__ is used on line 58 but is never defined or imported.

Tools: TestPerformance.py: Fix undefined name VehicleType

__VehicleType__ is used on line 19 but is never defined or imported.

Tools: TestParams.py: Fix undefine name VehicleType

__VehicleType__ is used on line 21 but is never defined or imported.

Tools: TestThrust.py: Fix undefine name VehicleType

__VehicleType__ is used on line 19 but is never defined or imported.

Tools: TestVibration.py: Fix undefined name VehicleType

__VehicleType__ is used on line 21 but is never defined or imported.
2017-09-30 09:19:01 +10:00
cclauss d91a3250a6 Tools: TestParams.py: Fix undefine name VehicleType
__VehicleType__ is used on lines 47, 53, and 56 but is never defined or imported.  This could result in a NameError runtime exception.
2017-09-29 10:31:30 +10:00
Peter Barker a629bb7f2f Tools: LogAnalyzer: TestGPSGlitch: flake8 compliance 2017-09-28 11:44:54 +10:00
Peter Barker 7a077b5fa1 Tools: LogAnalyzer: TestGPSGlitch: tabs to spaces 2017-09-28 11:43:30 +10:00
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