Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1061:f501d7c35c8f | 1062:785772303f9c |
|---|---|
| 1610 global.dataSendToMaster.data[boolPressureData].temperature = get_temperature(); | 1610 global.dataSendToMaster.data[boolPressureData].temperature = get_temperature(); |
| 1611 global.dataSendToMaster.data[boolPressureData].pressure_mbar = get_pressure_mbar(); | 1611 global.dataSendToMaster.data[boolPressureData].pressure_mbar = get_pressure_mbar(); |
| 1612 global.dataSendToMaster.data[boolPressureData].surface_mbar = get_surface_mbar(); | 1612 global.dataSendToMaster.data[boolPressureData].surface_mbar = get_surface_mbar(); |
| 1613 global.dataSendToMaster.data[boolPressureData].ascent_rate_meter_per_min = global.lifeData.ascent_rate_meter_per_min; | 1613 global.dataSendToMaster.data[boolPressureData].ascent_rate_meter_per_min = global.lifeData.ascent_rate_meter_per_min; |
| 1614 global.dataSendToMaster.data[boolPressureData].pressure_uTick = HAL_GetTick(); | 1614 global.dataSendToMaster.data[boolPressureData].pressure_uTick = HAL_GetTick(); |
| 1615 #ifdef ENABLE_SENTINEL_MODE | |
| 1616 global.dataSendToMaster.data[boolPressureData].pressure_bottle[0] = externalInterface_GetBottlePressure(0); | |
| 1617 global.dataSendToMaster.data[boolPressureData].pressure_bottle[1] = externalInterface_GetBottlePressure(1); | |
| 1618 #endif | |
| 1615 global.dataSendToMaster.boolPressureData = boolPressureData; | 1619 global.dataSendToMaster.boolPressureData = boolPressureData; |
| 1616 global.dataSendToMaster.data[boolPressureData].SPARE1 = is_surface_pressure_stable(); | 1620 global.dataSendToMaster.data[boolPressureData].SPARE1 = is_surface_pressure_stable(); |
| 1617 } | 1621 } |
| 1618 | 1622 |
| 1619 | 1623 |
