Mercurial > public > ostc4
comparison Discovery/Src/data_exchange_main.c @ 270:2e58a4094770 write-from-sim
feature, debug: make simulator write a logbook entry
When compiling the code with -DSIM_WRITES_LOGBOOK, the simulator writes
to the logbook. This is for debug purpose only. This commit does *not*
define this SIM_WRITES_LOGBOOK, so when compiled, things are functionally
unchanged.
Caveat 1: a simulator generated log cannot be advanced with +5 min. It needs
to run in real time.
Caveat 2: The generated log is currently not "complete". For example, CCR
setpoint switches are not logged. There are likely more small events not
logged. This means that a sim generated log is not a full replacement for
real dive testing.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
| author | Jan Mulder <jlmulder@xs4all.nl> |
|---|---|
| date | Wed, 24 Apr 2019 17:10:51 +0200 |
| parents | f0069f002c55 |
| children | cc30d1aa03a7 |
comparison
equal
deleted
inserted
replaced
| 269:6e78137952af | 270:2e58a4094770 |
|---|---|
| 434 if(decoLock == DECO_CALC_init_as_is_start_of_dive) | 434 if(decoLock == DECO_CALC_init_as_is_start_of_dive) |
| 435 { | 435 { |
| 436 vpm_init(&pStateUsed->vpm, pStateUsed->diveSettings.vpm_conservatism, 0, 0); | 436 vpm_init(&pStateUsed->vpm, pStateUsed->diveSettings.vpm_conservatism, 0, 0); |
| 437 buehlmann_init(); | 437 buehlmann_init(); |
| 438 timer_init(); | 438 timer_init(); |
| 439 resetEvents(); | 439 resetEvents(pStateUsed); |
| 440 pStateUsed->diveSettings.internal__pressure_first_stop_ambient_bar_as_upper_limit_for_gf_low_otherwise_zero = 0; | 440 pStateUsed->diveSettings.internal__pressure_first_stop_ambient_bar_as_upper_limit_for_gf_low_otherwise_zero = 0; |
| 441 /* | 441 /* |
| 442 * ToDo by Peter | 442 * ToDo by Peter |
| 443 * copy VPM stuff etc. pp. | 443 * copy VPM stuff etc. pp. |
| 444 * was void initDiveState(SDiveSettings * pDiveSettings, SVpm * pVpm); | 444 * was void initDiveState(SDiveSettings * pDiveSettings, SVpm * pVpm); |
