Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
braincore committed Nov 29, 2020
1 parent 603fe33 commit 73bc361
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,16 @@ impl<T> Pid<T>
where
T: FloatCore,
{
pub fn new(kp: T, ki: T, kd: T, p_limit: T, i_limit: T, d_limit: T, output_limit: T, setpoint: T) -> Self {
pub fn new(
kp: T,
ki: T,
kd: T,
p_limit: T,
i_limit: T,
d_limit: T,
output_limit: T,
setpoint: T,
) -> Self {
Self {
kp,
ki,
Expand Down Expand Up @@ -228,5 +237,4 @@ mod tests {
pid64.next_control_output(0.0).output
);
}

}

0 comments on commit 73bc361

Please sign in to comment.