Fix #62, Apply message alignment pattern#63
Merged
astrogeco merged 2 commits intonasa:integration-candidatefrom Dec 1, 2020
Merged
Fix #62, Apply message alignment pattern#63astrogeco merged 2 commits intonasa:integration-candidatefrom
astrogeco merged 2 commits intonasa:integration-candidatefrom
Conversation
Contributor
|
CCB 2020-11-18 APPROVED
|
7ae5e4d to
29c21e1
Compare
Contributor
Author
|
Push fixed typo in commit message and applied "*Cmd_t" pattern to all command types. |
jphickey
approved these changes
Nov 24, 2020
Contributor
jphickey
left a comment
There was a problem hiding this comment.
Just one minor comment/suggestion
| CFE_MSG_Message_t Msg; | ||
| uint8 bytes[CI_LAB_MAX_INGEST]; | ||
| uint16 hwords[2]; | ||
| } CI_LAB_IngestBuffer_t; |
Contributor
There was a problem hiding this comment.
The "hwords" member here really should not be needed. AFAIK it served two purposes - to align the buffer to 16 bits (not needed if using CFE_MSG_Message_t) and in the event the message didn't validate it would actually report the value of the first two words in an error message. But that message is fundamentally flawed because if the length check doesn't work the values probably are undefined/uninitialized and thereby meaningless.
42b969b to
05c1424
Compare
added 2 commits
November 30, 2020 11:04
- Use CFE_SB_Buffer_t for receiving and casting to command types - Use CFE_MSG_CommandHeader_t and CFE_MSG_TelemetryHeader_t in command and telemetry type definitions - Use CFE_SB_TransmitMsg to copy the command and telemetry into a CFE_SB_Buffer_t and send it where needed - Avoids need to create send buffers within the app (or union the packet types with CFE_SB_Buffer_t) - Eliminates references to CFE_SB_CmdHdr_t and CFE_SB_TlmHdr_t that formerly enforced alignment since these had potential to change the actual packet sizes - No need to cast to CFE_MSG_Message_t anywhere since it's available in the CFE_SB_Buffer_t union
- Replaced CFE_SB_RcvMsg with CFE_SB_ReceiveBuffer - Replaced CFE_MSG_Size_t with size_t
05c1424 to
3ed636d
Compare
Contributor
Author
|
Minor updates to minimize future changes, and removed hwords. Left in report as a "clue". |
astrogeco
added a commit
to astrogeco/cFS
that referenced
this pull request
Dec 1, 2020
astrogeco
added a commit
to astrogeco/cFS
that referenced
this pull request
Dec 2, 2020
skliper
pushed a commit
to skliper/cFS
that referenced
this pull request
Dec 3, 2020
skliper
pushed a commit
to skliper/cFS
that referenced
this pull request
Dec 3, 2020
astrogeco
added a commit
to nasa/cFS
that referenced
this pull request
Dec 8, 2020
astrogeco
added a commit
to nasa/cFS
that referenced
this pull request
Dec 9, 2020
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.
Describe the contribution
Fix #62 (updates related to nasa/cFE#1009, implementing a consistent message alignment pattern)
comamnd and telemetry type definitions
into a CFE_SB_Buffer_t and send it where needed
the packet types with CFE_SB_Buffer_t)
that formerly enforced alignment since these had potential
to change the actual packet sizes
available in the CFE_SB_Buffer_t union
Testing performed
Normal build, tested cmd/tlm interface and noops
Expected behavior changes
None.
System(s) tested on
Additional context
See nasa/cFE#1009
Third party code
None.
Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC