Skip to content

Fix #179, remove headers and comments copied from DS, CS and HS - #190

Open
SpaceOceanCorp wants to merge 1 commit into
nasa:devfrom
SpaceOceanCorp:fix-179-copied-headers
Open

SpaceOceanCorp wants to merge 1 commit into
nasa:devfrom
SpaceOceanCorp:fix-179-copied-headers

Conversation

@SpaceOceanCorp

Copy link
Copy Markdown

Description of Change

Removes the headers and comments that were copied from other apps (DS, CS, HS) into SC and never updated, as reported in #179:

  • Delete fsw/inc/sc_eventids.h. It is DS's event-ID header with the macro names changed. Nothing includes it, and its IDs conflict with SC's real ones in sc_events.h (for example SC_INIT_INF_EID is 1 there and 9 in sc_events.h). It is still picked up by Doxygen, so the generated docs list two sets of SC event IDs.
  • Delete fsw/inc/sc_perfids.h. It is an older copy that gives SC_APPMAIN_PERF_ID = 38, which is DS's ID. The build already uses the generated sc_perfids.h from config/default_sc_perfids.h (35), both before and after this change, so the value SC uses does not change.
  • config/default_sc_fcncode_values.h: the SC_FunctionCode enum listed DS's commands. It now lists SC's 17 commands, 0 to 16, matching fsw/inc/sc_fcncodes.h and eds/sc.xml one for one.
  • Correct the file comments that named DS or CS (the 12 other config/ headers and sc_eds_dispatch.c), an event comment in sc_events.h that said HS, and one typo ("his" for "This").

No code paths change.

Linked Issue

Closes #179

Requirements Impact

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

Testing Evidence

Unit Tests (UT Assert)

In the cFS bundle (029b3ab, native_std, unit tests enabled) with this branch, SC builds with no warnings and all 8 SC unit-test suites pass.

Built in the cFS bundle (029b3ab, native_std) on dev (f46ff66) and on this branch. Preprocessing sc_app.c with the build's own include paths shows that sc_perfids.h resolves to the generated header in both cases, giving SC_APPMAIN_PERF_ID = 35.

COSMOS Test Suite

N/A: no telemetry, command or table changes (the function-code enum now matches the codes SC already uses).

Areas of Expertise Touched

  • EDS
  • Other: headers and documentation only

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

CLA: cFS Apps corporate CLA filed by Space Ocean Corp.

- Remove fsw/inc/sc_eventids.h, an unused copy of the DS event-ID header
  whose IDs conflict with sc_events.h (e.g. SC_INIT_INF_EID 1 vs 9).
- Remove fsw/inc/sc_perfids.h, an older copy shadowed by the generated
  config header; it gave SC_APPMAIN_PERF_ID 38, which is DS's ID.
- default_sc_fcncode_values.h: list SC's commands (0-16), matching
  sc_fcncodes.h and eds/sc.xml, instead of DS's.
- Correct file comments that named DS or CS, and two comment typos.
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.

SC Headers Reference Other Apps (DS and HS)

1 participant