diff src/tft_outputs.asm @ 544:64a45f203144

NEW: Show Compass calibration results in Compass menu
author heinrichsweikamp
date Wed, 06 Sep 2017 15:34:49 +0200
parents cf68fe0c3002
children 7e6df19264b6
line wrap: on
line diff
--- a/src/tft_outputs.asm	Wed Sep 06 11:08:59 2017 +0200
+++ b/src/tft_outputs.asm	Wed Sep 06 15:34:49 2017 +0200
@@ -3161,6 +3161,44 @@
     PUTC    "h"
     bcf	    leftbind
     return  ; Done.
+    
+    extern  tCalX,tCalY,tCalZ
+    global  menu_cal_x
+menu_cal_x:  
+    lfsr    FSR1,tCalX
+    call    strcat_text
+    movff   compass_CX_f+0,lo
+    movff   compass_CX_f+1,hi
+    call    TFT_convert_signed_16bit	; converts lo:hi into signed-short and adds '-' to POSTINC2 if required
+    bsf		leftbind
+    output_16
+    bcf		leftbind
+    return
+
+    global  menu_cal_y
+menu_cal_y:  
+    lfsr    FSR1,tCalY
+    call    strcat_text
+    movff   compass_CY_f+0,lo
+    movff   compass_CY_f+1,hi
+    call    TFT_convert_signed_16bit	; converts lo:hi into signed-short and adds '-' to POSTINC2 if required
+    bsf		leftbind
+    output_16
+    bcf		leftbind
+    return
+    
+    global  menu_cal_z
+menu_cal_z:  
+    lfsr    FSR1,tCalZ
+    call    strcat_text
+    movff   compass_CZ_f+0,lo
+    movff   compass_CZ_f+1,hi
+    call    TFT_convert_signed_16bit	; converts lo:hi into signed-short and adds '-' to POSTINC2 if required
+    bsf		leftbind
+    output_16
+    bcf		leftbind
+    return
+
 
 ;-----------------------------------------------------------------------------
 ; ppO2 menu