Skip to content

Commit

Permalink
Mode Tree Feature Update
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Feb 13, 2025
1 parent 719b70d commit 0510635
Show file tree
Hide file tree
Showing 56 changed files with 5,770 additions and 1,617 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo check --release
- run: cargo check
# Check example with static pool configuration
- run: cargo check -p satrs-example --no-default-features

test:
name: Run Tests
Expand All @@ -37,7 +39,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
targets: "armv7-unknown-linux-gnueabihf, thumbv7em-none-eabihf"
- run: cargo check -p satrs --release --target=${{matrix.target}} --no-default-features
- run: cargo check -p satrs --target=${{matrix.target}} --no-default-features

fmt:
name: Check formatting
Expand Down
3 changes: 3 additions & 0 deletions docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
export RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options"
cargo +nightly doc --all-features --open
5 changes: 3 additions & 2 deletions satrs-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ thiserror = "2"
lazy_static = "1"
strum = { version = "0.26", features = ["derive"] }
derive-new = "0.7"
cfg-if = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"

Expand All @@ -35,8 +36,8 @@ version = "0.1.1"
path = "../satrs-mib"

[features]
dyn_tmtc = []
default = ["dyn_tmtc"]
heap_tmtc = []
default = ["heap_tmtc"]

[dev-dependencies]
env_logger = "0.11"
2 changes: 1 addition & 1 deletion satrs-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can run the application using `cargo run`.

# Features

The example has the `dyn_tmtc` feature which is enabled by default. With this feature enabled,
The example has the `heap_tmtc` feature which is enabled by default. With this feature enabled,
TMTC packets are exchanged using the heap as the backing memory instead of pre-allocated static
stores.

Expand Down
5 changes: 4 additions & 1 deletion satrs-example/pytmtc/pytmtc/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ def unpack(cls, data: bytes) -> EventU32:


class AcsId(enum.IntEnum):
MGM_0 = 0
SUBSYSTEM = 1
MGM_ASSEMBLY = 2
MGM_0 = 3
MGM_1 = 4


class AcsHkIds(enum.IntEnum):
Expand Down
1 change: 1 addition & 0 deletions satrs-example/src/acs/assembly.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// TODO: Write the assembly
1 change: 1 addition & 0 deletions satrs-example/src/acs/ctrl.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// TODO: Write dummy controller
Loading

0 comments on commit 0510635

Please sign in to comment.