phoxal 0.6.0

Phoxal — production-oriented autonomous robot framework (engine, model, typed bus, contracts).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use derive_new::new;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize, new)]
pub struct Sample {
    magnetic_field: [f32; 3],
}

impl Sample {
    pub const fn magnetic_field(&self) -> &[f32; 3] {
        &self.magnetic_field
    }
}

pub const KIND: &str = "magnetometer";