mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
replace WP toggle with discrete commands
This commit is contained in:
parent
1c77fafe47
commit
6b3fb82c54
4 changed files with 63 additions and 18 deletions
|
@ -260,9 +260,14 @@ void processRcStickPositions(throttleStatus_e throttleStatus)
|
|||
|
||||
// Load waypoint list
|
||||
if (rcSticks == THR_LO + YAW_CE + PIT_HI + ROL_HI) {
|
||||
const bool success = loadNonVolatileWaypointList(true);
|
||||
const bool success = loadNonVolatileWaypointList(false);
|
||||
beeper(success ? BEEPER_ACTION_SUCCESS : BEEPER_ACTION_FAIL);
|
||||
}
|
||||
|
||||
if (rcSticks == THR_LO + YAW_CE + PIT_LO + ROL_HI) {
|
||||
resetWaypointList();
|
||||
beeper(BEEPER_ACTION_FAIL); // The above cannot fail, but traditionally, we play FAIL for not-loading
|
||||
}
|
||||
#endif
|
||||
|
||||
// Multiple configuration profiles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue