Horus internal GPS: cmake changes, more CLI options, ability to send commands to the module
This commit is contained in:
+9
-1
@@ -712,7 +712,15 @@ int cliShowJitter(const char ** argv)
|
||||
int cliGps(const char ** argv)
|
||||
{
|
||||
int baudrate = 0;
|
||||
if (toInt(argv, 1, &baudrate) > 0 && baudrate > 0) {
|
||||
if (argv[1][0] == '$') {
|
||||
// send command to GPS
|
||||
gpsSendFrame(argv[1]);
|
||||
}
|
||||
else if (!strcmp(argv[1], "trace")) {
|
||||
gpsTraceEnabled = !gpsTraceEnabled;
|
||||
}
|
||||
|
||||
else if (toInt(argv, 1, &baudrate) > 0 && baudrate > 0) {
|
||||
gpsInit(baudrate);
|
||||
serialPrint("GPS baudrate set to %d", baudrate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user