comparison 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
comparison
equal deleted inserted replaced
191:d049511b25c6 192:efe70488a04b
125 #DEFINE gf_warning_high .100 ; [%] 125 #DEFINE gf_warning_high .100 ; [%]
126 #DEFINE depth_warn_mbar .13000 ; [mbar] 126 #DEFINE depth_warn_mbar .13000 ; [mbar]
127 #DEFINE wake_up_from_sleep .1160 ; [mbar] 127 #DEFINE wake_up_from_sleep .1160 ; [mbar]
128 #DEFINE gf_display_threshold .20 ; [%] 128 #DEFINE gf_display_threshold .20 ; [%]
129 #DEFINE simulator_timeout .15 ; [s] 129 #DEFINE simulator_timeout .15 ; [s]
130 #DEFINE sensor_voting_logic_threshold .20 ; Threshold in 0.01bar
131
130 132
131 ; Surface mode limits and thresholds 133 ; Surface mode limits and thresholds
132 #DEFINE cns_display_surface_high .70 ; [%] 134 #DEFINE cns_display_surface_high .70 ; [%]
133 #DEFINE high_altitude_threshold .880 ; [mbar] 135 #DEFINE high_altitude_threshold .880 ; [mbar]
134 #DEFINE max_surfpressure .1080 ; [mbar] 136 #DEFINE max_surfpressure .1080 ; [mbar]
626 #DEFINE new_s8_data_available flag9,6 ; =1: New data frame recieved 628 #DEFINE new_s8_data_available flag9,6 ; =1: New data frame recieved
627 #DEFINE c3_hardware flag9,7; =1: OSTC 3C hardware 629 #DEFINE c3_hardware flag9,7; =1: OSTC 3C hardware
628 630
629 #DEFINE s8_digital flag10,0; =1: Digital I/O 631 #DEFINE s8_digital flag10,0; =1: Digital I/O
630 #DEFINE menu_show_sensors2 flag10,1; =1: Update mV data in calibration menu 632 #DEFINE menu_show_sensors2 flag10,1; =1: Update mV data in calibration menu
631 #DEFINE use_02_sensor1 flag10,2; =1: Use this sensor for deco 633 #DEFINE use_O2_sensor1 flag10,2; =1: Use this sensor for deco
632 #DEFINE use_02_sensor2 flag10,3; =1: Use this sensor for deco 634 #DEFINE use_O2_sensor2 flag10,3; =1: Use this sensor for deco
633 #DEFINE use_02_sensor3 flag10,4; =1: Use this sensor for deco 635 #DEFINE use_O2_sensor3 flag10,4; =1: Use this sensor for deco
634 #DEFINE setpoint_fallback flag10,5; =1: Fallback to SP1 due to external O2 sensor failure 636 #DEFINE setpoint_fallback flag10,5; =1: Fallback to SP1 due to external O2 sensor failure
635 #DEFINE blinking_setpoint flag10,6; =1: SP is blinking 637 #DEFINE blinking_setpoint flag10,6; =1: SP is blinking
636 #DEFINE flip_screen flag10,7; =1: Screen is flipped by 180° 638 #DEFINE flip_screen flag10,7; =1: Screen is flipped by 180°
637 639
638 #DEFINE sensor1_calibrated_ok flag11,0; =1: This sensor has been calibrated ok 640 #DEFINE sensor1_calibrated_ok flag11,0; =1: This sensor has been calibrated ok
639 #DEFINE sensor2_calibrated_ok flag11,1; =1: This sensor has been calibrated ok 641 #DEFINE sensor2_calibrated_ok flag11,1; =1: This sensor has been calibrated ok
640 #DEFINE sensor3_calibrated_ok flag11,2; =1: This sensor has been calibrated ok 642 #DEFINE sensor3_calibrated_ok flag11,2; =1: This sensor has been calibrated ok
641 643 #DEFINE voting_logic_sensor1 flag11,3; =1: This sensor is within the voting logic threshold
644 #DEFINE voting_logic_sensor2 flag11,4; =1: This sensor is within the voting logic threshold
645 #DEFINE voting_logic_sensor3 flag11,5; =1: This sensor is within the voting logic threshold
642 646
643 ;============================================================================= 647 ;=============================================================================
644 ; C-code Routines 648 ; C-code Routines
645 ; PART 2 649 ; PART 2
646 extern deco_calc_CNS_decrease_15min 650 extern deco_calc_CNS_decrease_15min