comparison src/ostc3.inc @ 254:5fe7aff622f3

preparations to set a course for the compass display
author heinrichsweikamp
date Fri, 20 Mar 2015 10:16:49 +0100
parents 20e3bad0b0f2
children ad62dff7739a
comparison
equal deleted inserted replaced
253:b0fbb212ecb7 254:5fe7aff622f3
322 compass_r res 3 322 compass_r res 3
323 323
324 CNS_start res 2 ; CNS value at beginning of dive 324 CNS_start res 2 ; CNS value at beginning of dive
325 GF_start res 1 ; GF value at beginning of dive 325 GF_start res 1 ; GF value at beginning of dive
326 326
327 ;---- Data for graphical compass
328 xRD res 2 ; virtual compass ruler offset
329 xLO res 1 ; lo backup to prevent trashing
330 xHI res 1 ; hi backup to prevent trashing
331
332
327 ;---------------------------- Common DATA ------------------------------------ 333 ;---------------------------- Common DATA ------------------------------------
328 334
329 common equ 0x100 ; Alias for "banksel common" 335 common equ 0x100 ; Alias for "banksel common"
330 common udata_ovr common ; Bank1 general variables 336 common udata_ovr common ; Bank1 general variables
331 337
639 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout 645 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout
640 #DEFINE win_invert flag9,3 ; =1: Invert font output 646 #DEFINE win_invert flag9,3 ; =1: Invert font output
641 #DEFINE show_safety_stop flag9,4 ; =1: Show the safety stop 647 #DEFINE show_safety_stop flag9,4 ; =1: Show the safety stop
642 #DEFINE safety_stop_active flag9,5 ; =1: The safety stop is currently displayed 648 #DEFINE safety_stop_active flag9,5 ; =1: The safety stop is currently displayed
643 #DEFINE new_s8_data_available flag9,6 ; =1: New data frame recieved 649 #DEFINE new_s8_data_available flag9,6 ; =1: New data frame recieved
644 ; unused 650 #DEFINE print_compass_label flag9,7 ; =1: print the graphical comapss label
645 651
646 #DEFINE s8_digital flag10,0; =1: Digital I/O 652 #DEFINE s8_digital flag10,0; =1: Digital I/O
647 #DEFINE menu_show_sensors2 flag10,1; =1: Update mV data in calibration menu 653 #DEFINE menu_show_sensors2 flag10,1; =1: Update mV data in calibration menu
648 #DEFINE use_O2_sensor1 flag10,2; =1: Use this sensor for deco 654 #DEFINE use_O2_sensor1 flag10,2; =1: Use this sensor for deco
649 #DEFINE use_O2_sensor2 flag10,3; =1: Use this sensor for deco 655 #DEFINE use_O2_sensor2 flag10,3; =1: Use this sensor for deco
658 #DEFINE voting_logic_sensor1 flag11,3; =1: This sensor is within the voting logic threshold 664 #DEFINE voting_logic_sensor1 flag11,3; =1: This sensor is within the voting logic threshold
659 #DEFINE voting_logic_sensor2 flag11,4; =1: This sensor is within the voting logic threshold 665 #DEFINE voting_logic_sensor2 flag11,4; =1: This sensor is within the voting logic threshold
660 #DEFINE voting_logic_sensor3 flag11,5; =1: This sensor is within the voting logic threshold 666 #DEFINE voting_logic_sensor3 flag11,5; =1: This sensor is within the voting logic threshold
661 #DEFINE cc_active flag11,6; =1: Constant Current active (cR Hardware) 667 #DEFINE cc_active flag11,6; =1: Constant Current active (cR Hardware)
662 #DEFINE cv_active flag11,7; =1: Constant Voltage active (cR Hardware) 668 #DEFINE cv_active flag11,7; =1: Constant Voltage active (cR Hardware)
663
664 flag12 res 1
665 #DEFINE print_compass_label flag12,0 ; print the grpahical comapss label
666
667 ;---- Data for graphical compass
668 xRD res 2 ; virtual compass ruler offset
669 xLO res 1 ; lo backup to prevent trashing
670 xHI res 1 ; hi backup to prevent trashing
671 669
672 ;============================================================================= 670 ;=============================================================================
673 ; C-code Routines 671 ; C-code Routines
674 ; PART 2 672 ; PART 2
675 extern deco_calc_CNS_decrease_15min 673 extern deco_calc_CNS_decrease_15min