# HG changeset patch # User Ideenmodellierer # Date 1604849923 -3600 # Node ID e7e44986684ad425d94f68b32d37e8e79f9ab5f6 # Parent 12f8745c8a9499aec839b30da076b74137135f5d Update roll and pitch value in simulation mode: Roll and pitch values had not been provided to the simulated dive => added copy functions diff -r 12f8745c8a94 -r e7e44986684a Discovery/Src/simulation.c --- a/Discovery/Src/simulation.c Mon Nov 02 21:17:45 2020 +0100 +++ b/Discovery/Src/simulation.c Sun Nov 08 16:38:43 2020 +0100 @@ -128,8 +128,11 @@ if(checkOncePerSecond) { pDiveState->lifeData.temperature_celsius = stateRealGetPointer()->lifeData.temperature_celsius; + pDiveState->lifeData.battery_charge = stateRealGetPointer()->lifeData.battery_charge; pDiveState->lifeData.compass_heading = stateRealGetPointer()->lifeData.compass_heading; - pDiveState->lifeData.battery_charge = stateRealGetPointer()->lifeData.battery_charge; + pDiveState->lifeData.compass_roll = stateRealGetPointer()->lifeData.compass_roll; + pDiveState->lifeData.compass_pitch = stateRealGetPointer()->lifeData.compass_pitch; + #ifdef ENABLE_BOTTLE_SENSOR pDiveState->lifeData.bottle_bar[pDiveState->lifeData.actualGas.GasIdInSettings] = stateRealGetPointer()->lifeData.bottle_bar[stateRealGetPointer()->lifeData.actualGas.GasIdInSettings]; pDiveState->lifeData.bottle_bar_age_MilliSeconds[pDiveState->lifeData.actualGas.GasIdInSettings] = stateRealGetPointer()->lifeData.bottle_bar_age_MilliSeconds[stateRealGetPointer()->lifeData.actualGas.GasIdInSettings];