Skip to content

Fix #153, Adjust LC Files to Work with EDS Generated COSMOS Packet Definition Files - #154

Open
Cameron-Sykes wants to merge 9 commits into
nasa:devfrom
Cameron-Sykes:fix-153-adjust-for-cosmos-eds
Open

Cameron-Sykes wants to merge 9 commits into
nasa:devfrom
Cameron-Sykes:fix-153-adjust-for-cosmos-eds

Conversation

@Cameron-Sykes

@Cameron-Sykes Cameron-Sykes commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

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

Description of Change

  • Command payloads were moved to the msgdefs.h file
  • Command counter names were standardized
  • All payloads that have common uses were combined into 1
  • Padding names and invocation were standardized in source code and EDS XML
  • Removed trivial LC_ResetCounters
  • Standardized command handler arguments

Linked Issue

Closes #153

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 lc
      • 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 Oct 28, 2026
@Cameron-Sykes
Cameron-Sykes force-pushed the fix-153-adjust-for-cosmos-eds branch 3 times, most recently from 337886d to 9b4ded7 Compare October 28, 2026 15:28
@Cameron-Sykes
Cameron-Sykes force-pushed the fix-153-adjust-for-cosmos-eds branch 5 times, most recently from bac6101 to 221ca10 Compare November 18, 2026 16:08
@Cameron-Sykes
Cameron-Sykes force-pushed the fix-153-adjust-for-cosmos-eds branch from 221ca10 to 1643060 Compare November 18, 2026 16:25
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 LC Files to Work with EDS Generated COSMOS Packet Definition Files

1 participant