We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63bc8f4 commit c80c0dfCopy full SHA for c80c0df
1 file changed
src/communication/Commander.cpp
@@ -287,6 +287,7 @@ void Commander::motor(FOCMotor* motor, char* user_command) {
287
printVerbose(F("Reinit!"));
288
motor->sensor_direction = Direction::UNKNOWN; // reset sensor direction estimation
289
motor->zero_electric_angle = NOT_SET; // reset zero electric angle
290
+ motor->target = 0; // reset target
291
motor->initFOC();
292
println(F("done"));
293
break;
0 commit comments