mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
amazing patch from jef78m for cli set
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@350 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
c6b43776e4
commit
82130ca60f
3 changed files with 4125 additions and 3233 deletions
7345
obj/baseflight.hex
7345
obj/baseflight.hex
File diff suppressed because it is too large
Load diff
10
src/cli.c
10
src/cli.c
|
@ -861,6 +861,16 @@ static void cliSet(char *cmdline)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uartPrint("ERR: Unknown variable name\r\n");
|
uartPrint("ERR: Unknown variable name\r\n");
|
||||||
|
} else {
|
||||||
|
// no equals, check for matching variables.
|
||||||
|
for (i = 0; i < VALUE_COUNT; i++) {
|
||||||
|
if (strstr(valueTable[i].name, cmdline)) {
|
||||||
|
val = &valueTable[i];
|
||||||
|
printf("%s = ", valueTable[i].name);
|
||||||
|
cliPrintVar(val, 0);
|
||||||
|
printf("\r\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#define MSP_PIDNAMES 117 //out message the PID names
|
#define MSP_PIDNAMES 117 //out message the PID names
|
||||||
#define MSP_WP 118 //out message get a WP, WP# is in the payload, returns (WP#, lat, lon, alt, flags) WP#0-home, WP#16-poshold
|
#define MSP_WP 118 //out message get a WP, WP# is in the payload, returns (WP#, lat, lon, alt, flags) WP#0-home, WP#16-poshold
|
||||||
#define MSP_BOXIDS 119 //out message get the permanent IDs associated to BOXes
|
#define MSP_BOXIDS 119 //out message get the permanent IDs associated to BOXes
|
||||||
|
#define MSP_SERVO_CONF 120 //out message Servo settings
|
||||||
|
|
||||||
#define MSP_SET_RAW_RC 200 //in message 8 rc chan
|
#define MSP_SET_RAW_RC 200 //in message 8 rc chan
|
||||||
#define MSP_SET_RAW_GPS 201 //in message fix, numsat, lat, lon, alt, speed
|
#define MSP_SET_RAW_GPS 201 //in message fix, numsat, lat, lon, alt, speed
|
||||||
|
@ -38,6 +39,8 @@
|
||||||
#define MSP_SET_WP 209 //in message sets a given WP (WP#,lat, lon, alt, flags)
|
#define MSP_SET_WP 209 //in message sets a given WP (WP#,lat, lon, alt, flags)
|
||||||
#define MSP_SELECT_SETTING 210 //in message Select Setting Number (0-2)
|
#define MSP_SELECT_SETTING 210 //in message Select Setting Number (0-2)
|
||||||
#define MSP_SET_HEAD 211 //in message define a new heading hold direction
|
#define MSP_SET_HEAD 211 //in message define a new heading hold direction
|
||||||
|
#define MSP_SET_SERVO_CONF 212 //in message Servo settings
|
||||||
|
#define MSP_SET_MOTOR 214 //in message PropBalance function
|
||||||
|
|
||||||
// #define MSP_BIND 240 //in message no param
|
// #define MSP_BIND 240 //in message no param
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue