Skip to content

Commit 29bd275

Browse files
committed
Mode Tree Feature Update
1 parent 719b70d commit 29bd275

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+5766
-1615
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: dtolnay/rust-toolchain@stable
14-
- run: cargo check --release
14+
- run: cargo check
15+
# Check example with static pool configuration
16+
- run: cargo check -p satrs-example --no-default-features
1517

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

4244
fmt:
4345
name: Check formatting

docs.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
export RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options"
3+
cargo +nightly doc --all-features --open

satrs-example/Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ thiserror = "2"
2020
lazy_static = "1"
2121
strum = { version = "0.26", features = ["derive"] }
2222
derive-new = "0.7"
23+
cfg-if = "1"
2324
serde = { version = "1", features = ["derive"] }
2425
serde_json = "1"
2526

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

3738
[features]
38-
dyn_tmtc = []
39-
default = ["dyn_tmtc"]
39+
heap_tmtc = []
40+
default = ["heap_tmtc"]
4041

4142
[dev-dependencies]
4243
env_logger = "0.11"

satrs-example/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can run the application using `cargo run`.
1414

1515
# Features
1616

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

satrs-example/pytmtc/pytmtc/common.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ def unpack(cls, data: bytes) -> EventU32:
3939

4040

4141
class AcsId(enum.IntEnum):
42-
MGM_0 = 0
42+
SUBSYSTEM = 1
43+
MGM_ASSEMBLY = 2
44+
MGM_0 = 3
45+
MGM_1 = 4
4346

4447

4548
class AcsHkIds(enum.IntEnum):

satrs-example/src/acs/assembly.rs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// TODO: Write the assembly

satrs-example/src/acs/ctrl.rs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// TODO: Write dummy controller

0 commit comments

Comments
 (0)