comparison 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
comparison
equal deleted inserted replaced
551:e3237f580ae9 552:531e7818b737
33 #include "tHome.h" 33 #include "tHome.h"
34 #include "tStructure.h" 34 #include "tStructure.h"
35 #include "tMenuCustom.h" 35 #include "tMenuCustom.h"
36 #include "text_multilanguage.h" 36 #include "text_multilanguage.h"
37 #include "data_central.h" 37 #include "data_central.h"
38 #include "motion.h"
39 #include "gfx_fonts.h"
40 #include "tInfo.h"
38 #include "motion.h" 41 #include "motion.h"
39 42
40 43
41 /* Exported functions --------------------------------------------------------*/ 44 /* Exported functions --------------------------------------------------------*/
42 45
130 default: 133 default:
131 snprintf(&text[4],2,"%u",settingsGetPointer()->MotionDetection); 134 snprintf(&text[4],2,"%u",settingsGetPointer()->MotionDetection);
132 textPointer++; 135 textPointer++;
133 break; 136 break;
134 } 137 }
138 }
139
140 strcpy(&text[textPointer],"\n\r");
141 textPointer += 2;
142
143 if((line == 0) || (line == 6))
144 {
145 text[textPointer++] = TXT_2BYTE;
146 text[textPointer++] = TXT2BYTE_CalibView;
135 strcpy(&text[textPointer],"\n\r"); 147 strcpy(&text[textPointer],"\n\r");
136 textPointer += 2; 148 textPointer += 2;
137 } 149 }
138 #endif 150 #endif
139 151