add first MGM device unittests

This commit is contained in:
2024-05-09 21:38:56 +02:00
parent 6e5b70af34
commit a4888bce01
3 changed files with 227 additions and 49 deletions

View File

@ -247,7 +247,7 @@ pub mod acs {
pub const FIELD_LSB_PER_GAUSS_12_SENS: f32 = 1.0 / 2281.0;
pub const FIELD_LSB_PER_GAUSS_16_SENS: f32 = 1.0 / 1711.0;
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
#[derive(Default, Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
pub struct MgmLis3RawValues {
pub x: i16,
pub y: i16,