sawinglogz
21adfb7987
Fix header parsing for 1160P event files, fix misconceptions in ReadWaveformHeader.
...
Now that we check header checksums, it uncovered a problem parsing 1160P event
headers. It turns out that the 1160P uses a "waveform" header for its .002
events files. So we can't use the file extension to decide which header to
parse, but there's a flag in the standard header that seems to reliably indicate
a waveform header. The 1160P events are listed at fixed intervals, as are
waveforms, so the flag has been named "interval" rather than "waveform."
The 1160P event headers have more than 2 signals in the header and an interval
longer than 1sec. This clarified the meaning of multiple waveform header fields
that were previously being parsed incorrectly.
2019-05-18 19:17:55 -04:00
sawinglogz
ccafa1f16e
Calculate and check PRS1 CRC32 on V3 files, fix memory leak.
2019-05-15 17:41:37 -04:00
sawinglogz
1c564fb296
Calculate and check PRS1 CRC16 on V2 files.
2019-05-15 15:16:14 -04:00
sawinglogz
c8cd66992a
Split PRS1DataChunk::ReadHeader into ReadHeader/ReadNormalHeaderV2/ReadNormalHeaderV3.
2019-05-15 12:32:39 -04:00
sawinglogz
d3c6d6445b
Split PRS1DataChunk::ReadHeader into ReadHeader/ReadWaveformHeader.
2019-05-15 10:26:31 -04:00
sawinglogz
e07c4ce63c
Split PRS1DataChunk::ReadHeader into ReadHeader/ReadData.
2019-05-15 08:36:31 -04:00
sawinglogz
451963de25
Move chunk parsing into PRS1DataChunk class.
...
The diff looks messy, but it's mostly chunk -> this search-and-replace.
2019-05-14 22:49:41 -04:00
sawinglogz
7103650023
Move PRS1Loader::ParseChunk variable declarations and V3 header unpacking to the appropriate scope.
2019-05-14 21:49:43 -04:00
sawinglogz
d7cd22c918
Separate checksum reading in PRS1Loader::ParseChunk instead of burying it with other data.
...
While slightly more verbose, this makes the code more clearly correct.
2019-05-14 20:47:00 -04:00
sawinglogz
d216e677e1
Simplify PRS1Loader::ParseChunk by using a chunk instead of local variables.
2019-05-14 19:57:01 -04:00
sawinglogz
74863e538a
Split PRS1Loader::ParseFile in to ParseFile/ParseChunk.
2019-05-14 18:57:04 -04:00
sawinglogz
76053b0469
Check for format change before coalescing PRS1 chunks, move data warnings out of parsing.
2019-05-14 16:20:32 -04:00
sawinglogz
9b3aaad4b0
Move PRS1 waveform chunk coalescing out of parsing and into importing.
2019-05-13 21:23:20 -04:00
sawinglogz
f19ad331c9
Add debugging output to all error handling in PRS1 loader.
2019-05-13 21:23:20 -04:00
sawinglogz
e47660e15a
Disable broken "ignore" setting for PRS1. Fixes #73 .
2019-05-08 17:09:15 -04:00
sawinglogz
e4082fff22
Add compiler flags and debug messages in search of memory access errors.
2019-05-05 15:50:38 -04:00
sawinglogz
9da60239c8
Fix memory access error in certain summary files.
...
This currently doesn't make the parsing more complete, it just bails rather than running off the end of memory.
2019-05-05 15:45:50 -04:00
sawinglogz
af375af090
Disable GUI widgets in Loader and PRS1Loader when unit testing.
2019-05-04 21:49:50 -04:00
sawinglogz
7c0c13486c
More refactoring of PRS1Loader::OpenMachine().
2019-05-03 16:59:26 -04:00
sawinglogz
7937b57b5f
Split out PRS1Loader::ScanFiles() from PRS1Loader::OpenMachine().
2019-05-03 15:07:15 -04:00
sawinglogz
4599dd781f
Refactor PRS1Import::run() so that parsing can be called separately from saving to the database.
2019-05-03 14:45:21 -04:00
Phil Olynyk
108e0354d9
Change OSCR to OSCAR in cpp, h, ui, and html files
2019-02-23 19:58:25 -05:00
Phil Olynyk
17b53482bd
Change folder and file name from oscr to oscar
2019-02-22 19:23:39 -05:00