Skip to content

Conversation

@n123xyz
Copy link
Contributor

@n123xyz n123xyz commented Jun 29, 2025

No description provided.

Comment on lines 100 to 118
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();
}
Copy link
Contributor

@seofernando25 seofernando25 Aug 11, 2025

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?

Comment on lines 187 to 199
// --- 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));
Copy link
Contributor

@seofernando25 seofernando25 Aug 11, 2025

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

@n123xyz n123xyz merged commit f92531d into main Aug 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants