Skip to content

Commit

Permalink
Slight tweaks to dyno constants to handle a fixture with newer firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
jpieper committed Aug 20, 2021
1 parent ccdb3b8 commit ad21770
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/dynamometer_drive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,8 @@ class Application {

boost::asio::awaitable<void> 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;

Expand Down Expand Up @@ -737,7 +737,7 @@ class Application {
boost::asio::awaitable<PwmResult> 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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit ad21770

Please sign in to comment.