diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-11-19 22:14:24 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-19 17:50:33 -0800 |
commit | 36b604546009ea172b051b8a150d67dd6487e12b (patch) | |
tree | 1b8f373580fee12829fa167e0bd5165d2bb2cf56 /file.c | |
parent | e2c9c0bec428db617a73fd88609c677078fa57c1 (diff) | |
download | subsurface-36b604546009ea172b051b8a150d67dd6487e12b.tar.gz |
Document more about fields in Poseidon MkVI logs
This is based on the great work done by Søren Reinke's on his MKVI Logfile
Analyzer.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -629,22 +629,28 @@ int parse_txt_file(const char *filename, const char *csv) #endif break; case 6: + //PO2 Cell 1 Average add_sample_data(sample, POSEIDON_SENSOR1, value); break; case 7: + //PO2 Cell 2 Average add_sample_data(sample, POSEIDON_SENSOR2, value); break; case 8: + //Depth * 2 has_depth = true; prev_depth = value; add_sample_data(sample, POSEIDON_DEPTH, value); break; + //9 Max Depth * 2 + //10 Ascent/Descent Rate * 2 case 11: //Ascent Rate Alert >10 m/s add_event(dc, cur_sampletime, SAMPLE_EVENT_ASCENT, 0, 0, QT_TRANSLATE_NOOP("gettextFromC", "ascent")); break; case 13: + //O2 Tank Pressure add_sample_data(sample, POSEIDON_O2CYLINDER, value); if (!o2cylinder_pressure) { dive->cylinder[0].sample_start.mbar = value * 1000; @@ -653,6 +659,7 @@ int parse_txt_file(const char *filename, const char *csv) o2cylinder_pressure = value; break; case 14: + //Diluent Tank Pressure add_sample_data(sample, POSEIDON_PRESSURE, value); if (!cylinder_pressure) { dive->cylinder[1].sample_start.mbar = value * 1000; @@ -660,7 +667,10 @@ int parse_txt_file(const char *filename, const char *csv) } else cylinder_pressure = value; break; + //16 Remaining dive time #1? + //17 related to O2 injection case 20: + //PO2 Setpoint has_setpoint = true; prev_setpoint = value; add_sample_data(sample, POSEIDON_SETPOINT, value); @@ -689,6 +699,7 @@ int parse_txt_file(const char *filename, const char *csv) add_sample_data(sample, POSEIDON_NDL, value); break; case 39: + // Water Temperature in Celcius add_sample_data(sample, POSEIDON_TEMP, value); break; case 85: @@ -699,7 +710,14 @@ int parse_txt_file(const char *filename, const char *csv) //O2 diluent part in % gaschange ^= value; break; + //239 Unknown, maybe PO2 at sensor validation? + //240 Unknown, maybe PO2 at sensor validation? + //247 Unknown, maybe PO2 Cell 1 during pressure test + //248 Unknown, maybe PO2 Cell 2 during pressure test + //250 PO2 Cell 1 + //251 PO2 Cell 2 default: + printf("Ignoring %d = %d\n", type, value); break; } /* sample types */ break; |