Skip to content

Commit

Permalink
Run wpiformat
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Jun 13, 2024
1 parent ab2a350 commit 3d15a03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ SimpleMotorFeedforward<Distance>::SimpleMotorFeedforward(
auto plant = LinearSystemId::IdentifyVelocitySystem<Distance>(kV, kA);
feedforward = LinearPlantInversionFeedforward<1, 1>{plant, periodSeconds};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ class SimpleMotorFeedforward {
* @param kA The acceleration gain, in volt seconds² per distance.
* @param period The period in seconds.
*/
SimpleMotorFeedforward(
units::volt_t kS, units::unit_t<kv_unit> kV,
units::unit_t<ka_unit> kA = units::unit_t<ka_unit>(0),
units::second_t dt = 20_ms)
SimpleMotorFeedforward(units::volt_t kS, units::unit_t<kv_unit> kV,
units::unit_t<ka_unit> kA = units::unit_t<ka_unit>(0),
units::second_t dt = 20_ms)
: kS(kS),
kV([&] {
if (kV.value() < 0) {
Expand Down

0 comments on commit 3d15a03

Please sign in to comment.