# camera -- LumiScanX LX20220109. Migrated from recordings[0] ("camera") of the 1.4.0 settings file.
#
# FORMAT: a feature list, not a script -- "<feature name> <value>" per line, no verbs. A leading
# SET / SET? / GET / EXECUTE makes parseFeatureListFile() throw (hdv ADR 0038). An entry this camera
# has not got, or cannot currently write, is SKIPPED (ADR 0039), so only a value the camera rejects
# is an error; the connect log reports applied/skipped/failed counts.
#
# NOTE: this camera is currently driven by the Virtual driver "driver-sim-camera", which replays
# data/camera and publishes only Width/Height/PixelFormat. Every other line below is therefore
# skipped in simulation -- they are kept so that pointing cameras[].driverId at "driver-lumiscan"
# is the only edit needed to run the real LX20220109.

# ---------------------------------------------------------------------------------------------
# NO CalibrationFile line, deliberately. This camera runs on the Virtual driver
# (driver-sim-camera), which replays data/camera and has no calibration node, so the line was
# skipped anyway -- and LX20220109's .hdvcal is no longer in this repo, so it pointed at nothing.
#
# To drive the real LX20220109: restore its .hdvcal and put it back as the FIRST line here.
# Order matters -- several nodes are unreadable until a calibration has been parsed, and
# ComponentEnable[Range] cannot produce a point cloud at all without one:
#
#     CalibrationFile <path to the LX20220109 .hdvcal>

# ---------------------------------------------------------------------------------------------
# Depth estimation. Was depthMin_mm 800 / depthMax_mm 1300.
#
# In METRES -- Scan3dDistanceUnit declares Meter because that is what lumiscan's depth kernel
# natively produces, so nothing is rescaled per frame. The device API underneath is integer
# millimetres, so the effective resolution is 1 mm. The plugin warns "That looks like millimetres
# from before the unit changed" for any value > 100 under Meter.
#
# Max before Min: the endpoints bound each other, so writing Min while Max still holds a lower
# value is rejected.
Scan3dDistanceUnit Meter
Scan3dDistanceMax 1.300000
Scan3dDistanceMin 0.800000

# confidenceThreshold 0.8, preProcessingFilter BLUR, postProcessingFilter MEDIAN.
Scan3dConfidenceThreshold 0.800000
Scan3dPreProcessingFilter Blur
Scan3dPostProcessingFilter Median

# pixelFormat MONO12. 12 bits give a more accurate cloud than Mono8 at a lower frame rate.
PixelFormat Mono12

# triggerMode SOFTWARE.
TriggerMode On
TriggerSource Software

# initialExposureTime_us 14000, in microseconds. The starting exposure. LumiScanPlugin publishes
# no ExposureAuto node; VGR's own auto-exposure is configured in settings.json under
# cameraParameters[].autoExposure (see the note under DROPPED below). Runtime switching between
# fixed exposure regimes is what featureSets[] is for.
ExposureTime 14000.0

# ---------------------------------------------------------------------------------------------
# DROPPED OR MOVED IN 2.0.0 -- recorded here so the change stays discoverable. None of these is a
# feature, so none can be expressed in this file; the auto-exposure moved to settings.json.
#
#   autoexposureEnabled true
#   autoexposure.lowerExposureTimeLimit_us     1200
#   autoexposure.upperExposureTimeLimit_us     19000
#   autoexposure.polygon                       (225,150) (225,960) (1075,960) (1075,150)
#   autoexposure.referenceIntensity            70
#   autoexposure.intensityMeasurementAlgorithm Mean
#       -> MOVED, not dropped: VGR 2.0 configures its auto-exposure per camera in settings.json,
#          cameraParameters[] { "cameraId": "camera", "autoExposure": { ... } }:
#          lowerExposureTimeLimit_us -> minExposureTime_us, upperExposureTimeLimit_us ->
#          maxExposureTime_us, polygon -> roi ([[225,150],[225,960],[1075,960],[1075,150]]),
#          referenceIntensity -> targetIntensity, intensityMeasurementAlgorithm Mean -> statistic MEAN.
#          Not set here because this camera runs on the Virtual driver, which has no exposure.
#
#   correctionEnabled true
#   correction.type    CLOUD_SCALE
#   correction.scale   [1.0, 1.0, 1.0]
#   correction.layers  imagePath C:\Users\Public\Documents\LumiScanVGR\calibration\camera\
#                                LX20230111\layers\, decayDistance 0.1, all distances 0.0
#       -> point-cloud correction (CLOUD_SCALE / CLOUD_Z_CALIBRATION) was removed entirely.
#
#   timeoutTimer 500
#       -> the acquisition wait is hard-coded to 2000 ms in VgrCapture and is no longer configurable.
