tasks: demo: build++
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user