mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
add SET_POI and SET_HEAD to WP types recognised by CLI wp command (#6418)
This commit is contained in:
parent
220a43ec86
commit
1401a9997d
1 changed files with 5 additions and 5 deletions
|
@ -1334,7 +1334,7 @@ static void cliSafeHomes(char *cmdline)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#if defined(USE_NAV) && defined(NAV_NON_VOLATILE_WAYPOINT_STORAGE) && defined(NAV_NON_VOLATILE_WAYPOINT_CLI)
|
#if defined(USE_NAV) && defined(NAV_NON_VOLATILE_WAYPOINT_STORAGE) && defined(NAV_NON_VOLATILE_WAYPOINT_CLI)
|
||||||
static void printWaypoints(uint8_t dumpMask, const navWaypoint_t *navWaypoint, const navWaypoint_t *defaultNavWaypoint)
|
static void printWaypoints(uint8_t dumpMask, const navWaypoint_t *navWaypoint, const navWaypoint_t *defaultNavWaypoint)
|
||||||
{
|
{
|
||||||
|
@ -1457,7 +1457,7 @@ static void cliWaypoints(char *cmdline)
|
||||||
|
|
||||||
if (!(validArgumentCount == 6 || validArgumentCount == 8)) {
|
if (!(validArgumentCount == 6 || validArgumentCount == 8)) {
|
||||||
cliShowParseError();
|
cliShowParseError();
|
||||||
} else if (!(action == 0 || action == NAV_WP_ACTION_WAYPOINT || action == NAV_WP_ACTION_RTH || action == NAV_WP_ACTION_JUMP || action == NAV_WP_ACTION_HOLD_TIME || action == NAV_WP_ACTION_LAND) || (p1 < 0) || !(flag == 0 || flag == NAV_WP_FLAG_LAST)) {
|
} else if (!(action == 0 || action == NAV_WP_ACTION_WAYPOINT || action == NAV_WP_ACTION_RTH || action == NAV_WP_ACTION_JUMP || action == NAV_WP_ACTION_HOLD_TIME || action == NAV_WP_ACTION_LAND || action == NAV_WP_ACTION_SET_POI || action == NAV_WP_ACTION_SET_HEAD) || !(flag == 0 || flag == NAV_WP_FLAG_LAST)) {
|
||||||
cliShowParseError();
|
cliShowParseError();
|
||||||
} else {
|
} else {
|
||||||
posControl.waypointList[i].action = action;
|
posControl.waypointList[i].action = action;
|
||||||
|
@ -2591,7 +2591,7 @@ void cliRxBind(char *cmdline){
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if defined(USE_RX_SPI)
|
#if defined(USE_RX_SPI)
|
||||||
else if (rxConfig()->receiverType == RX_TYPE_SPI) {
|
else if (rxConfig()->receiverType == RX_TYPE_SPI) {
|
||||||
switch (rxConfig()->rx_spi_protocol) {
|
switch (rxConfig()->rx_spi_protocol) {
|
||||||
|
@ -2599,7 +2599,7 @@ void cliRxBind(char *cmdline){
|
||||||
cliPrint("Not supported.");
|
cliPrint("Not supported.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -3304,7 +3304,7 @@ static void printConfig(const char *cmdline, bool doDiff)
|
||||||
|
|
||||||
#if defined(USE_SAFE_HOME)
|
#if defined(USE_SAFE_HOME)
|
||||||
cliPrintHashLine("safehome");
|
cliPrintHashLine("safehome");
|
||||||
printSafeHomes(dumpMask, safeHomeConfig_CopyArray, safeHomeConfig(0));
|
printSafeHomes(dumpMask, safeHomeConfig_CopyArray, safeHomeConfig(0));
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_PROGRAMMING_FRAMEWORK
|
#ifdef USE_PROGRAMMING_FRAMEWORK
|
||||||
cliPrintHashLine("logic");
|
cliPrintHashLine("logic");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue