comparison src/tft_outputs.asm @ 191:d049511b25c6

minor
author heinrichsweikamp
date Thu, 30 Oct 2014 17:45:50 +0100
parents e79bc535ef9e
children efe70488a04b
comparison
equal deleted inserted replaced
190:a0f9ec25852e 191:d049511b25c6
1570 tft_compass_cardinal_NW: 1570 tft_compass_cardinal_NW:
1571 STRCAT_TEXT tNW 1571 STRCAT_TEXT tNW
1572 return 1572 return
1573 1573
1574 compass_heading_common: 1574 compass_heading_common:
1575 extern compass 1575 call speed_normal
1576 extern compass_filter
1577 rcall TFT_get_compass 1576 rcall TFT_get_compass
1578 rcall TFT_get_compass 1577 rcall TFT_get_compass
1579 rcall TFT_get_compass 1578 rcall TFT_get_compass
1580 rcall TFT_get_compass 1579 rcall TFT_get_compass
1581 rcall TFT_get_compass 1580 rcall TFT_get_compass
1582 rcall TFT_get_compass 1581 rcall TFT_get_compass
1582 extern compass
1583 call compass ; Do compass corrections. 1583 call compass ; Do compass corrections.
1584 banksel common 1584 banksel common
1585 1585
1586 ; More then compass_fast_treshold? 1586 ; More then compass_fast_treshold?
1587 movff compass_heading_old+0,sub_a+0 1587 movff compass_heading_old+0,sub_a+0
1606 movff lo,compass_heading_shown+0 1606 movff lo,compass_heading_shown+0
1607 movff hi,compass_heading_shown+1 1607 movff hi,compass_heading_shown+1
1608 return 1608 return
1609 1609
1610 TFT_get_compass: 1610 TFT_get_compass:
1611 call speed_normal
1612 call I2C_RX_compass ; Test Compass 1611 call I2C_RX_compass ; Test Compass
1613 call I2C_RX_accelerometer ; Test Accelerometer 1612 call I2C_RX_accelerometer ; Test Accelerometer
1613 extern compass_filter
1614 call compass_filter ; Filter Raw compass + accel readings. 1614 call compass_filter ; Filter Raw compass + accel readings.
1615 banksel common 1615 banksel common
1616 return 1616 return
1617 1617
1618 global TFT_debug_output 1618 global TFT_debug_output