mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-18 01:18:52 +08:00
fix comments
This commit is contained in:
@@ -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_ :
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user