Commit Graph
62 Commits
Author SHA1 Message Date
Robin Mueller 86d8528d21 feat: add FDIR fault counter and wire it into the MGM device handler
Add satrs::fdir::FaultCounter, an FSFW-style error threshold counter:
counts faults, decrements over time when faults stop, and reports
when a threshold is exceeded. Two variants for now, mirroring the
hk.rs helper pattern:
- FaultCounterStd, backed by std::time::Instant
- FaultCounterEmbassy, backed by embassy_time::Instant (embassy-time
  feature), with an optional defmt::Format impl gated on the defmt
  feature

Add satrs::health::HealthTableMapSync::default() for easy construction
of a shared, global health table.

Wire both into the example app's MGM device handler as the first real
FDIR use case:
- the minisim MGM model gains SpiFaultMode (None/AllZeros/AllOnes) and
  a SetSpiFault request, so a stuck SPI bus can be injected for testing,
  independent of switch state
- MgmHandlerLis3Mdl::poll_sensor checks the SPI transfer result: a
  comm timeout or an all-1s stuck-bus reply (the same pattern the sim
  already uses for "device off") counts as a fault. Above threshold,
  the component is marked Faulty in a HealthTableMapSync shared from
  main.rs. This logic lives in the device handler, not the SPI comm
  layer, since deciding what a failed transfer means for FDIR is a
  handler concern.
- an all-0s reply is deliberately not treated as a fault, since it
  collides with a legitimate zero-field reading
2026-09-16 13:56:47 +02:00
Robin Mueller 4ba4d3e6a3 try to update more chapters 2026-08-26 15:24:08 +02:00
Robin Mueller 1e44b2d59f add tmtc-utils crate 2026-08-25 17:53:38 +02:00
Robin Mueller 3f0937de83 start adding ACS subsystem 2026-07-28 17:00:26 +02:00
muellerr 1e15e3d501 move to CCSDS + serde for sat-rs example 2026-03-10 11:45:11 +01:00
Robin Mueller c27569a526 new CCSDS packet scheduler 2025-11-27 16:02:39 +01:00
Robin Mueller c8245772bb bumped sat-rs 2025-11-06 14:53:49 +01:00
Robin Mueller 0cd929a19c bumped spacepackets version 2025-11-06 14:47:27 +01:00
Robin Mueller 440e757141 updated dependencies 2025-10-29 16:37:41 +01:00
Robin Mueller bc9e0e4a94 Larger update
- ComponentId is u32 now
- Simplified TCP servers
2025-10-21 13:28:24 +02:00
Robin Mueller 778512d50e rework event management module 2025-10-20 11:16:28 +02:00
Robin Mueller 1b07b845f2 update spacepackets dependency 2025-09-26 16:01:30 +02:00
Robin Mueller e1911f1b6e update heapless dependency 2025-09-06 19:32:06 +02:00
Robin Mueller abc145fb2d edition bump to 2024 ald clippy 2025-08-14 14:10:00 +02:00
muellerr de3d22a022 prepare patch releases 2025-07-23 14:05:04 +02:00
Robin Mueller 533caea0fe bump all dependencies 2025-07-22 10:29:54 +02:00
Robin Mueller cf64fea7d9 bump cobs-rs dependency 2025-07-18 19:24:40 +02:00
Robin Mueller 1920e4878c bump cobs-rs dependency 2025-07-18 19:19:24 +02:00
muellerr 99a954a1f5 some tweaks 2025-05-19 14:18:26 +02:00
muellerr 4a4fd7ac2c use git deps 2025-05-16 19:49:43 +02:00
muellerr 9bf08849a2 annoying 2025-05-16 19:43:45 +02:00
muellerr 18263d4568 Merge branch 'main' into some-wording-improvements 2025-05-10 16:27:29 +02:00
muellerr 95519c1363 minor wording improvements 2025-05-10 16:27:04 +02:00
muellerr bfdd777685 use released dependencies 2025-05-10 16:24:06 +02:00
muellerr ddc4544456 spacepackets update, clippy fixes 2025-05-10 16:13:45 +02:00
muellerr 5bf5518591 prepare alpha release 2025-02-18 16:49:33 +01:00
muellerr 05106354e3 Mode Tree Feature Update 2025-02-13 12:18:05 +01:00
muellerr d4082fa098 use static cell instead of custom struct 2025-02-07 16:15:23 +01:00
muellerr ef7b5d66fe update some outdated dependencies 2025-01-31 18:37:12 +01:00
muellerr 73286e36c2 update embedded examples 2025-01-31 18:20:06 +01:00
muellerr 1c43c3adf9 update mini simulator 2025-01-30 18:55:47 +01:00
muellerr abec9dd448 clippy and test fix 2025-01-23 17:19:26 +01:00
muellerr 1ac6c02c06 use released satrs-shared 2024-11-15 12:14:33 +01:00
muellerr 1a4d764f25 bump dependencies 2024-11-15 11:37:14 +01:00
muellerr 47c86aea5c Extracted CFDP components 2024-11-04 12:18:41 +01:00
muellerr 1726e34fa7 satrs-shared v0.2.0 2024-11-04 11:50:17 +01:00
muellerr 397ecd0c40 prep patch release 2024-05-19 08:13:32 +02:00
muellerr 42d1257e83 prepare next release v0.2.0
Rust/sat-rs/pipeline/pr-main Build started...
2024-05-02 14:39:30 +02:00
muellerr 9c60427f89 Reworked generic parameter handling for PUS service 1 and 5
Rust/sat-rs/pipeline/head Build queued...
Rust/sat-rs/pipeline/pr-main This commit looks good
2024-04-30 13:29:55 +02:00
muellerr b0159a3ba7 prep next release candidate
Rust/sat-rs/pipeline/pr-main This commit looks good
2024-04-24 19:18:45 +02:00
muellerr b7ce039406 add optional defmt support for events
Rust/sat-rs/pipeline/head This commit looks good
2024-04-24 18:36:00 +02:00
muellerr 423a068736 prep next release
Rust/sat-rs/pipeline/head This commit looks good
2024-04-23 14:55:19 +02:00
muellerr 5371928496 docs_rs build argument hotfix
Rust/sat-rs/pipeline/pr-main Build queued...
2024-04-17 20:41:30 +02:00
muellerr 7c00e13e70 bump msrv version
Rust/sat-rs/pipeline/head This commit looks good
2024-04-17 18:10:32 +02:00
muellerr 7b37b76695 prepare next release candidate
Rust/sat-rs/pipeline/head This commit looks good
2024-04-17 17:19:38 +02:00
muellerr 0f0fbc1a18 small cleanup
Rust/sat-rs/pipeline/head This commit looks good
2024-04-17 15:17:46 +02:00
muellerr 52aafb3aab prep next releases
Rust/sat-rs/pipeline/head This commit looks good
2024-04-17 10:01:46 +02:00
muellerr 273f79d1e6 use release satrs-shared
Rust/sat-rs/pipeline/head This commit looks good
2024-04-16 21:07:51 +02:00
muellerr df97a3a93e small adjustment
Rust/sat-rs/pipeline/pr-main Build started...
2024-04-16 19:39:07 +02:00
muellerr 42750e08c0 bump spacepackets to v0.11.0
Rust/sat-rs/pipeline/head This commit looks good
2024-04-16 19:26:46 +02:00