-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from delft-hyperloop/routeplanning
Route Planning + Propulsion + Levi
- Loading branch information
Showing
71 changed files
with
1,731 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,60 @@ | ||
# Delft Hyperloop - Helios III | ||
*sponsored by goose* | ||
|
||
./app ->> Main Application Source Code | ||
./gs ->> Ground Station Backend Code | ||
- `./app` → main application source code | ||
- `./gs` → ground station frontend code | ||
- `./gs/station` → ground station backend code | ||
|
||
So far we have the idea of splitting ground station code into the functional backend that we can work with, | ||
and the pretty frontend that maybe the design engineers can work with | ||
# Running | ||
this project is built on `rustc 1.79.0 (129f3b996 2024-06-10)` and is needed for all components. | ||
|
||
./config has the configuration files, such as: | ||
- static IP address assignment for | ||
- Ground station | ||
- Main PCB | ||
- Levi Drives | ||
- Prop drives? | ||
- Messaging interfaces: what do the packets sent from ground station to pod and vice versa look like? | ||
- this should be a non-technical readable file, maybe we even other departments can look at it and understand | ||
- ... | ||
## Main application | ||
flashing & running the main application requires | ||
- [probe-rs](https://probe.rs), | ||
- [`rustup target thumbv7em-none-eabihf`](https://doc.rust-lang.org/nightly/rustc/platform-support/thumbv7em-none-eabi.html) | ||
- a connected `STM32H743ZIT6` device | ||
|
||
`cargo run` will generate debug symbols and enable logging, `cargo run --release` will disable all logging. | ||
|
||
® andreas & kiko, 2024 | ||
## Ground station | ||
The ground station backend can no longer be run independently, and thus it needs a frontend. | ||
|
||
There's 2 to pick from, a *text-based user interface* and a *graphical user interface*. | ||
|
||
To run the graphical user interface run | ||
``` | ||
cd ./gs/ | ||
npm i | ||
npm run tauri dev | ||
``` | ||
(obviously requires NPM as well) | ||
|
||
To run the more lightweight TUI | ||
``` | ||
cd ./gs/station/ | ||
cargo run --no-default-features --features tui | ||
``` | ||
(only rust needed) | ||
|
||
# Maintaining | ||
|
||
## Main application | ||
PANICKING IS NOT ALLOWED!! | ||
if you `.unwrap()` anywhere i will find you | ||
|
||
## Ground station | ||
The ground station backend functionality entirely resides in | ||
``` | ||
./gs/station/src/backend.rs | ||
``` | ||
in the `struct Backend`. | ||
|
||
To implement a frontend, all you need to do is `Backend::new()`, create listeners for the `broadcast::channel`s, receive `Message`s and send `Command`s. | ||
|
||
|
||
---------------------------------------------------------- | ||
|
||
```rust | ||
© 2024 Andreas Tsatsanis, Fransisco Amaro, Kiril Panayotov | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
[target.thumbv7em-none-eabihf] | ||
|
||
runner = 'probe-rs run --chip STM32H743ZITx' | ||
# runner = 'probe-run --chip STM32H743ZIT6 --probe 0483:3754' # | ||
|
||
[build] | ||
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU) | ||
|
||
[env] | ||
DEFMT_LOG = "trace" | ||
#DEFMT_LOG = "off" | ||
#DEFMT_LOG = "trace" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.