593 Commits

Author SHA1 Message Date
Jef Driesen
996bfb2b48 Move the subversion revision number to a private header. 2010-05-03 14:20:05 +00:00
Jef Driesen
2cd09fd525 Add a more convenient method for compile/run-time version checks. 2010-04-29 09:21:05 +00:00
Jef Driesen
fed4e562ee Return the version info as a string. 2010-04-29 09:20:51 +00:00
Jef Driesen
0976932501 Add a function to retrieve the run-time version info. 2010-04-27 14:00:53 +00:00
Jef Driesen
e803369364 Fix the datetime parsing for the Oceanic OC1. 2010-04-27 11:34:05 +00:00
Jef Driesen
6503ff2351 Use an extra bit for the pointers in the logbook entries.
Due to the larger memory capacity, the Oceanic OC1 needs an additional
bit to be able to address memory pages above 64K.
2010-04-27 11:33:53 +00:00
Jef Driesen
61f9603131 Autodetect the Oceanic OC1 layout at runtime. 2010-04-27 11:33:41 +00:00
Jef Driesen
e87385850b Use independent settings for the global and logbook pointer modes. 2010-04-27 11:33:29 +00:00
Jef Driesen
76db1e6f44 Locate the header marker correctly in a longer sequence of zero bytes.
If the first few bytes of the timestamp are equal to zero, they were
incorrectly identified as part of the header marker. The correct header
marker is located a the start of this zero byte sequence, not the end.
2010-04-26 08:09:22 +00:00
Jef Driesen
5dcfe111de Fix the temperature and pressure for the Oceanic Geo and Datamask. 2010-04-24 06:57:05 +00:00
Jef Driesen
711ce88583 Add support for dives with a depth based sample interval.
Because the sample data contains a timestamp with a limited resolution
of only one minute, there can be consecutive samples with identical
timestamps. To deal with this situation, samples with identical
timestamps are distributed evenly inside the one minute interval. All
resulting non-integer timestamps are rounded to the nearest second.

For dives with a time based interval, the timestamps are now validated.
2010-04-21 14:08:17 +00:00
Jef Driesen
fb9976d24f Add a parser for the Heinrichs Weikamp OSTC. 2010-04-19 13:53:38 +00:00
Jef Driesen
b0f82da28f Implement some missing features for the Heinrichs Weikamp OSTC. 2010-04-19 13:53:23 +00:00
Jef Driesen
85dd9d8bd3 Add the subversion revision number to the version info. 2010-04-15 14:25:16 +00:00
Jef Driesen
caa3be8307 Delay the resending of a command after an error. 2010-04-15 12:25:52 +00:00
Jef Driesen
a734f40604 Limit the init response to 13 bytes.
Not all devices appear to send the last zero byte, resulting in a
timeout. If a device does send this zero byte, it is automatically
flushed when sending the next command.
2010-04-15 12:25:42 +00:00
Jef Driesen
0faf2bf815 Use the correct printf format for 64 bit integers. 2010-04-02 13:04:53 +00:00
Jef Driesen
33051dd294 Use different layouts for the Mares Puck and Nemo Wide. 2010-03-25 09:51:00 +00:00
Jef Driesen
54695f1022 Fix the freedive mode detection for the Mares Nemo Wide. 2010-03-24 08:08:42 +00:00
Jef Driesen
39b78aa2eb Allow the first page to be empty.
When the Sensus Ultra reaches the end of a memory page while recording
data, the next page is erased to all 0xFF, and the current page cursor
is advanced. With this memory usage scheme, the last page will be empty
if the previous one was just filled.
2010-03-23 14:44:02 +00:00
Jef Driesen
fe511a774c Recalculate the timeout using the correct variable. 2010-03-23 13:41:13 +00:00
Jef Driesen
b9f7d4e425 Improve the ACK/NAK error recovery to fix more errors. 2010-03-18 09:40:29 +00:00
Jef Driesen
3d1a29e912 Fix the decoding of negative temperatures. 2010-03-15 15:43:11 +00:00
Jef Driesen
419d5a55d5 Autodetect the correct layout at runtime. 2010-03-15 11:08:40 +00:00
Jef Driesen
322577ab8c Fix the divisor for the compass headings. 2010-03-15 11:07:54 +00:00
Jef Driesen
f14b40e99e Fix the freedive mode detection. 2010-03-10 12:12:46 +00:00
Jef Driesen
de1bdd456c Add a version resource on Windows. 2010-03-09 15:18:45 +00:00
Jef Driesen
f265c04161 Prepare for a more flexible versioning system. 2010-03-09 15:18:25 +00:00
Jef Driesen
33dbf8034f Modernize the autotools build system. 2010-03-09 15:18:05 +00:00
Jef Driesen
f8ff2852bf Fix the init sequence for Geo 2 devices.
The Geo 2 appears to respond with a single NAK byte instead of three.
The issue is fixed by expecting only a single byte, and flushing the
serial line to discard all other bytes (if there are any).
2010-03-06 11:48:22 +00:00
Jef Driesen
1e7a1b8194 Use the correct freedive mode for each model. 2010-02-26 14:41:25 +00:00
Jef Driesen
9b1a89582c Add support for the Mares Nemo Air data format.
The Nemo Air contains an extra header which can be detected due to the
presence of a three byte marker sequence. The sample size is larger too.
2010-02-26 14:41:10 +00:00
Jef Driesen
6b09bdb7ef Autodetect the Mares Nemo Air. 2010-02-26 14:40:58 +00:00
Jef Driesen
cb0a9c6c81 Store the layout descriptor in the device handle. 2010-02-26 14:40:36 +00:00
Jef Driesen
293b45b77c Use the common fingerprint function directly. 2010-02-26 14:40:16 +00:00
Jef Driesen
6f622030eb Add some more HelO2 events. 2010-02-26 14:38:54 +00:00
Jef Driesen
10edb943ff Fix the HelO2 fingerprint, datetime and sample interval offsets. 2010-02-23 13:43:57 +00:00
Jef Driesen
b295f71536 Add a dummy backend for systems without IrDA support. 2010-02-18 09:26:32 +00:00
Jef Driesen
1983e2c008 Parse the dive data and output an xml file. 2010-02-16 14:57:52 +00:00
Jef Driesen
ba1bd5d688 Use the userdata parameter to pass the device data back to the caller. 2010-02-16 14:57:37 +00:00
Jef Driesen
ff55a4a82d Use the userdata parameter to pass the dive data to the callback. 2010-02-16 14:57:26 +00:00
Jef Driesen
f6d35fa2c2 Add cancellation support.
To be able to cancel an operation, an application should register a
callback function that returns a non-zero value whenever the active
operaton should be cancelled. A backend can invoke this callback function
to query the application for a pending cancellation request.
2010-02-15 13:16:26 +00:00
Jef Driesen
de889f9d46 Return the right type of error code. 2010-02-11 08:26:35 +00:00
Jef Driesen
82a315ddc5 Add an option to provide fingerprint data. 2010-02-04 10:47:13 +00:00
Jef Driesen
4b590ba5e2 Pass the fingerprint data to the callback function. 2010-02-04 10:46:42 +00:00
Jef Driesen
80352feee8 Add a workaround for the year 2010 problem. 2010-02-03 08:42:53 +00:00
Jef Driesen
f5759d11c9 Use the year stored in the dive header. 2010-02-03 08:42:28 +00:00
Jef Driesen
a8116a0aec Add datetime support to the parsers. 2010-02-02 15:04:46 +00:00
Jef Driesen
fab15b19a7 Add a clock synchronization event. 2010-02-01 21:20:30 +00:00
Jef Driesen
b392a49045 Update the code to use the new datetime support. 2010-02-01 21:20:11 +00:00