Skip to content

Commit

Permalink
Derive some commonly required traits for Pid
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun authored and braincore committed Jan 20, 2020
1 parent 13494aa commit 702e3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
extern crate num_traits;
use num_traits::float::FloatCore;

#[derive(Debug)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pid<T: FloatCore> {
/// Proportional gain.
pub kp: T,
Expand Down

0 comments on commit 702e3da

Please sign in to comment.