Mercurial > public > hwos_code
comparison src/ostc3.inc @ 189:e79bc535ef9e
ignore un-calibrated sensors even if they become valid
author | heinrichsweikamp |
---|---|
date | Wed, 29 Oct 2014 12:53:01 +0100 |
parents | ebc28381f17d |
children | efe70488a04b |
comparison
equal
deleted
inserted
replaced
188:ebc28381f17d | 189:e79bc535ef9e |
---|---|
332 flag6 res 1 | 332 flag6 res 1 |
333 flag7 res 1 | 333 flag7 res 1 |
334 flag8 res 1 | 334 flag8 res 1 |
335 flag9 res 1 | 335 flag9 res 1 |
336 flag10 res 1 | 336 flag10 res 1 |
337 flag11 res 1 | |
337 | 338 |
338 temp1 res 1 | 339 temp1 res 1 |
339 temp2 res 1 | 340 temp2 res 1 |
340 | 341 |
341 ;---- Interface to wait macros | 342 ;---- Interface to wait macros |
349 win_height res 1 | 350 win_height res 1 |
350 win_bargraph res 1 | 351 win_bargraph res 1 |
351 win_color1 res 1 | 352 win_color1 res 1 |
352 win_color2 res 1 | 353 win_color2 res 1 |
353 win_font res 1 | 354 win_font res 1 |
354 win_invert res 1 | |
355 | 355 |
356 ;---- Draw subroutines | 356 ;---- Draw subroutines |
357 tft_temp4 res 1 | 357 tft_temp4 res 1 |
358 tft_temp3 res 1 | 358 tft_temp3 res 1 |
359 tft_temp2 res 1 | 359 tft_temp2 res 1 |
618 #DEFINE compass_enabled flag8,7 ; =1: The compass and accelerometer chip is active | 618 #DEFINE compass_enabled flag8,7 ; =1: The compass and accelerometer chip is active |
619 | 619 |
620 #DEFINE compass_fast_mode flag9,0 ; =1: The compass is in fast mode | 620 #DEFINE compass_fast_mode flag9,0 ; =1: The compass is in fast mode |
621 #DEFINE in_color_menu flag9,1 ; =1: In the color scheme menu | 621 #DEFINE in_color_menu flag9,1 ; =1: In the color scheme menu |
622 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout | 622 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout |
623 ; unused | 623 #DEFINE win_invert flag9,3 ; =1: Invert font output |
624 #DEFINE show_safety_stop flag9,4 ; =1: Show the safety stop | 624 #DEFINE show_safety_stop flag9,4 ; =1: Show the safety stop |
625 #DEFINE safety_stop_active flag9,5 ; =1: The safety stop is currently displayed | 625 #DEFINE safety_stop_active flag9,5 ; =1: The safety stop is currently displayed |
626 #DEFINE new_s8_data_available flag9,6 ; =1: New data frame recieved | 626 #DEFINE new_s8_data_available flag9,6 ; =1: New data frame recieved |
627 #DEFINE c3_hardware flag9,7; =1: OSTC 3C hardware | 627 #DEFINE c3_hardware flag9,7; =1: OSTC 3C hardware |
628 | 628 |
632 #DEFINE use_02_sensor2 flag10,3; =1: Use this sensor for deco | 632 #DEFINE use_02_sensor2 flag10,3; =1: Use this sensor for deco |
633 #DEFINE use_02_sensor3 flag10,4; =1: Use this sensor for deco | 633 #DEFINE use_02_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 | 634 #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 | 635 #DEFINE blinking_setpoint flag10,6; =1: SP is blinking |
636 #DEFINE flip_screen flag10,7; =1: Screen is flipped by 180° | 636 #DEFINE flip_screen flag10,7; =1: Screen is flipped by 180° |
637 | |
638 #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 | |
640 #DEFINE sensor3_calibrated_ok flag11,2; =1: This sensor has been calibrated ok | |
641 | |
642 | |
637 ;============================================================================= | 643 ;============================================================================= |
638 ; C-code Routines | 644 ; C-code Routines |
639 ; PART 2 | 645 ; PART 2 |
640 extern deco_calc_CNS_decrease_15min | 646 extern deco_calc_CNS_decrease_15min |
641 extern deco_calc_CNS_fraction | 647 extern deco_calc_CNS_fraction |