Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditXtra.c @ 547:12f8745c8a94
Added viewport calibration to dive menu:
To allow adjustments of the viewport during dive an option has been added to the dive menu "Xtra" including multi language strings
author | Ideenmodellierer |
---|---|
date | Mon, 02 Nov 2020 21:17:45 +0100 |
parents | 77de014928d6 |
children | 531e7818b737 |
comparison
equal
deleted
inserted
replaced
546:daa8d4474ba0 | 547:12f8745c8a94 |
---|---|
32 #include "gfx_fonts.h" | 32 #include "gfx_fonts.h" |
33 #include "simulation.h" | 33 #include "simulation.h" |
34 #include "timer.h" | 34 #include "timer.h" |
35 #include "tMenuEdit.h" | 35 #include "tMenuEdit.h" |
36 #include "data_exchange_main.h" | 36 #include "data_exchange_main.h" |
37 #include "motion.h" | |
37 | 38 |
38 | 39 |
39 /* Private function prototypes -----------------------------------------------*/ | 40 /* Private function prototypes -----------------------------------------------*/ |
40 void openEdit_CompassHeading(void); | 41 void openEdit_CompassHeading(void); |
41 void openEdit_ResetStopwatch(void); | 42 void openEdit_ResetStopwatch(void); |
64 break; | 65 break; |
65 case 3: | 66 case 3: |
66 openEdit_SetManualMarker(); | 67 openEdit_SetManualMarker(); |
67 break; | 68 break; |
68 case 4: | 69 case 4: |
70 openEdit_CalibViewport(); | |
71 break; | |
72 case 5: | |
69 if(is_stateUsedSetToSim()) | 73 if(is_stateUsedSetToSim()) |
70 { | 74 { |
71 openEdit_SimFollowDecostops(); | 75 openEdit_SimFollowDecostops(); |
72 } | 76 } |
73 else | 77 else |
101 { | 105 { |
102 simulation_set_heed_decostops(!simulation_get_heed_decostops()); | 106 simulation_set_heed_decostops(!simulation_get_heed_decostops()); |
103 exitMenuEdit_to_Menu_with_Menu_Update(); | 107 exitMenuEdit_to_Menu_with_Menu_Update(); |
104 } | 108 } |
105 | 109 |
110 void openEdit_CalibViewport(void) | |
111 { | |
112 calibrateViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading); | |
113 exitMenuEdit_to_Home(); | |
114 } | |
115 | |
106 void refresh_CompassHeading(void) | 116 void refresh_CompassHeading(void) |
107 { | 117 { |
108 uint16_t heading; | 118 uint16_t heading; |
109 char text[32]; | 119 char text[32]; |
110 | 120 |