Added AZ and EL position readouts
This commit is contained in:
parent
4fb98ee9c5
commit
e0dd01ad17
6 changed files with 95 additions and 28 deletions
10
src/main.rs
10
src/main.rs
|
|
@ -2,9 +2,7 @@
|
|||
#![no_main]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
use core::fmt::Write;
|
||||
|
||||
use defmt::{panic, Format};
|
||||
use defmt::Format;
|
||||
use defmt_rtt as _;
|
||||
use panic_probe as _;
|
||||
|
||||
|
|
@ -15,7 +13,6 @@ use embassy_stm32::Config;
|
|||
use embassy_time::{Duration, Timer};
|
||||
use embassy_util::blocking_mutex::raw::ThreadModeRawMutex;
|
||||
use embassy_util::channel::mpmc::Channel;
|
||||
use embassy_util::Forever;
|
||||
|
||||
mod display;
|
||||
use display::display_task;
|
||||
|
|
@ -74,10 +71,13 @@ async fn main(spawner: Spawner) {
|
|||
|
||||
spawner
|
||||
.spawn(movement_task(
|
||||
p.ADC1,
|
||||
p.PA0,
|
||||
p.PA1,
|
||||
p.PA2,
|
||||
p.PA3,
|
||||
p.PA4,
|
||||
p.PA5,
|
||||
p.PA6,
|
||||
CMD_CHAN.receiver(),
|
||||
POS_CHAN.sender(),
|
||||
STATE_CHAN.sender(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue