mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 23:35:34 +03:00
Enable/Disable LCD page cycling using stick combos.
This commit is contained in:
parent
c6d71f148d
commit
4a1b27443f
2 changed files with 13 additions and 0 deletions
|
@ -28,6 +28,8 @@ HIGH - the channel value for the mapped channel input is around 2000
|
||||||
| Trim Acc Right | HIGH | CENTER | CENTER | HIGH |
|
| Trim Acc Right | HIGH | CENTER | CENTER | HIGH |
|
||||||
| Trim Acc Forwards | HIGH | CENTER | HIGH | CENTER |
|
| Trim Acc Forwards | HIGH | CENTER | HIGH | CENTER |
|
||||||
| Trim Acc Backwards | HIGH | CENTER | LOW | CENTER |
|
| Trim Acc Backwards | HIGH | CENTER | LOW | CENTER |
|
||||||
|
| Disable LCD Page Cycling | LOW | CENTER | HIGH | LOW |
|
||||||
|
| Enable LCD Page Cycling | LOW | CENTER | HIGH | HIGH |
|
||||||
| Save setting | LOW | LOW | LOW | HIGH |
|
| Save setting | LOW | LOW | LOW | HIGH |
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,8 @@
|
||||||
#include "io/rc_controls.h"
|
#include "io/rc_controls.h"
|
||||||
#include "io/rc_curves.h"
|
#include "io/rc_curves.h"
|
||||||
|
|
||||||
|
#include "io/display.h"
|
||||||
|
|
||||||
#include "flight/pid.h"
|
#include "flight/pid.h"
|
||||||
#include "flight/navigation.h"
|
#include "flight/navigation.h"
|
||||||
|
|
||||||
|
@ -247,6 +249,15 @@ void processRcStickPositions(rxConfig_t *rxConfig, throttleStatus_e throttleStat
|
||||||
rcDelayCommand = 0; // allow autorepetition
|
rcDelayCommand = 0; // allow autorepetition
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rcSticks == THR_LO + YAW_CE + PIT_HI + ROL_LO) {
|
||||||
|
displayDisablePageCycling();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rcSticks == THR_LO + YAW_CE + PIT_HI + ROL_HI) {
|
||||||
|
displayEnablePageCycling();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isRangeActive(uint8_t auxChannelIndex, channelRange_t *range) {
|
bool isRangeActive(uint8_t auxChannelIndex, channelRange_t *range) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue