Aaron Curtis
179d854a26
LogAnalyzer: Update to include the new "format" argument, and fix scoping on two new tests.
11 years ago
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.
11 years ago
Aaron Curtis
0f5360fefa
LogAnalyzer: Default to automatic log format detection.
11 years ago
Aaron Curtis
c6d783409c
LogAnalyzer: There is no self.logfile, so this must be self.filename.
11 years ago
Aaron Curtis
fc79a06b9f
LogAnalyzer: Fix indent which I broke when merging.
11 years ago
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.
11 years ago
Aaron Curtis
f0cf612372
LogAnalyzer: Fix scoping in LogAnalyzer.py . Tests still need fixing.
...
Conflicts:
Tools/LogAnalyzer/LogAnalyzer.py
11 years ago
Aaron Curtis
842f5d20c4
LogAnalyzer: Fix scoping in DataflashLog.py so that multiple instances of DataflashLog can coexist.
...
Conflicts:
Tools/LogAnalyzer/DataflashLog.py
11 years ago
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
11 years ago
Markus Koetter
6ce0dbf3b3
LogAnalyzer: TestPitchRollCoupling add mode ""
...
- "" is a valid alias for AUTOTUNE
11 years ago
Markus Koetter
c1d1406c59
LogAnalyzer - accept invalid FMT messages in binary logs
...
- I really wish this was not necessary, but it is.
11 years ago
Markus Koetter
4e445a716a
LogAnalyzer - label/name & format/type consistency
11 years ago
Markus Koetter
099d40f0f8
LogAnalyzer - adjust modeChanges for Plane/Rover
...
- I lack logs for both, not tested.
11 years ago
Markus Koetter
33d19fc893
LogAnalyzer - add binary log parsing
...
- parse using ctypes.LittleEndianStructure
- define classes from FMT messages
- use the classes as with Text logs for processing
11 years ago
Markus Koetter
64ae2011b5
LogAnalyzer - binary log parsing preparations
...
- use FMT messages to create classes using type()
- work with these classes instead of arrays
- split parsing and processing
11 years ago
Linus Casassa
ce0efdb7d2
LogAnalyzer: Adding HYBRID mode to LogAnalyzer.
11 years ago
Arthur Benemann
8e0f3c152a
Tools: Added 3DR Berkeley to the locations list on SITL
11 years ago
Kevin Hester
0bccbf2409
tools: my change to use stdin, broke reading logs that have no header
...
This fixes it (I'm careful to avoid seeking)
11 years ago
Kevin Hester
ddd24e8135
tools: LogAnalyser if we fall off end of GPS data, return a valid time
...
Found cases where the loiter test would fail with some flights if
the vehicle never left that mode. Don't use None in that case
11 years ago
Kevin Hester
1a4fce60e8
tools: LogAnalyser, ensure error msgs go to stderr not stdout
11 years ago
Kevin Hester
7dc356f4ca
tools: LogAnalyzer fixes to work with pipes as input
...
seek is not supported on pipes (and not needed in this case)
tell is also not supported, so count bytes on our own
11 years ago
Kevin Hester
867f884954
tools: Allow LogAnalyser to emit its xml to stdout.
...
If you use - as the name for the output file.
11 years ago
Kevin Hester
a756e4f3ef
tools: Allow LogAnalyzer to read from stdin rather than just files
...
Use - intead of the filename
11 years ago
Kevin Hester
a31498f599
tools: Change LogAnalyzer tabs to spaces (per APM python conventions)
11 years ago
Aaron Curtis
068febda1f
Tools: Fix broken duplicate check for adding new libraries to the data structure
11 years ago
Andrew Chapman
2f4af05f33
LogAnalyzer: renamed test from "Underpowered" to "Thrust"
11 years ago
Andrew Chapman
4a5e0bbe06
LogAnalyzer: renamed PASS to GOOD in output (and enums)
...
as per Craig’s request to clarify test output
11 years ago
Andrew Chapman
a6eb5307b6
LogAnalyzer: renamed 'logs' folder to 'examples'
...
as per Craig’s request
11 years ago
Andrew Chapman
0fe6c1ee3a
LogAnalyzer: fixed XML output glitch in the case of a skipped (NA) test
11 years ago
Andrew Chapman
f122b1ba37
LogAnalyzer: added 'import collections', allowed for some AC3.2 logging changes
11 years ago
Andrew Chapman
795f93949b
LogAnalyzer: escape strings in XML output
11 years ago
Andrew Chapman
0f5a89f22e
LogAnalyzer: added check for binary log files (can't parse yet)
11 years ago
Andrew Chapman
70c2682c28
LogAnalyzer: detect all zeros in MAG X/Y/Z data
11 years ago
Andrew Chapman
35830f928d
LogAnalyzer: added --verbose flag, added test for MAG interference
11 years ago
Andrew Chapman
130a2dcb0b
LogAnalyzer: added LogIterator, copter roll/pitch > max lean angle test,
11 years ago
Andrew Chapman
81fcf4bda7
LogAnalyzer: combined statusMessage and extraFeedback
11 years ago
Andrew Chapman
1356d53e7b
LogAnalyzer: report skippedLines, cleaned up DataflashLog.read() error handling
11 years ago
Andrew Chapman
2a406ac699
LogAnalyzer: added GPS glitch detection to GPS test
11 years ago
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
11 years ago
Andrew Chapman
d6b091c39f
LogAnalyzer: added BETA feedback info to output
11 years ago
Andrew Chapman
c4828e1d3d
LogAnalyzer: fixed plane+rover parsing, added test for underpowered copters
11 years ago
Andrew Chapman
301a3bcdaf
LogAnalyzer: added test for dupe log data
11 years ago
Andrew Chapman
5aa1e6a2dd
LogAnalyzer: changed command flags a little, tidy, started on TestPitchRollCoupling
11 years ago
Andrew Chapman
e0ada31872
LogAnalyzer: adding Roberts bad PM performance log
11 years ago
Andrew Chapman
8d691c2a60
LogAnalyzer: added PM slow loop check, first version of xml output
11 years ago
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,
11 years ago
hazyhxj
f2d3fed612
Add name to GTI_Success.txt
...
this is just a test
11 years ago
Andrew Tridgell
94876dccb1
autotest: added Ballarat to autotest locations
11 years ago
Randy Mackay
919b0ea29b
CPUInfo: add fast_atan2
11 years ago
Randy Mackay
4f75cbcce0
AutoTest: fix error reporting for copter AVC mission
11 years ago