1
0
Fork 0
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:
Jonathan Hudson 2021-07-07 10:26:42 +01:00 committed by GitHub
parent 1c77fafe47
commit 6b3fb82c54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 63 additions and 18 deletions

View file

@ -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