Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 13, 2024
1 parent da3cce7 commit d3360f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public Voltage calculate(LinearVelocity currentVelocity, LinearVelocity nextVelo
//
// uₖ = B_d⁺(xₖ₊₁ − A_d xₖ) + kg + kₛ sgn(x)
// uₖ = (1/kᵥ)⁺(xₖ₊₁ − (0) xₖ) + kg + kₛ sgn(x)
// uₖ = kₛ sgn(x) + kg + kᵥxₖ₊₁
// uₖ = kₛ sgn(x) + kg + kᵥxₖ₊₁
output.mut_replace(
kg
+ ks * Math.signum(nextVelocity.in(MetersPerSecond))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class ElevatorFeedforward {
//
// uₖ = B_d⁺(xₖ₊₁ − A_d xₖ) + kg + kₛ sgn(x)
// uₖ = (1/kᵥ)⁺(xₖ₊₁ − (0) xₖ) + kg + kₛ sgn(x)
// uₖ = kₛ sgn(x) + kg + kᵥxₖ₊₁
// uₖ = kₛ sgn(x) + kg + kᵥxₖ₊₁
return kS * wpi::sgn(nextVelocity) + kG + kV * nextVelocity;
} else {
// uₖ = B_d⁺(rₖ₊₁ − A_d rₖ)
Expand Down

0 comments on commit d3360f1

Please sign in to comment.