-
Notifications
You must be signed in to change notification settings - Fork 0
Rewrite: Embassy + SBG + Prost #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… patterns warnings
| pub fn arm(&mut self) { | ||
| if self.ejection_enable.is_high() { | ||
| info!("arm ejection enabled"); | ||
| self.arming.main.set_high(); | ||
| self.arming.main_b.set_high(); | ||
|
|
||
| self.arming.drogue.set_high(); | ||
| self.arming.main_b.set_high(); | ||
| } | ||
| } | ||
|
|
||
| pub fn disarm(&mut self) { | ||
| info!("arm ejection disabled"); | ||
| self.arming.main.set_low(); | ||
| self.arming.main_b.set_low(); | ||
|
|
||
| self.arming.drogue.set_low(); | ||
| self.arming.main_b.set_low(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to call self.arming.main_b.set_low(); and self.arming.main_b.set_high(); in rapid succession? like that?
drogue_b?
| // --- Spawning Tasks --- | ||
| // spawner.must_spawn(led_blinker_task(p.PB14)); | ||
|
|
||
| // spawner.must_spawn(uart_dma_reader_task(ring_rx)); | ||
| // spawner.must_spawn(uart_gps_dma_reader_task(ring_gps_rx, gps_tx)); | ||
| // spawner.must_spawn(sbg_parser_task(tx)); | ||
| // spawner.must_spawn(sbg_receiver_task()); | ||
| // spawner.must_spawn(baro_reader_task(baro)); | ||
| // spawner.must_spawn(ai_task()); | ||
| // pass control of the spawner to the state machine | ||
| // spawner.must_spawn(sm_task(spawner, state_machine)); | ||
| spawner.must_spawn(radio_reader_task(radio_ring_rx)); | ||
| spawner.must_spawn(radio_writer_task(radio_tx)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not uncomment and use #[cfg(feature = "gps")], sbg, baro etc? Just set the default features being all the ones we will be using.
If you want to make experiments just use cargo run --features "gps-ublox" (or gps-nmea) etc
No description provided.