Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions flight-computer/src/state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl State {
pub async fn tick(
&mut self,
inputs: &Inputs,
_avionics: &mut MessageSender<AvionicsCommandMessage>,
avionics: &mut MessageSender<AvionicsCommandMessage>,
) {
match self {
State::Idle | State::Shutdown | State::Descend => {}
Expand All @@ -31,8 +31,10 @@ impl State {
}
}
State::Coasting => {
//X Done in Class
todo!()
if inputs.velocity.down > 0.0 {
let _ = avionics.send(&AvionicsCommandMessage::DeployDrogue).await;
*self = State::Descend;
}
}
}
}
Expand Down
Loading