comparison src/ostc3.inc @ 214:a17359244d93

compass changes
author heinrichsweikamp
date Sun, 14 Dec 2014 13:56:05 +0100
parents f5d909e03f52
children 8fbd8c5ac51f
comparison
equal deleted inserted replaced
213:3b5df65d53fc 214:a17359244d93
199 #DEFINE gaslist_sp_stepsize .10 ; Steps for Setpoint Setup [cbar] 199 #DEFINE gaslist_sp_stepsize .10 ; Steps for Setpoint Setup [cbar]
200 #DEFINE gaslist_sp_max .160 ; Max. Setpoint [cbar] 200 #DEFINE gaslist_sp_max .160 ; Max. Setpoint [cbar]
201 #DEFINE gaslist_sp_min .50 ; Min. Setpoint [cbar] 201 #DEFINE gaslist_sp_min .50 ; Min. Setpoint [cbar]
202 202
203 ; Compass display 203 ; Compass display
204 #DEFINE compass_fast_treshold .9 ; show new heading instantly if new and old > compass_fast_treshold 204 #DEFINE compass_fast_treshold .9 ; show new heading instantly if new and old > compass_fast_treshold
205 #DEFINE compass_averaging .10 ; numbers of extra averaging
205 206
206 ;---------------------------- Macros ------------------------------------ 207 ;---------------------------- Macros ------------------------------------
207 208
208 TSTOSS macro opt_reg ; TeST Option Skip if not Zero 209 TSTOSS macro opt_reg ; TeST Option Skip if not Zero
209 movff opt_reg,WREG 210 movff opt_reg,WREG
301 302
302 ; Compass more data 303 ; Compass more data
303 compass_heading res 2 ; Corrected heading (in 1°) : -180 .. 180 304 compass_heading res 2 ; Corrected heading (in 1°) : -180 .. 180
304 compass_heading_old res 2 ; Old heading (For smoother display) 305 compass_heading_old res 2 ; Old heading (For smoother display)
305 compass_heading_shown res 2 ; Displayed heading 306 compass_heading_shown res 2 ; Displayed heading
306 compass_roll res 2 ; Rotation around the X axis 307 ;compass_roll res 2 ; Rotation around the X axis
307 compass_pitch res 2 ; Rotation arounf the Y axis 308 ;compass_pitch res 2 ; Rotation arounf the Y axis
308 309
309 compass_a res 2 ; Tmp data for Q15 arithmetics 310 compass_a res 2 ; Tmp data for Q15 arithmetics
310 compass_b res 2 311 compass_b res 2
311 compass_r res 3 312 compass_r res 3
312 313