Mercurial > public > ostc4
diff Small_CPU/Src/scheduler.c @ 1062:785772303f9c Icon_Integration
Added pressure sensors in Sentnel mode:
The Red Head/Provide pressure and tempstick information on a uart channel together with the O2 data. The support for receiving pressure data has been added to the Sentinel protocol function.
| author | Ideenmodellierer |
|---|---|
| date | Tue, 10 Feb 2026 19:36:05 +0100 |
| parents | 9fabad6436a2 |
| children | 449e0f8f23d0 |
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c Sat Feb 07 21:39:40 2026 +0100 +++ b/Small_CPU/Src/scheduler.c Tue Feb 10 19:36:05 2026 +0100 @@ -1612,6 +1612,10 @@ global.dataSendToMaster.data[boolPressureData].surface_mbar = get_surface_mbar(); global.dataSendToMaster.data[boolPressureData].ascent_rate_meter_per_min = global.lifeData.ascent_rate_meter_per_min; global.dataSendToMaster.data[boolPressureData].pressure_uTick = HAL_GetTick(); +#ifdef ENABLE_SENTINEL_MODE + global.dataSendToMaster.data[boolPressureData].pressure_bottle[0] = externalInterface_GetBottlePressure(0); + global.dataSendToMaster.data[boolPressureData].pressure_bottle[1] = externalInterface_GetBottlePressure(1); +#endif global.dataSendToMaster.boolPressureData = boolPressureData; global.dataSendToMaster.data[boolPressureData].SPARE1 = is_surface_pressure_stable(); }
