diff --git a/common/src/lib.rs b/common/src/lib.rs index 3f726d7..f13f358 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -37,4 +37,6 @@ pub enum SensorData { Magnetometer(Vector3), /// V BusVoltage(f32), + /// C + AmbientTemperature(f32), } diff --git a/interface/src/main.rs b/interface/src/main.rs index 219f782..2ba68cd 100644 --- a/interface/src/main.rs +++ b/interface/src/main.rs @@ -87,6 +87,9 @@ async fn print_telem(mut telem: OwnedReadHalf) -> anyhow::Result<()> { SensorData::BusVoltage(voltage) => { println!("voltage: {voltage}"); } + SensorData::AmbientTemperature(temp) => { + println!("pico temp {}", temp * 9./5. + 32.); + } _ => {} }