comparison Discovery/Src/t3.c @ 642:c737cf5d9067

Do not show focus indicator in case motion detection is suspended: Motion detection will be suspended in case the diver is operating the OSTC using the buttons. In previous versions the focus indicator was shown even the motion detection was not active => may cause confusion. The indicator is now only shown in case the detection is active Added hystresis for switching between sector views: In previous versions small jitter at the angle signal could cause fast switching of the custom view. An offset has now been added to avoid this scenario
author Ideenmodellierer
date Wed, 24 Mar 2021 21:28:41 +0100
parents ed5422ac4ffb
children 3ccf13af4651
comparison
equal deleted inserted replaced
641:ed5422ac4ffb 642:c737cf5d9067
413 pSettings = settingsGetPointer(); 413 pSettings = settingsGetPointer();
414 414
415 start.x = 0; 415 start.x = 0;
416 stop.x = 799; 416 stop.x = 799;
417 stop.y = start.y = BigFontSeperationTopBottom; 417 stop.y = start.y = BigFontSeperationTopBottom;
418 if(viewInFocus()) 418 if((viewInFocus()) && (!viewDetectionSuspended()))
419 { 419 {
420 GFX_draw_line(tXscreen, start, stop, CLUT_Font023); 420 GFX_draw_line(tXscreen, start, stop, CLUT_Font023);
421 } 421 }
422 else 422 else
423 { 423 {
427 427
428 start.y = BigFontSeperationTopBottom; 428 start.y = BigFontSeperationTopBottom;
429 stop.y = 479; 429 stop.y = 479;
430 430
431 stop.x = start.x = BigFontSeperationLeftRight; 431 stop.x = start.x = BigFontSeperationLeftRight;
432 if(viewInFocus()) 432 if((viewInFocus() && (!viewDetectionSuspended())))
433 { 433 {
434 GFX_draw_line(tXscreen, start, stop, CLUT_Font023); 434 GFX_draw_line(tXscreen, start, stop, CLUT_Font023);
435 } 435 }
436 else 436 else
437 { 437 {