Skip to content

Part Configuration ​

Installed defaults are in GameData/PyLoN/Parts/*/part.cfg. Source originals are in Assets/PyLoN/Parts/*/part.cfg. The repository's GameData/ is regenerated on each build. Restart KSP after changes to reload DLLs and CFG files.

Shared LiDAR settings ​

KeyMeaning
sensorMode2D or 3D
horizontalLaserCountHorizontal 2D ray count; UI range 1–2048
verticalLaserCountVertical ray count for rectangular scanning; UI range 1–128
horizontalFovDegrees0〜360°
verticalFovDegrees0〜180°
maxDistanceMaximum measurement distance [m]
scanRateHz1〜60 Hz
streamAt20FpsWhen enabled, ignore scanRateHz and use 20 Hz
udpEnabledEnable/disable UDP transmission
lidarEnabledEnable/disable Flight scanning
ignoreOwnVesselExclude own-vessel collisions
forwardAxis / upAxisPart-local axes for 2D or manual 3D
rayOriginLocalPositionRay origin in part-local coordinates
originOffsetMetersAdditional forward offset from the origin
noHitValueUDP no-hit value; default -1
maxLaserCountMaximum rays per scan; default 4096
maxDatagramBytesLiDAR JSON datagram limit; default 60000
includeHitPointsInclude hit coordinates in UDP JSON
includeDirectionsInclude ray directions in UDP JSON

Stock 3D parts use align3DToAttachNormal = true, with the mounting surface outward normal as hemisphere forward. Set false only when using manual axes.

3D LiDAR profile ​

KeyDefaultUI range
rangeProfilemediumnear / medium / long
nearRangeMeters3010〜30 m
mediumRangeMeters10050〜150 m
longRangeMeters250150〜250 m
hemisphereDensity160 / 320 / 1024 on profile selection1–1024 rays/sr

Shared configuration and vessel model ​

Managed in GameData/PyLoN/Config/Runtime.cfg, independently of sensor parts.

NodeKeyDefaultMeaning
PYLON_TRANSPORTstateHost / statePort127.0.0.1 / 49010Destination bridge
PYLON_TRANSPORTcommandPort49011Command reception port
PYLON_MODELenabledtrueTransmit vessel model
PYLON_MODELrefreshSeconds2Retransmission interval
PYLON_MODELchunkBytes / maxChunks12000 / 256Compressed model chunk limits
PYLON_MODELallowRemoteUrdffalseAllow sending outside loopback

Set sensor IDs in each part's ModulePyLoNSensorId.sensorId. User-assigned IDs are not renamed.

RGB camera ​

KeyDefaultMeaning
imageWidth / imageHeight320 / 240Resolution
frameRateHz51〜15 Hz
verticalFovDegrees6020〜120°
useGameClipPlanestrueRetain the game camera's rendering range, including distant terrain and clouds
nearClipMeters / farClipMeters0.05 / 20000Local clip limits with useGameClipPlanes = false
frameChunkBytes12000Raw bytes per UDP chunk
maxFrameBytes4194304Raw RGB frame limit
maxFrameChunks512KSP chunk limit
cameraEnabled / udpEnabledtrueCapture / UDP transmission
cameraTiltDegrees90Body tilt, 0–180°, persisted in craft/save data
cameraPivotTransformNameCameraPivotBody rotating about local X; reference rotation at 0° is identity
cameraOpticalTransformNameCameraOpticalCapture reference Transform in the rotating body; +Z viewing direction, +Y image up
cameraOriginLocalPosition0, 0, -0.272Capture origin for models without an optical Transform
forwardAxis / upAxis-Z / +YCamera-local axes without an optical Transform

Shared motor settings ​

KeyServo defaultLinear defaultMeaning
motorNameEmptyEmptyROS joint name; generated from ID if empty
stateRateHz2020State transmission Hz; clamped to 1–60 at runtime
commandTimeoutSeconds0.50.5velocity mode timeout
Rated effortratedEffortNm = 250ratedEffortN = 4000Effort limit
Current conversiontorquePerAmpNm = 40forcePerAmpN = 800For estimated current

Guides and API references for building ROS2 applications with PyLoN