Skip to content

Issue #172, Adjust HS Files to Work with EDS Generated COSMOS Packet Definition Files - #173

Merged
Cameron-Sykes merged 5 commits into
devfrom
fix-172-hs-work-with-eds-gen-pke-defs
Nov 18, 2026
Merged

Cameron-Sykes merged 5 commits into
devfrom
fix-172-hs-work-with-eds-gen-pke-defs

Conversation

@Cameron-Sykes

@Cameron-Sykes Cameron-Sykes commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

name: FSW Code Change
about: Flight Software code changes
labels: fsw

Description of Change

  • Standardize HS Reset Counters command handler function name to HS_ResetCountersCmd()
  • Make the naming of the Reset Counters command struct standardized as well, that is, it should be the same as the function name + "_t"
  • Update EDS function code enum
  • Update function code name
  • Update unit tests
  • Update stubs
  • Standardize HS command counter names
  • Standardize packet padding naming
  • Use PaddingEntry in XML for padding

Linked Issue

Closes #172

Requirements Impact

  • Requirement ID(s):
  • Requirements updated as necessary
  • Existing requirements are still satisfied by this change

Testing Evidence

Process

  1. Build FSW with EDS enabled
    • cd <cFS root>
    • make distclean
    • make native_eds.prep
    • make native_eds.install
    • Observe that the FSW builds without issue
  2. Run FSW
    • cd <cFS root>/build-native_eds/exe/cpu1
    • ./core-cpu1
    • Observe that the FSW runs without issue
  3. Copy the EDS-generated packet definition files to the COSMOS directory
    • cd <cFS root>/tools/cfs-cosmos-plugin/targets/CFS
    • rm cmd_tlm/*
    • cp <cFS root>/build-native_eds/cosmos/* cmd_tlm
    • EDS-generated packets have the format <app>_eds_<packet type>_def.txt. To verify that all the packets are EDS-generated you can run the following:
      • cd <cFS root>/tools/cfs-cosmos-plugin/targets/CFS/cmd_tlm
      • ls | wc -l
      • ls | grep eds | wc -l
      • Those numbers should match
  4. Build the COSMOS gem
    • cd <cFS root>/tools/cfs-cosmos-plugin
    • openc3.sh cli rake build VERSION=0.0.0 | grep hs
      • You can run openc3.sh cli rake build VERSION=0.0.0 to potentially see other errors that are in the process of being fixed
    • Observe that no output with the form "Error: ..." is displayed
  5. Return the cmd_tlm directory to its previous state
    • cd <cFS root>/tools/cfs-cosmos-plugin/targets/CFS
    • rm cmd_tlm/*
    • git restore .

Unit Tests (UT Assert)

image

COSMOS Test Suite

Areas of Expertise Touched

  • ASTRO
  • CI/CD
  • COSMOS
  • Cybersecurity
  • Docker
  • EDS
  • Git
  • PSPs
  • SBN
  • SMP
  • Tables
  • TSN
  • Unit Tests
  • Other

Author Checklist

  • Linked GitHub issue is referenced above
  • Code has been formatted with .clang-format
  • Static analysis workflows ran and passed
  • Unit tests (UT Assert) updated/added to cover code changes
  • Unit test workflows ran and passed
  • COSMOS test suite was run; tests updated/added if relevant changes were made
  • Requirements have been reviewed; updated or confirmed still satisfied (see above)
  • Testing evidence is included above
  • Self-review of the diff completed

Reviewer Checklist

  • Code logic is correct and matches the stated intent
  • Code is readable, maintainable, and follows project conventions (ask your lead if you are unsure of where to find these conventions)
  • .clang-format has been applied
  • Static analysis results reviewed and acceptable
  • The change has been exercised by the unit tests (not just that tests pass — the new/changed code paths are actually covered)
  • COSMOS test suite was executed against this change and results reviewed (or confirmed N/A with justification)
  • Reviewer has independently verified the change behaves as described (e.g., by running the tests locally, reviewing CI output in detail, or performing additional ad-hoc testing as warranted)
  • Memory safety reviewed (allocation, bounds, lifetime, stack usage)
  • Requirements impact reviewed and appropriate
  • Error handling is appropriate
  • Appropriate Expert areas have been reviewed

Reviewer Testing Notes

@Cameron-Sykes Cameron-Sykes self-assigned this Nov 2, 2026
@Cameron-Sykes
Cameron-Sykes force-pushed the fix-172-hs-work-with-eds-gen-pke-defs branch from c29fdeb to 4d583de Compare November 2, 2026 21:02
@Cameron-Sykes
Cameron-Sykes force-pushed the fix-172-hs-work-with-eds-gen-pke-defs branch 3 times, most recently from 5fede85 to d986af1 Compare November 18, 2026 17:00
@Cameron-Sykes
Cameron-Sykes force-pushed the fix-172-hs-work-with-eds-gen-pke-defs branch 2 times, most recently from c58d627 to a6bf459 Compare November 18, 2026 17:03
@Cameron-Sykes
Cameron-Sykes force-pushed the fix-172-hs-work-with-eds-gen-pke-defs branch from a6bf459 to d6efd2b Compare November 18, 2026 17:23

@chillfig chillfig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me!

@Cameron-Sykes
Cameron-Sykes merged commit a926c2e into dev Nov 18, 2026
13 checks passed
@Cameron-Sykes
Cameron-Sykes deleted the fix-172-hs-work-with-eds-gen-pke-defs branch November 18, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust HS Files to Work with EDS Generated COSMOS Packet Definition Files

2 participants