added convert to gaus function

This commit is contained in:
2026-02-10 12:36:54 +01:00
parent 625a97b5ad
commit 762c2fc9f4

View File

@@ -168,6 +168,13 @@ pub struct MagneticMessurement {
pub z: f32,
}
impl MagneticMessurement {
/// Convert the µT from the measurement to Gaus. It's just x0.01.
pub fn convert_micro_tesla_to_gaus(tesla: f32) -> f32 {
tesla * 0.01
}
}
/// At what rate to output data
pub enum DataRate {
Unset,