tasks: demo: build++

This commit is contained in:
2026-02-28 17:00:30 +01:00
parent 816cc20087
commit 54ebbbaea7

View File

@@ -17,7 +17,7 @@ pub async fn demo_task(ui: DynPublisher<'static, Prediction>) {
for state in [SensorState::Offline, SensorState::AcquiringFix, SensorState::Degraded, SensorState::Offline] {
for motion in [MotionState::Accelerating, MotionState::Steady, MotionState::Decelerating, MotionState::Stationary] {
ui.publish(Prediction::Motion { prev: motion, next: motion }).await;
for sensor in [SensorSource::ForwardsReference, SensorSource::GPS, SensorSource::GravityReference, SensorSource::IMU, SensorSource::Location] {
for sensor in [SensorSource::MotionFrame, SensorSource::GPS, SensorSource::IMU, SensorSource::Location] {
ui.publish(Prediction::SensorStatus(sensor, state)).await;
}
Timer::after_secs(1).await;