Repository navigation
Fix #179, remove headers and comments copied from DS, CS and HS - #190
Open
SpaceOceanCorp wants to merge 1 commit into
Open
SpaceOceanCorp wants to merge 1 commit into
SpaceOceanCorp wants to merge 1 commit into
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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 insc_events.h(for exampleSC_INIT_INF_EIDis 1 there and 9 insc_events.h). It is still picked up by Doxygen, so the generated docs list two sets of SC event IDs.fsw/inc/sc_perfids.h. It is an older copy that givesSC_APPMAIN_PERF_ID= 38, which is DS's ID. The build already uses the generatedsc_perfids.hfromconfig/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: theSC_FunctionCodeenum listed DS's commands. It now lists SC's 17 commands, 0 to 16, matchingfsw/inc/sc_fcncodes.handeds/sc.xmlone for one.config/headers andsc_eds_dispatch.c), an event comment insc_events.hthat said HS, and one typo ("his" for "This").No code paths change.
Linked Issue
Closes #179
Requirements Impact
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) ondev(f46ff66) and on this branch. Preprocessingsc_app.cwith the build's own include paths shows thatsc_perfids.hresolves to the generated header in both cases, givingSC_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
Author Checklist
.clang-formatCLA: cFS Apps corporate CLA filed by Space Ocean Corp.