Mercurial > public > hwos_code
diff src/ostc3.inc @ 192:efe70488a04b
voting logic for external monitoring
author | heinrichsweikamp |
---|---|
date | Mon, 03 Nov 2014 17:25:19 +0100 |
parents | e79bc535ef9e |
children | c241d3af0e47 |
line wrap: on
line diff
--- a/src/ostc3.inc Thu Oct 30 17:45:50 2014 +0100 +++ b/src/ostc3.inc Mon Nov 03 17:25:19 2014 +0100 @@ -127,6 +127,8 @@ #DEFINE wake_up_from_sleep .1160 ; [mbar] #DEFINE gf_display_threshold .20 ; [%] #DEFINE simulator_timeout .15 ; [s] +#DEFINE sensor_voting_logic_threshold .20 ; Threshold in 0.01bar + ; Surface mode limits and thresholds #DEFINE cns_display_surface_high .70 ; [%] @@ -628,9 +630,9 @@ #DEFINE s8_digital flag10,0; =1: Digital I/O #DEFINE menu_show_sensors2 flag10,1; =1: Update mV data in calibration menu -#DEFINE use_02_sensor1 flag10,2; =1: Use this sensor for deco -#DEFINE use_02_sensor2 flag10,3; =1: Use this sensor for deco -#DEFINE use_02_sensor3 flag10,4; =1: Use this sensor for deco +#DEFINE use_O2_sensor1 flag10,2; =1: Use this sensor for deco +#DEFINE use_O2_sensor2 flag10,3; =1: Use this sensor for deco +#DEFINE use_O2_sensor3 flag10,4; =1: Use this sensor for deco #DEFINE setpoint_fallback flag10,5; =1: Fallback to SP1 due to external O2 sensor failure #DEFINE blinking_setpoint flag10,6; =1: SP is blinking #DEFINE flip_screen flag10,7; =1: Screen is flipped by 180° @@ -638,7 +640,9 @@ #DEFINE sensor1_calibrated_ok flag11,0; =1: This sensor has been calibrated ok #DEFINE sensor2_calibrated_ok flag11,1; =1: This sensor has been calibrated ok #DEFINE sensor3_calibrated_ok flag11,2; =1: This sensor has been calibrated ok - +#DEFINE voting_logic_sensor1 flag11,3; =1: This sensor is within the voting logic threshold +#DEFINE voting_logic_sensor2 flag11,4; =1: This sensor is within the voting logic threshold +#DEFINE voting_logic_sensor3 flag11,5; =1: This sensor is within the voting logic threshold ;============================================================================= ; C-code Routines