Skip to content
Merged
Show file tree
Hide file tree
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: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[workspace]
resolver = "3"

members = ["avionics-mock", "flight-computer", "introduction", "protocols"]
members = ["avionics-mock", "flight-computer", "introduction", "protocols", "send-igntion-command"]

# Lints are like automatic code reviews and should be treated as such.
[workspace.lints.clippy]
Expand Down
11 changes: 11 additions & 0 deletions send-igntion-command/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "send-igntion-command"
version = "0.1.0"
edition = "2024"

[dependencies]
tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread"] }
protocols = { version = "0.1.0", path = "../protocols" }

[lints]
workspace = true
10 changes: 10 additions & 0 deletions send-igntion-command/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use protocols::{api::TelemetryCommandMessage, client::MessageSender};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut sender = MessageSender::<TelemetryCommandMessage>::connect().await?;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this sucks, pleas fix


sender.send(&TelemetryCommandMessage::StartIgntion).await?;

Ok(())
}
2 changes: 2 additions & 0 deletions terminal_history.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ The new few messages create the mission control crate and then run the specific
- `.>` `cargo add --package mission-control --path protocols`
- `.>` `cargo add --package mission-control tokio --features macros,rt`
- `.>` `cargo run --bin send_ignition_command`
- `.>` `cargo new send-igntion-command`
- `.>` `cargo add --package send-igntion-command tokio --features macros,rt`
Loading