Added movement pins
This commit is contained in:
parent
90768d9bf0
commit
275dea77e9
4 changed files with 105 additions and 42 deletions
|
|
@ -60,11 +60,15 @@ pub async fn display_task(
|
|||
.draw(&mut display)
|
||||
.unwrap();
|
||||
|
||||
Text::new("AZ: 23", Point::new(1, 17), text_large)
|
||||
let mut tmp: String<16> = String::new();
|
||||
write!(tmp, "AZ: {}", rotor_state.actual_pos.az).unwrap();
|
||||
Text::new(&tmp, Point::new(1, 17), text_large)
|
||||
.draw(&mut display)
|
||||
.unwrap();
|
||||
|
||||
Text::new("EL: 42", Point::new(64, 17), text_large)
|
||||
tmp.clear();
|
||||
write!(tmp, "EL: {}", rotor_state.actual_pos.el).unwrap();
|
||||
Text::new(&tmp, Point::new(64, 17), text_large)
|
||||
.draw(&mut display)
|
||||
.unwrap();
|
||||
|
||||
|
|
@ -73,7 +77,7 @@ pub async fn display_task(
|
|||
.draw(&mut display)
|
||||
.unwrap();
|
||||
|
||||
let mut tmp: String<16> = String::new();
|
||||
tmp.clear();
|
||||
write!(tmp, "AZ: {}", rotor_state.setpoint_pos.az).unwrap();
|
||||
Text::new(&tmp, Point::new(1, 30), text_large_inv)
|
||||
.draw(&mut display)
|
||||
|
|
@ -88,7 +92,7 @@ pub async fn display_task(
|
|||
display.flush().unwrap();
|
||||
|
||||
let result = select(
|
||||
Timer::after(Duration::from_millis(100)),
|
||||
Timer::after(Duration::from_millis(500)),
|
||||
cmd_receiver.recv(),
|
||||
)
|
||||
.await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue