diff Discovery/Src/tMenuCustom.c @ 552:531e7818b737

Added menu structure to acces viewport calibration: A menu item in surface and dive mode has been added to calibrate the view point between diver and OSTC display. For a proper calibration the diver needs to face north (0? ) => Detailed instruction / guidance to be added.
author Ideenmodellierer
date Sun, 08 Nov 2020 18:46:46 +0100
parents e221cf762f45
children fb5bb04ad914
line wrap: on
line diff
--- a/Discovery/Src/tMenuCustom.c	Sun Nov 08 18:43:19 2020 +0100
+++ b/Discovery/Src/tMenuCustom.c	Sun Nov 08 18:46:46 2020 +0100
@@ -36,6 +36,9 @@
 #include "text_multilanguage.h"
 #include "data_central.h"
 #include "motion.h"
+#include "gfx_fonts.h"
+#include "tInfo.h"
+#include "motion.h"
 
 
 /* Exported functions --------------------------------------------------------*/
@@ -132,6 +135,15 @@
 				textPointer++;
 			break;
 		}
+    }
+
+	strcpy(&text[textPointer],"\n\r");
+	textPointer += 2;
+
+    if((line == 0) || (line == 6))
+    {
+		text[textPointer++] = TXT_2BYTE;
+		text[textPointer++] = TXT2BYTE_CalibView;
 		strcpy(&text[textPointer],"\n\r");
 		textPointer += 2;
     }