Mercurial > public > ostc4
comparison Common/Inc/settings.h @ 662:1b995079c045 Betatest
PSCR Mode
author | heinrichs weikamp |
---|---|
date | Tue, 14 Dec 2021 15:36:10 +0100 |
parents | 890440ab993a |
children | c855753af9a6 |
comparison
equal
deleted
inserted
replaced
661:87bee7cc77b3 | 662:1b995079c045 |
---|---|
45 | 45 |
46 #define ERROR_ 0xFF | 46 #define ERROR_ 0xFF |
47 | 47 |
48 #define CCRMODE_FixedSetpoint 0 | 48 #define CCRMODE_FixedSetpoint 0 |
49 #define CCRMODE_Sensors 1 | 49 #define CCRMODE_Sensors 1 |
50 #define CCRMODE_Simulation 2 | |
50 | 51 |
51 #define DIVEMODE_OC 0 | 52 #define DIVEMODE_OC 0 |
52 #define DIVEMODE_CCR 1 | 53 #define DIVEMODE_CCR 1 |
53 #define DIVEMODE_Gauge 2 | 54 #define DIVEMODE_Gauge 2 |
54 #define DIVEMODE_Apnea 3 | 55 #define DIVEMODE_Apnea 3 |
56 #define DIVEMODE_PSCR 4 | |
55 | 57 |
56 #define GF_MODE 1 | 58 #define GF_MODE 1 |
57 #define VPM_MODE 2 | 59 #define VPM_MODE 2 |
58 | 60 |
59 #define VPM_FROM_FORTRAN 0 | 61 #define VPM_FROM_FORTRAN 0 |
71 #define MAX_COMPASS_COMP (2u) | 73 #define MAX_COMPASS_COMP (2u) |
72 #define MAX_VIEWPORT_MODE (0x7F) | 74 #define MAX_VIEWPORT_MODE (0x7F) |
73 | 75 |
74 #define MAX_SCRUBBER_TIME (500u) | 76 #define MAX_SCRUBBER_TIME (500u) |
75 #define MIN_PPO2_SP_CBAR (40u) | 77 #define MIN_PPO2_SP_CBAR (40u) |
78 | |
79 #define PSCR_MAX_O2_DROP (15u) | |
80 #define PSCR_MIN_LUNG_RATIO (5u) | |
81 #define PSCR_MAX_LUNG_RATIO (20u) | |
82 | |
83 #define FUTURE_SPARE_SIZE (29u) /* Applied for reuse of old, not used, scooter block (was 32 bytes)*/ | |
76 | 84 |
77 typedef enum | 85 typedef enum |
78 { | 86 { |
79 O2_SENSOR_SOURCE_OPTIC = 0, | 87 O2_SENSOR_SOURCE_OPTIC = 0, |
80 O2_SENSOR_SOURCE_ANALOG, | 88 O2_SENSOR_SOURCE_ANALOG, |
200 uint8_t nonMetricalSystem; | 208 uint8_t nonMetricalSystem; |
201 uint8_t fallbackToFixedSetpoint; | 209 uint8_t fallbackToFixedSetpoint; |
202 uint8_t bluetoothActive; /* will be set to zero on each startup at the moment */ | 210 uint8_t bluetoothActive; /* will be set to zero on each startup at the moment */ |
203 uint8_t safetystopDepth; | 211 uint8_t safetystopDepth; |
204 uint32_t updateSettingsAllowedFromHeader; | 212 uint32_t updateSettingsAllowedFromHeader; |
205 uint8_t scooterControl; | 213 uint8_t pscr_lung_ratio; /* redefined in 0xFFFF0020 */ |
206 uint8_t scooterDrag; | 214 uint8_t pscr_o2_drop; /* redefined in 0xFFFF0020 */ |
207 uint8_t scooterLoad; | 215 uint8_t co2_sensor_active; /* redefined in 0xFFFF0021 */ |
208 uint8_t scooterNumberOfBatteries; | 216 uint8_t Future_SPARE[FUTURE_SPARE_SIZE]; /* redefined in 0xFFFF0020 (old scooter Block was 32 byte)*/ |
209 uint16_t scooterBattSize; | |
210 uint8_t scooterSPARE1[7]; | |
211 uint8_t scooterSPARE2[19]; | |
212 // new in 0xFFFF0006 | 217 // new in 0xFFFF0006 |
213 uint8_t ppo2sensors_deactivated; | 218 uint8_t ppo2sensors_deactivated; |
214 uint8_t tX_colorscheme; | 219 uint8_t tX_colorscheme; |
215 uint8_t tX_userselectedLeftLowerCornerPrimary; | 220 uint8_t tX_userselectedLeftLowerCornerPrimary; |
216 uint8_t tX_userselectedLeftLowerCornerTimeout; | 221 uint8_t tX_userselectedLeftLowerCornerTimeout; |
338 | 343 |
339 void settingsHelperButtonSens_keepPercentageValues(uint32_t inputValueRaw, uint8_t *outArray4Values); | 344 void settingsHelperButtonSens_keepPercentageValues(uint32_t inputValueRaw, uint8_t *outArray4Values); |
340 uint8_t settingsHelperButtonSens_translate_percentage_to_hwOS_values(uint8_t inputValuePercentage); | 345 uint8_t settingsHelperButtonSens_translate_percentage_to_hwOS_values(uint8_t inputValuePercentage); |
341 uint8_t settingsHelperButtonSens_translate_hwOS_values_to_percentage(uint8_t inputValuePIC); | 346 uint8_t settingsHelperButtonSens_translate_hwOS_values_to_percentage(uint8_t inputValuePIC); |
342 | 347 |
348 void reset_SettingWarning(); | |
349 uint8_t isSettingsWarning(); | |
350 | |
343 #endif // SETTINGS_H | 351 #endif // SETTINGS_H |