Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 29, 2025

CI machines need unique spacecraft IDs to prevent command conflicts with development devices in shared lab environments.

Implementation

  • Template-based configuration: Converted ComCfg.fpp to ComCfg.fpp.in with @FPRIME_SPACECRAFT_ID@ placeholder, generated via CMake's configure_file()
  • CMake option: Added FPRIME_SPACECRAFT_ID cache variable (default: 0x0044, range: 0x0000-0x03FF)
  • Build system: Extended Makefile to accept FPRIME_CMAKE_OPTIONS for passing CMake parameters to fprime-util
  • CI workflow: Set spacecraft ID to 0x00C1 for automated builds
  • Git hygiene: Excluded generated ComCfg.fpp from tracking

Usage

# Development (default: 0x0044)
make build

# CI or custom ID
make generate FPRIME_CMAKE_OPTIONS="-DFPRIME_SPACECRAFT_ID=0x00C1"
make build FPRIME_CMAKE_OPTIONS="-DFPRIME_SPACECRAFT_ID=0x00C1"

Development builds: 0x0044 (68)
CI builds: 0x00C1 (193)
Valid range: 10-bit CCSDS spacecraft ID (0x0000-0x03FF)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Use unique space craft ID for CI machines</issue_title>
<issue_description>To prevent conflicting commanding from test devices in labs. Use a unique space craft ID for CI builds

constant SpacecraftId = 0x0044 # Spacecraft ID (10 bits)
</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits October 29, 2025 23:11
- Convert ComCfg.fpp to template (ComCfg.fpp.in)
- Add CMake option FPRIME_SPACECRAFT_ID (default 0x0044)
- Configure ComCfg.fpp generation from template
- Update CI to use spacecraft ID 0x00C1
- Add documentation for spacecraft ID configuration

Co-authored-by: Mikefly123 <[email protected]>
Copilot AI changed the title [WIP] Use unique space craft ID for CI machines Add configurable spacecraft ID for CI builds Oct 29, 2025
Copilot AI requested a review from Mikefly123 October 29, 2025 23:20
Copilot finished work on behalf of Mikefly123 October 29, 2025 23:20
@ineskhou
Copy link
Contributor

Instead create 2 ccsds file, if building in CI then sources +=

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.

Use unique space craft ID for CI machines

3 participants