Skip to content

Commit

Permalink
Add Default for Characteristics
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsided committed Jul 5, 2024
1 parent d1c70c3 commit f7fc47b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/characteristics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,16 @@ pub struct Characteristics {
/// The rate noise density is at 0.03 dps/√Hz.
pub rate_noise_density: f32,
}

impl Default for Characteristics {
fn default() -> Self {
#[allow(clippy::excessive_precision)]
Self {
full_scale: 250,
sensitivity: 8.75,
zero_rate_noise: 10.0,
zero_rate_level_temp: 0.03,
rate_noise_density: 0.03 * 3.5355339059327378
}
}
}

0 comments on commit f7fc47b

Please sign in to comment.