From ad21770d9919d017d527d7fe8dfbda9b16f3711e Mon Sep 17 00:00:00 2001 From: Josh Pieper Date: Fri, 20 Aug 2021 15:30:37 -0400 Subject: [PATCH] Slight tweaks to dyno constants to handle a fixture with newer firmware --- utils/dynamometer_drive.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/dynamometer_drive.cc b/utils/dynamometer_drive.cc index 4c9661e0..1aba9efd 100644 --- a/utils/dynamometer_drive.cc +++ b/utils/dynamometer_drive.cc @@ -637,8 +637,8 @@ class Application { boost::asio::awaitable CommandFixtureRigid() { Controller::PidConstants pid; - pid.ki = 200.0; - pid.kd = 0.15; + pid.ki = 300.0; + pid.kd = 0.35; pid.kp = 5.0; pid.ilimit = 0.3; @@ -737,7 +737,7 @@ class Application { boost::asio::awaitable RunPwmVoltage(double phase, double voltage) { co_await dut_->Command(fmt::format("d pwm {} {}", WrapZeroToTwoPi(phase), voltage)); - co_await Sleep(0.3); + co_await Sleep(0.5); PwmResult result; result.phase = phase; @@ -1332,7 +1332,7 @@ class Application { // We purposefully use no I term to see how good we are with just // PD. Controller::PidConstants pid; - pid.kp = 1.0; + pid.kp = 2.0; pid.kd = 0.05; co_await dut_->ConfigurePid(pid);