Commit Graph

86 Commits

Author SHA1 Message Date
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 cb56cf38d0 Tools: LogAnalyzer: remove vehicle-type-is-first-MSG-assumption 2017-07-22 09:15:59 +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 043b7598d1 Tools: correct error path for corrupt logs 2017-02-07 11:37:38 +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 f42df1bc54 Tools: LogAnalyzer: handle MODE lines appearing before vehicle MSGs 2016-09-08 08:41:09 +10:00
Peter Barker 214bca8b30 Tools: LogAnalyzer: correct CTUN test 2016-09-08 08:41:09 +10:00
Peter Barker f1641161d7 Tools: LogAnalyzer: correct Vcc test 2016-09-08 08:41:09 +10:00
Ricardo de Almeida Gonzaga 1062aed91e Tools: Fix typos 2016-05-13 19:20:07 -03:00
Peter Barker e357be3d85 LogAnalyzer: adjust for change in vehicle definition MSG string
We changed from ArduCopter to APM:Copter, breaking parts of the LogAnalyzer

This change has LogAnalyzer canonicalise its output to Ardu{Plane,Rover,Copter}

Also account for change in MODE message - ThrCrs has gone away
2015-10-15 09:40:25 +09: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 f49aedb639 LogAnalyzer: turn times from strings to ints before doing maths 2015-10-13 19:39:02 +09:00
Peter Barker ec9be695fb LogAnalyzer: don't die if no arm/disarm eveents 2015-07-10 19:00:22 +10:00
Peter Barker 1dba943a10 LogAnalyzer: if no GPS, try GPS2 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
Jason Martens a08d57149e LogAnalyser: Add double support to DataflashLog.py
Doubles were added to dataflash in commit 3991e0c476.
2015-07-10 18:58:11 +10:00
Holger Steinhaus 1cdc5f7c7f LogAnalyser: adapt to new APM:* vehicle names 2015-05-09 12:20:28 +09:00
Holger Steinhaus 46c3c26065 LogAnalyser: fix buffer calculations 2015-05-09 12:20:25 +09:00
Holger Steinhaus a146b188a7 LogAnalyser: fix parsing of log messages without attributes (e.g. STRT) 2015-05-09 12:20:23 +09: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
Markus Koetter c2030de4ec LogAnalyzer: write \xff EOF assumption to stderr 2014-10-27 15:53:36 -07:00
Markus Koetter cf4435989e LogAnalyzer: Binary Logs may end with \xff
- ignoreBadlines can be used to assume this is a proper EOF
2014-10-27 15:53:35 -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 81bd4c0b4c LogAnalyzer: If skipping badlines, ignore parse errors 2014-08-26 15:36:56 +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
Andrew Chapman 50f9b4d4bb LogAnalyzer: added help text for --format option 2014-08-06 19:51:30 -07:00
Kevin Hester 097a3b23e6 LogAnalyzer: Fix handling of the -f format option (bin, log, auto)
Previously this option was ignored.
2014-08-06 19:51:29 -07: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 406fedf727 LogAnalyzer: Allow instantiation of DataFlashlog with no input filename, for backward compatibility. My changes make m_dflog=DataFlashlog('/path/to/file.log') work, which seems like the preferable way, but we don't want to break backwards compatibility. 2014-07-08 14:12:59 -07:00
Aaron Curtis 0f5360fefa LogAnalyzer: Default to automatic log format detection. 2014-07-08 14:12:58 -07:00
Aaron Curtis c6d783409c LogAnalyzer: There is no self.logfile, so this must be self.filename. 2014-07-08 14:12:58 -07:00
Aaron Curtis fc79a06b9f LogAnalyzer: Fix indent which I broke when merging. 2014-07-08 14:12:57 -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
Aaron Curtis f0cf612372 LogAnalyzer: Fix scoping in LogAnalyzer.py . Tests still need fixing.
Conflicts:
	Tools/LogAnalyzer/LogAnalyzer.py
2014-07-08 14:12:56 -07:00
Aaron Curtis 842f5d20c4 LogAnalyzer: Fix scoping in DataflashLog.py so that multiple instances of DataflashLog can coexist.
Conflicts:
	Tools/LogAnalyzer/DataflashLog.py
2014-07-08 14:12:55 -07:00