1
Fork 0

display pico temperature

This commit is contained in:
Andy Killorin 2025-02-09 15:33:17 -05:00
parent ef93458e94
commit 4af8cb7aa7
Signed by: ank
GPG key ID: 23F9463ECB67FE8C
2 changed files with 5 additions and 0 deletions

View file

@ -37,4 +37,6 @@ pub enum SensorData {
Magnetometer(Vector3<f32>),
/// V
BusVoltage(f32),
/// C
AmbientTemperature(f32),
}

View file

@ -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.);
}
_ => {}
}