fix comments

This commit is contained in:
Samuel Sadok
2021-09-03 15:41:12 +02:00
parent 2d06453a46
commit d86a86a936
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -287,7 +287,6 @@ bool Axis::start_closed_loop_control() {
}
// To avoid any transient on startup, we intialize the setpoint to be the current position
// note - input_pos_ is not set here. It is set to 0 earlier in this method and velocity control is used.
if (controller_.config_.control_mode >= Controller::CONTROL_MODE_POSITION_CONTROL) {
std::optional<float> pos_init = (controller_.config_.circular_setpoints ?
controller_.pos_estimate_circular_src_ :
+1
View File
@@ -9,6 +9,7 @@ bool Controller::apply_config() {
}
void Controller::reset() {
// pos_setpoint is initialized in start_closed_loop_control
vel_setpoint_ = 0.0f;
vel_integrator_torque_ = 0.0f;
torque_setpoint_ = 0.0f;