comparison src/ostc3.inc @ 170:8bcb064b4fb8

CHANGE: Compass readout smoothed 1.53 beta release
author heinrichsweikamp
date Tue, 30 Sep 2014 10:35:47 +0200
parents b5b55df4d83f
children 2f1f3da0ae98
comparison
equal deleted inserted replaced
169:dcf3e08f31ac 170:8bcb064b4fb8
191 #DEFINE gaslist_sp_stepsize .10 ; Steps for Setpoint Setup [cbar] 191 #DEFINE gaslist_sp_stepsize .10 ; Steps for Setpoint Setup [cbar]
192 #DEFINE gaslist_sp_max .160 ; Max. Setpoint [cbar] 192 #DEFINE gaslist_sp_max .160 ; Max. Setpoint [cbar]
193 #DEFINE gaslist_sp_min .50 ; Min. Setpoint [cbar] 193 #DEFINE gaslist_sp_min .50 ; Min. Setpoint [cbar]
194 194
195 ; Compass display 195 ; Compass display
196 #DEFINE compass_fast_treshold .12 ; Faster update if new and old > compass_fast_treshold 196 #DEFINE compass_fast_treshold .9 ; show new heading instantly if new and old > compass_fast_treshold
197 197
198 ;---------------------------- Macros ------------------------------------ 198 ;---------------------------- Macros ------------------------------------
199 199
200 TSTOSS macro opt_reg ; TeST Option Skip if not Zero 200 TSTOSS macro opt_reg ; TeST Option Skip if not Zero
201 movff opt_reg,WREG 201 movff opt_reg,WREG
292 compass_CZ_f res 2 292 compass_CZ_f res 2
293 293
294 ; Compass more data 294 ; Compass more data
295 compass_heading res 2 ; Corrected heading (in 1°) : -180 .. 180 295 compass_heading res 2 ; Corrected heading (in 1°) : -180 .. 180
296 compass_heading_old res 2 ; Old heading (For smoother display) 296 compass_heading_old res 2 ; Old heading (For smoother display)
297 compass_heading_shown res 2 ; Displayed heading
297 compass_roll res 2 ; Rotation around the X axis 298 compass_roll res 2 ; Rotation around the X axis
298 compass_pitch res 2 ; Rotation arounf the Y axis 299 compass_pitch res 2 ; Rotation arounf the Y axis
299 300
300 compass_a res 2 ; Tmp data for Q15 arithmetics 301 compass_a res 2 ; Tmp data for Q15 arithmetics
301 compass_b res 2 302 compass_b res 2
612 #DEFINE compass_enabled flag8,7 ; =1: The compass and accelerometer chip is active 613 #DEFINE compass_enabled flag8,7 ; =1: The compass and accelerometer chip is active
613 614
614 #DEFINE compass_fast_mode flag9,0 ; =1: The compass is in fast mode 615 #DEFINE compass_fast_mode flag9,0 ; =1: The compass is in fast mode
615 #DEFINE in_color_menu flag9,1 ; =1: In the color scheme menu 616 #DEFINE in_color_menu flag9,1 ; =1: In the color scheme menu
616 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout 617 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout
617 #DEFINE event2_occured flag9,3 ; =1: An event in the Eventbyte2 occured, store it! 618 ; unused
618 #DEFINE show_safety_stop flag9,4 ; =1: Show the safety stop 619 #DEFINE show_safety_stop flag9,4 ; =1: Show the safety stop
619 #DEFINE safety_stop_active flag9,5 ; =1: The safety stop is currently displayed 620 #DEFINE safety_stop_active flag9,5 ; =1: The safety stop is currently displayed
620 #DEFINE new_s8_data_available flag9,6 ; =1: New data frame recieved 621 #DEFINE new_s8_data_available flag9,6 ; =1: New data frame recieved
621 #DEFINE c3_hardware flag9,7; =1: OSTC 3C hardware 622 #DEFINE c3_hardware flag9,7; =1: OSTC 3C hardware
622 623