console pid_reset
This commit is contained in:
parent
93ed16dda0
commit
dd654ee3ac
@ -176,6 +176,9 @@ bool patrix_command(char *first) {
|
||||
result = setDouble("i", &integral, NAN, NAN);
|
||||
} else if (strcmp(first, "derivative") == 0 || strcmp(first, "d") == 0) {
|
||||
result = setDouble("d", &derivative, NAN, NAN);
|
||||
} else if (strcmp(first, "pid_reset") == 0) {
|
||||
pid.reset();
|
||||
result = true;
|
||||
}
|
||||
if (result) {
|
||||
pid.setCoefficients(proportional, integral, derivative);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user