Skip to content

Update for nasa/fprime#5996: add pktType to FrameContext - #28

Merged
LeStarch merged 1 commit into
fprime-community:develfrom
JPL-Devin:devin/1790638714-comcfg-pkttype
Sep 28, 2026
Merged

LeStarch merged 1 commit into
fprime-community:develfrom
JPL-Devin:devin/1790638714-comcfg-pkttype

Conversation

@lestarch-autobot

Copy link
Copy Markdown
Contributor

Change Description

Sync this project's ComCfg.fpp override (config/FPrimeCfsConfig/ComCfg.fpp) with the ComCfg::FrameContext change merged in nasa/fprime#5996 (nasa/fprime#5996):

  • add the SppPacketType enum (SPP_TELEMETRY = 0, SPP_COMMAND = 1, default SPP_TELEMETRY)
  • add pktType: SppPacketType to FrameContext (default SppPacketType.SPP_TELEMETRY)

Rationale

Since #5996, Svc/Ccsds/SpacePacketFramer and SpacePacketDeframer call FrameContext::set_pktType() / get_pktType(). Because this project overrides ComCfg.fpp, the generated FrameContext lacked those members and the framework no longer compiles against current F´ devel:

error: 'class ComCfg::FrameContext' has no member named 'set_pktType'
error: 'SppPacketType' in namespace 'ComCfg' does not name a type

All project-specific FrameContext fields are retained; this is purely additive. The field is also harmless against the currently pinned F´ submodule (older framework code simply does not read it).

Testing/Review Recommendations

Built fprime-community/fprime_cfs_reference (make SIMULATION=native prep && make) with libs/fprime on current devel (1189e37) and this change in libs/fprime_cfs plus the companion fprime_app override update: full mission build succeeds, SpacePacketFramer.cpp/SpacePacketDeframer.cpp compile, and the generated FrameContextSerializableAc.hpp contains pktType. Companion PR on fprime_app applies the same change to its fprime_config/config/ComCfg.fpp.

Generative AI was used in this contribution (Devin); reviewed by a human before merge.

Sync the project ComCfg.fpp override with the FrameContext change merged
in nasa/fprime#5996 (SppPacketType enum and pktType field), which
Svc/Ccsds SpacePacketFramer/Deframer now require.

Co-Authored-By: michael.d.starch <michael.d.starch@jpl.nasa.gov>
@LeStarch
LeStarch merged commit 0c3ee3c into fprime-community:devel Sep 28, 2026
3 checks passed
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.

2 participants