Mercurial > public > hwos_code
comparison src/compass_ops.asm @ 626:be8787f2034d
compass3 support for 3.01 branch
author | heinrichsweikamp |
---|---|
date | Sun, 23 Jun 2019 15:21:16 +0200 |
parents | 1ad0531e9078 |
children |
comparison
equal
deleted
inserted
replaced
625:5c2ca77ce2df | 626:be8787f2034d |
---|---|
232 decf opt_compass_gain,F ; Reduce by one | 232 decf opt_compass_gain,F ; Reduce by one |
233 btfsc STATUS,N ; <0? | 233 btfsc STATUS,N ; <0? |
234 clrf opt_compass_gain ; Yes, keep at zero | 234 clrf opt_compass_gain ; Yes, keep at zero |
235 | 235 |
236 banksel common | 236 banksel common |
237 call I2C_init_compass | |
237 call I2C_init_accelerometer | 238 call I2C_init_accelerometer |
238 call I2C_init_compass | 239 |
239 | 240 btfsc compass_type3 ; compass3? |
240 ; btfsc compass_type ; compass1? | 241 bra compass_calibration_loop1 ; Yes, skip gain stuff |
241 ; bra compass_calibration_loop1 ; Yes, skip gain stuff | |
242 | 242 |
243 rcall TFT_compass_show_gain ; show the current compass gain | 243 rcall TFT_compass_show_gain ; show the current compass gain |
244 | 244 |
245 WAITMS d'250' | 245 WAITMS d'250' |
246 WAITMS d'250' ; wait for first reading... | 246 WAITMS d'250' ; wait for first reading... |