Skip to content

Commit cb3efed

Browse files
CopilotMikefly123
andcommitted
Clarify spacecraft ID bit width in comments
Co-authored-by: Mikefly123 <[email protected]>
1 parent 87a0c11 commit cb3efed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

FprimeZephyrReference/project/config/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
####
66

77
# Configure spacecraft ID (can be overridden via CMake option)
8-
set(FPRIME_SPACECRAFT_ID "0x0044" CACHE STRING "Spacecraft ID (10 bits) - default 0x0044 for development, use 0x00C1 for CI")
8+
set(FPRIME_SPACECRAFT_ID "0x0044" CACHE STRING "Spacecraft ID (10 bits, range 0x0000-0x03FF) - default 0x0044 for development, use 0x00C1 for CI")
99

1010
# Generate ComCfg.fpp from template with configured spacecraft ID
1111
configure_file(

FprimeZephyrReference/project/config/ComCfg.fpp.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module ComCfg {
1515
# - spacecraftId
1616
# - TmFrameFixedSize
1717
# - potentially APID enum ?
18-
constant SpacecraftId = @FPRIME_SPACECRAFT_ID@ # Spacecraft ID (10 bits)
18+
constant SpacecraftId = @FPRIME_SPACECRAFT_ID@ # Spacecraft ID (10 bits, range 0x0000-0x03FF)
1919
constant TmFrameFixedSize = 248 # Needs to be at least COM_BUFFER_MAX_SIZE + (2 * SpacePacketHeaderSize) + 1
2020
constant AggregationSize = TmFrameFixedSize - 6 - 6 - 1 - 2 # 2 header (6) + 1 idle byte + 2 trailer bytes
2121

0 commit comments

Comments
 (0)