Mercurial > public > ostc4
comparison Discovery/Src/settings.c @ 550:af1c3e3abd5f
Make sure motion detection settings are set to default values:
In case the feature has been disabled by compile switch the default value shall be used to make sure SW is in a defined state. Usefull if switching between development and production software
author | Ideenmodellierer |
---|---|
date | Sun, 08 Nov 2020 18:38:53 +0100 |
parents | daa8d4474ba0 |
children | 5d80bb8d22cb |
comparison
equal
deleted
inserted
replaced
549:469e93f8633e | 550:af1c3e3abd5f |
---|---|
1391 Settings.MotionDetection = MOTION_DETECT_OFF; | 1391 Settings.MotionDetection = MOTION_DETECT_OFF; |
1392 corrections++; | 1392 corrections++; |
1393 } | 1393 } |
1394 #else | 1394 #else |
1395 Settings.MotionDetection = MOTION_DETECT_OFF; | 1395 Settings.MotionDetection = MOTION_DETECT_OFF; |
1396 Settings.viewPortMode = 0; | |
1397 Settings.viewRoll = 0.0; | |
1398 Settings.viewPitch = 0.0; | |
1399 Settings.viewYaw = 0.0; | |
1396 #endif | 1400 #endif |
1397 | 1401 |
1398 if(Settings.compassInertia > MAX_COMPASS_COMP) | 1402 if(Settings.compassInertia > MAX_COMPASS_COMP) |
1399 { | 1403 { |
1400 Settings.compassInertia = 0; | 1404 Settings.compassInertia = 0; |