mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-22 08:04:07 +08:00
Update to devel
This commit is contained in:
@@ -17,7 +17,7 @@ void Controller::reset() {
|
||||
|
||||
void Controller::set_error(Error error) {
|
||||
error_ |= error;
|
||||
last_error_time_ = axis_->loop_counter_ * current_meas_period;
|
||||
last_error_time_ = odrv.n_evt_control_loop_ * current_meas_period;
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
@@ -98,7 +98,6 @@ static float limitVel(const float vel_limit, const float vel_estimate, const flo
|
||||
}
|
||||
|
||||
bool Controller::update() {
|
||||
axis_->loop_counter_++;
|
||||
std::optional<float> pos_estimate_linear = pos_estimate_linear_src_.present();
|
||||
std::optional<float> pos_estimate_circular = pos_estimate_circular_src_.present();
|
||||
std::optional<float> pos_wrap = pos_wrap_src_.present();
|
||||
|
||||
@@ -339,7 +339,7 @@ bool Motor::setup() {
|
||||
|
||||
void Motor::disarm_with_error(Motor::Error error){
|
||||
error_ |= error;
|
||||
last_error_time_ = axis_->loop_counter_ * current_meas_period;
|
||||
last_error_time_ = odrv.n_evt_control_loop_ * current_meas_period;
|
||||
disarm();
|
||||
}
|
||||
|
||||
|
||||
+1
-1
Submodule Firmware/Private updated: fa10f26681...260d6e71fd
Reference in New Issue
Block a user