comparison Discovery/Inc/tInfoCompass.h @ 1007:65d35e66efb9 GasConsumption

Improve compass calibration dialog: The previous calibration dialog showed some "magic" numbers and a 60 second count down. The new version is trying to guide the user through the calibration process: first rotate pitch, then roll and at last yaw angle. A step to the next angle is taken when enough data per angle is collected (change from red to green). To enable the yaw visualization a simple calibration is done while rotating the axis. The function behind the calibration was not modified => the suggested process can be ignored and the same handling as the with old dialog may be applied. With the new process the dialog may be left early. Anyhow it will still be left after 60 seconds and the fine calibration is performed in the same way as before.
author Ideenmodellierer
date Mon, 05 May 2025 21:02:34 +0200
parents b7b481df4f22
children
comparison
equal deleted inserted replaced
1006:75f958ca5d0e 1007:65d35e66efb9
26 26
27 /* Define to prevent recursive inclusion -------------------------------------*/ 27 /* Define to prevent recursive inclusion -------------------------------------*/
28 #ifndef TINFO_COMPASS_H 28 #ifndef TINFO_COMPASS_H
29 #define TINFO_COMPASS_H 29 #define TINFO_COMPASS_H
30 30
31 #include "gfx.h"
32
33 typedef struct
34 {
35 point_t coord;
36 point_t eclipse;
37 uint8_t check[360];
38 } axisIndicator_t;
39
31 /* Exported functions --------------------------------------------------------*/ 40 /* Exported functions --------------------------------------------------------*/
32 void openInfo_Compass(void); 41 void openInfo_Compass(void);
33 void refreshInfo_Compass(GFX_DrawCfgScreen s); 42 void refreshInfo_Compass(GFX_DrawCfgScreen s);
34 43
35 44