Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class SimpleFlightApi : public MultirotorApiBase {
return 0.5f; //measured in simulator by firing commands "MoveToLocation -x 0 -y 0" multiple times and looking at distance traveled
}

virtual void commandMotorPWMs(float front_right_pwm, float rear_left_pwm, float front_left_pwm, float rear_right_pwm)
virtual void commandMotorPWMs(float front_right_pwm, float rear_left_pwm, float front_left_pwm, float rear_right_pwm) override
{
//Utils::log(Utils::stringf("commandMotorPWMs %f, %f, %f, %f", front_right_pwm, rear_left_pwm, front_left_pwm, rear_right_pwm));

Expand Down Expand Up @@ -362,6 +362,11 @@ class SimpleFlightApi : public MultirotorApiBase {
params_.position_pid.d.setValues(kd_axis4);
params_.gains_changed = true;
break;
case simple_flight::GoalModeType::Unknown:
case simple_flight::GoalModeType::Passthrough:
case simple_flight::GoalModeType::ConstantOutput:
// no gains to set associated with these modes
break;
}
}

Expand Down