comparison Discovery/Src/t7.c @ 592:f52bc70e380f

MotionCtrl - Sectorview Map sectors directly to custom views: In previous version detection of sector changes lead to a button event which triggered the change of the shown custom view. As result the views shown were depending on the angle which is present while entering focus state. The new implementation maps the primary view to the center sector and assigns the other enabled views around the center => views will always appear at the same angle value.
author Ideenmodellierer
date Sun, 03 Jan 2021 14:43:16 +0100
parents 64bf41faab83
children fd0b60dee6f3
comparison
equal deleted inserted replaced
591:0172431fbad9 592:f52bc70e380f
1599 cv_disabled = 1; 1599 cv_disabled = 1;
1600 } 1600 }
1601 return cv_disabled; 1601 return cv_disabled;
1602 } 1602 }
1603 1603
1604 void t7_change_customview(uint8_t action) 1604 uint8_t t7_change_customview(uint8_t action)
1605 { 1605 {
1606 uint8_t *pViews; 1606 uint8_t *pViews;
1607 uint8_t *pStartView,*pCurView, *pLastView; 1607 uint8_t *pStartView,*pCurView, *pLastView;
1608 _Bool cv_disabled = 0; 1608 _Bool cv_disabled = 0;
1609 1609
1658 action = ACTION_BUTTON_ENTER; 1658 action = ACTION_BUTTON_ENTER;
1659 } 1659 }
1660 } while(cv_disabled); 1660 } while(cv_disabled);
1661 1661
1662 selection_customview = *pViews; 1662 selection_customview = *pViews;
1663 return *pViews;
1663 } 1664 }
1664 1665
1665 void t7_select_customview(uint8_t selectedCustomview) 1666 void t7_select_customview(uint8_t selectedCustomview)
1666 { 1667 {
1667 if(selectedCustomview < CVIEW_END) 1668 if(selectedCustomview < CVIEW_END)