display pico temperature
This commit is contained in:
parent
ef93458e94
commit
4af8cb7aa7
2 changed files with 5 additions and 0 deletions
|
@ -37,4 +37,6 @@ pub enum SensorData {
|
||||||
Magnetometer(Vector3<f32>),
|
Magnetometer(Vector3<f32>),
|
||||||
/// V
|
/// V
|
||||||
BusVoltage(f32),
|
BusVoltage(f32),
|
||||||
|
/// C
|
||||||
|
AmbientTemperature(f32),
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,6 +87,9 @@ async fn print_telem(mut telem: OwnedReadHalf) -> anyhow::Result<()> {
|
||||||
SensorData::BusVoltage(voltage) => {
|
SensorData::BusVoltage(voltage) => {
|
||||||
println!("voltage: {voltage}");
|
println!("voltage: {voltage}");
|
||||||
}
|
}
|
||||||
|
SensorData::AmbientTemperature(temp) => {
|
||||||
|
println!("pico temp {}", temp * 9./5. + 32.);
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue