comparison Discovery/Src/tInfo.c @ 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 92a5dc16d52b
children cd4561c33758
comparison
equal deleted inserted replaced
1006:75f958ca5d0e 1007:65d35e66efb9
296 { 296 {
297 tInfo_write_content_simple( 30, 340, 90, &FontT48, "Logbook", CLUT_Font020); 297 tInfo_write_content_simple( 30, 340, 90, &FontT48, "Logbook", CLUT_Font020);
298 298
299 } 299 }
300 300
301
302 void tInfo_drawPixel(int16_t x, int16_t y, uint8_t color)
303 {
304 int8_t xoff;
305 int8_t yoff;
306
307 for (xoff = -1; xoff < 2; xoff++)
308 {
309 for (yoff = -1; yoff < 2; yoff++)
310 {
311 GFX_draw_pixel(&tIscreen, x + xoff, y + yoff, color);
312 }
313 }
314 GFX_draw_pixel(&tIscreen, x, y, color);
315 }
316
317 void tInfo_draw_colorline(point_t start, point_t stop, uint8_t color)
318 {
319 GFX_draw_colorline(&tIscreen, start, stop, color);
320 }
321
322 void t_Info_draw_circle(point_t center, uint8_t radius, int8_t color)
323 {
324 GFX_draw_circle(&tIscreen, center, radius, color);
325 }
326
301 void tInfo_write_content_simple(uint16_t XleftGimpStyle, uint16_t XrightGimpStyle, uint16_t YtopGimpStyle, const tFont *Font, const char *text, uint8_t color) 327 void tInfo_write_content_simple(uint16_t XleftGimpStyle, uint16_t XrightGimpStyle, uint16_t YtopGimpStyle, const tFont *Font, const char *text, uint8_t color)
302 { 328 {
303 GFX_DrawCfgWindow hgfx; 329 GFX_DrawCfgWindow hgfx;
304 330
305 if(XrightGimpStyle > 799) 331 if(XrightGimpStyle > 799)