Mercurial > public > ostc4
diff Discovery/Inc/motion.h @ 597:132e7e3d13a7
MotionControl-Sector: Map sectors during switch T7 <=> T3:
The number and available custom views may differ between the setup for T3 and T7 view. That's why the sectors have to be remapped during every T3 <=> T7 switch
author | Ideenmodellierer |
---|---|
date | Mon, 04 Jan 2021 21:38:28 +0100 |
parents | e3237f580ae9 |
children | 916998f90e39 |
line wrap: on
line diff
--- a/Discovery/Inc/motion.h Mon Jan 04 21:35:38 2021 +0100 +++ b/Discovery/Inc/motion.h Mon Jan 04 21:38:28 2021 +0100 @@ -76,6 +76,7 @@ void resetMotionDeltaHistory(); void evaluateMotionDelta(float roll, float pitch, float yaw); void DefinePitchSectors(float centerAngle, uint8_t numOfSectors); +void MapCVToSector(void); detectionState_t detectPitch(float currentPitch); detectionState_t detectSectorButtonEvent(float curPitch); detectionState_t detectScrollButtonEvent(float curPitch);