diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-09-03 00:00:01 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-02 15:26:26 -0700 |
commit | 9212458f23a0a35629020984e43e47a0e40425b4 (patch) | |
tree | b5d582af30e926ec796b3d8af999d403a0d9b39b /configuredivecomputerthreads.cpp | |
parent | 37953d163efd7741bb328b23952df97b01f65a55 (diff) | |
download | subsurface-9212458f23a0a35629020984e43e47a0e40425b4.tar.gz |
Enable the configuration of more OSTC settings
This enables enables you to configure a couple more settings in the
OSTC devices, roughly corresponding to the new ones that can be
configured in the OSTC3 devices.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'configuredivecomputerthreads.cpp')
-rw-r--r-- | configuredivecomputerthreads.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp index 0941d25d6..749a8d0ac 100644 --- a/configuredivecomputerthreads.cpp +++ b/configuredivecomputerthreads.cpp @@ -1131,6 +1131,10 @@ static dc_status_t read_ostc_settings(dc_device_t *device, DeviceDetails *m_devi m_deviceDetails->gfLow = read_ostc_cf(data, 32); // CF33: Gradient Factor high m_deviceDetails->gfHigh = read_ostc_cf(data, 33); + // CF56: Bottom gas consumption + m_deviceDetails->bottomGasConsumption = read_ostc_cf(data, 56); + // CF57: Ascent gas consumption + m_deviceDetails->decoGasConsumption = read_ostc_cf(data, 57); // CF58: Future time to surface setFutureTTS m_deviceDetails->futureTTS = read_ostc_cf(data, 58); @@ -1150,6 +1154,8 @@ static dc_status_t read_ostc_settings(dc_device_t *device, DeviceDetails *m_devi // 32 custom Functions (CF 64-95) // Decode the relevant ones + // CF60: Graphic velocity + m_deviceDetails->graphicalSpeedIndicator = read_ostc_cf(data, 60); // CF65: Show safety stop m_deviceDetails->safetyStop = read_ostc_cf(data, 65); // CF67: Alternaitve Gradient Factor low @@ -1416,6 +1422,10 @@ static dc_status_t write_ostc_settings(dc_device_t *device, DeviceDetails *m_dev write_ostc_cf(data, 32, max_CF, m_deviceDetails->gfLow); // CF33: Gradient Factor high write_ostc_cf(data, 33, max_CF, m_deviceDetails->gfHigh); + // CF56: Bottom gas consumption + write_ostc_cf(data, 56, max_CF, m_deviceDetails->bottomGasConsumption); + // CF57: Ascent gas consumption + write_ostc_cf(data, 57, max_CF, m_deviceDetails->decoGasConsumption); // CF58: Future time to surface setFutureTTS write_ostc_cf(data, 58, max_CF, m_deviceDetails->futureTTS); #ifdef DEBUG_OSTC_CF @@ -1437,6 +1447,8 @@ static dc_status_t write_ostc_settings(dc_device_t *device, DeviceDetails *m_dev // 32 custom Functions (CF 64-95) // Decode the relevant ones + // CF60: Graphic velocity + write_ostc_cf(data, 60, max_CF, m_deviceDetails->graphicalSpeedIndicator); // CF65: Show safety stop write_ostc_cf(data, 65, max_CF, m_deviceDetails->safetyStop); // CF67: Alternaitve Gradient Factor low |