Mercurial > public > ostc4
comparison Discovery/Src/t7.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 | 49a662df8210 |
children | 3ccf13af4651 |
comparison
equal
deleted
inserted
replaced
641:ed5422ac4ffb | 642:c737cf5d9067 |
---|---|
2933 // plugin box | 2933 // plugin box |
2934 LeftLow.x = CUSTOMBOX_LINE_LEFT; | 2934 LeftLow.x = CUSTOMBOX_LINE_LEFT; |
2935 WidthHeight.x = CUSTOMBOX_LINE_RIGHT - CUSTOMBOX_LINE_LEFT; | 2935 WidthHeight.x = CUSTOMBOX_LINE_RIGHT - CUSTOMBOX_LINE_LEFT; |
2936 LeftLow.y = 60; | 2936 LeftLow.y = 60; |
2937 WidthHeight.y = 440 - LeftLow.y; | 2937 WidthHeight.y = 440 - LeftLow.y; |
2938 if(viewInFocus()) | 2938 if((viewInFocus() && (!viewDetectionSuspended()))) |
2939 { | 2939 { |
2940 GFX_draw_box(&t7screen, LeftLow, WidthHeight, 1, CLUT_Font023); | 2940 GFX_draw_box(&t7screen, LeftLow, WidthHeight, 1, CLUT_Font023); |
2941 } | 2941 } |
2942 else | 2942 else |
2943 { | 2943 { |