Mercurial > public > ostc4
diff Discovery/Src/base.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 | 028d8f3a9410 |
children | 7b5a063f080f |
line wrap: on
line diff
--- a/Discovery/Src/base.c Thu Mar 11 21:45:22 2021 +0100 +++ b/Discovery/Src/base.c Wed Mar 24 21:28:41 2021 +0100 @@ -522,7 +522,7 @@ { if(get_globalState() != StD) { - suspendMotionDetection(1); /* do not change custom views while divers is operating the computer */ + suspendMotionDetection(10); /* do not change custom views while divers is operating the computer */ } HandleMotionDetection(); } @@ -790,7 +790,7 @@ if ((status.page == PageDive) && (status.line == 0)) { - if((action == ACTION_BUTTON_ENTER) && ((pSettings->MotionDetection == MOTION_DETECT_SECTOR) || (pSettings->MotionDetection == MOTION_DETECT_SCROLL))) + if(action == ACTION_BUTTON_ENTER) { suspendMotionDetection(10); } @@ -799,7 +799,9 @@ else if (status.page == PageSurface) tHome_change_customview_button_pressed(action); else + { tHomeDiveMenuControl(action); + } } break;