Mercurial > public > hwos_code
comparison src/compass_ops.asm @ 604:ca4556fb60b9
bump to 2.99beta, work on 3.00 stable
author | heinrichsweikamp |
---|---|
date | Thu, 22 Nov 2018 19:47:26 +0100 |
parents | b455b31ce022 |
children | d866684249bd |
comparison
equal
deleted
inserted
replaced
603:00b24fb4324d | 604:ca4556fb60b9 |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File compass_ops.asm V2.98 | 3 ; File compass_ops.asm V2.98a |
4 ; | 4 ; |
5 ; Compass Operations | 5 ; Compass Operations |
6 ; | 6 ; |
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. |
8 ;============================================================================= | 8 ;============================================================================= |
1444 call I2C_RX_accelerometer ; Test Accelerometer | 1444 call I2C_RX_accelerometer ; Test Accelerometer |
1445 call compass_filter ; Filter Raw compass + accel readings. | 1445 call compass_filter ; Filter Raw compass + accel readings. |
1446 banksel common | 1446 banksel common |
1447 return | 1447 return |
1448 | 1448 |
1449 global TFT_surf_set_bearing | |
1450 TFT_surf_set_bearing: | |
1451 btfsc premenu | |
1452 return ; Already shown, return | |
1453 bsf premenu ; set flag | |
1454 WIN_BOX_BLACK surf_compass_bear_row,surf_warning1_row-1, surf_compass_bear_column, surf_decotype_column-.1 ; top, bottom, left, right | |
1455 WIN_SMALL surf_compass_bear_column,surf_compass_bear_row | |
1456 WIN_COLOR color_yellow | |
1457 bsf win_invert | |
1458 STRCPY_TEXT_PRINT tSetHeading ; 7 chars | |
1459 bcf win_invert | |
1460 return | |
1461 | |
1462 END | 1449 END |