From 4af8cb7aa7495e7a65c735d83667996bc87bc2c6 Mon Sep 17 00:00:00 2001 From: Andy Killorin <37423245+Speedy6451@users.noreply.github.com> Date: Sun, 9 Feb 2025 15:33:17 -0500 Subject: [PATCH] display pico temperature --- common/src/lib.rs | 2 ++ interface/src/main.rs | 3 +++ 2 files changed, 5 insertions(+) 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.); + } _ => {} }