Unlike the other models, the Aladin Tec 2G uses only a single byte to store the oxygen percentage, and there is no need to manually re-map the deco mix. Normally, the oxygen percentage is stored using two bytes (little endian byte order). Thus for a device supporting two gas mixes, four bytes will be used, and the corresponding gas mix id for each byte is as follows: ID: 0 0 1 1 After re-mapping the id of the deco mix, this becomes: ID: 0 0 2 2 Since oxygen percentages are limited to the range 0-100%, the highest byte (marked with an X) should always be zero and can thus be ignored: ID: 0 X 2 X Now, because an oxygen percentage of zero indicates a disabled gas mix, this is equivalent to a device supporting three (or even four) gas mixes, each stored using only a single byte: ID: 0 1 2 3 We can take advantage of this knowledge to avoid having to re-map the deco mix id.
Overview ======== Libdivecomputer is a cross-platform and open source library for communication with dive computers from various manufacturers. The official web site is: http://www.libdivecomputer.org/ The sourceforge project page is: http://sourceforge.net/projects/libdivecomputer/ Installation ============ On UNIX-like systems (including Linux, Mac OS X, MinGW), use the autotools based build system. Run the following commands from the top directory (containing this file) to configure, build and install the library and utilities: $ ./configure $ make $ make install If you downloaded the libdivecomputer source code directly from the git source code repository, then you need to create the configure script as the first step: $ autoreconf --install To uninstall libdivecomputer again, run: $ make uninstall Support ======= Please send bug reports, feedback or questions to the mailing list: http://libdivecomputer.org/cgi-bin/mailman/listinfo/devel or contact me directly: jef@libdivecomputer.org License ======= Libdivecomputer is free software, released under the terms of the GNU Lesser General Public License (LGPL). You can find a copy of the license in the file COPYING.
Description
Languages
C
98.3%
M4
1.2%
Makefile
0.5%