changeset 548:e7e44986684a

Update roll and pitch value in simulation mode: Roll and pitch values had not been provided to the simulated dive => added copy functions
author Ideenmodellierer
date Sun, 08 Nov 2020 16:38:43 +0100
parents 12f8745c8a94
children 469e93f8633e
files Discovery/Src/simulation.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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];