ECLIPTIC jetson/ — the edge box The DMX tracker light

jetson/ · the edge box

The DMX tracker light

A moving head that aims at whatever the detector sees and, when there is nothing to follow, pulses to the beacon's $ZAUD level. Illuminating the pedestrian is both the safety function and the spectacle. Everything on this page below the channel map was measured on the bench, not read from the manual — and two of the numbers contradict it.

Transport

Not Art-Net, not direct serial. OlaDmxSink HTTP-POSTs a 512-channel frame to a local olad, which drives an FTDI FT232 USB-DMX dongle through the ftdidmx plugin. olad is pinned to a dedicated Orin core with a systemd CPUAffinity drop-in (default core 5) so vision work cannot jitter DMX timing. Verify with systemctl show olad -p CPUAffinity.

Both sinks hold a persistent 512-slot frame and merge each send into it. OlaDmxSink swallows its own send failures by design — a lighting concern must never be able to stall the threat broadcaster — but counts them and reports once per outage. That is exactly why zdeck's BLACKOUT bypasses it.

Fixture facts, measured

ValueProvenance
Channel mode11-channelMeasured three independent ways after the fixture arrived in 9-channel
Pan range540°Manual, confirmed by measurement
Tilt range180°Measured — the manual says 270° and is wrong
Pan channels1 coarse, 2 fineMeasured
Tilt channels3 coarse, 4 fineMeasured
Colour wheelch 5Values ≥ 140 trigger auto colour-spin
Dimmerch 8Measured — not ch 5
Never writtench 10, ch 11Auto programs; mode-select / motor reset
Trap 1 — the dimmer is channel 8; channel 5 is the colour wheel

It was on 5, where 140–255 means “auto colour change, fast” — so the head would have spun colours at full speed while the real dimmer sat at 0 and the fixture looked dead. Found by reading the manual against the channel table. test_tracker now asserts it, and both tests that had hardcoded channel 5 were agreeing with the bug.

Trap 2 — channel 11 at 250–255 for five seconds is a motor reset

Mid-show, that is a head that stops obeying. It is never written, and a test asserts that. Channel 10 above 59 hands control to the internal auto/sound programs, which fight explicit pan/tilt writes — same treatment.

Tilt is 180°, not 270°

Measured three independent ways:

EvidenceReading
DMX → angle progressiontilt 64 → 45°, 128 → dead vertical, 192 → 135°
Scale factor64 DMX units = 45°, so 255 units = 179°
End stopstilt 0 and tilt 255 are antiparallel, both just below horizontal

Half-scale landing on vertical is the decisive one: under a 270° span half-scale would be 135°, visibly past vertical. It is not, and it was called twice.

Why it mattered

deg_to_dmx16 divides by this span, so the manual's number scaled every tilt command by 1.5× — on the axis that decides how high up a person's body the beam lands. tilt_far_deg = 135 was being sent as half-scale and physically pointing the head straight up.

tilt_range_deg is now 180.0, pinned by tests that fail if anyone restores the manual's figure. A test that hardcoded 270.0 rather than reading the config had to be fixed alongside — it could only ever have confirmed the wrong number. Same shape as the channel-5 dimmer bug.

TrackerConfig

This table is a summary, not the source of truth

TrackerConfig in zvision/tracker.py is. A row in a lookup table that used to read tilt_range_deg | 270 is exactly the failure being warned about — a manual figure outliving the measurement that refuted it. If you need a value, read the dataclass.

ConfigValueWhy
pan_channel / pan_fine_channel1 / 216-bit pan
tilt_channel / tilt_fine_channel3 / 416-bit tilt
colour_channel5Declared for zdeck; the tracker never writes it
dimmer_channel8Not 5
forbidden_channels10, 11Auto programs; mode-select / motor reset
pan_range_deg540Measured
tilt_range_deg180Measured. Pinned by a test
pan_center_deg / pan_gain270 / 1.0Mid-travel and unmirrored; nominal, needs on-vehicle calibration
tilt_far_deg / tilt_near_deg90 / 106.7Rescaled for the 180° range; uncalibrated placeholders
reach_half_deg90Forward plus both sides; a contact going astern releases the latch
pan_slew_dps / tilt_slew_dps120 / 90Slew rate limits
switch_margin0.15Hysteresis, so the beam does not twitch between two similar contacts
sound_gain / sound_silence / beat_dimmer4.0 / 0.03 / 255The idle $ZAUD show
Uncalibrated — must be set before enabling real DMX output

tilt_far_deg and tilt_near_deg were rescaled 135/160 → 90/106.7 to preserve the physical aim across the span correction — but 90° is straight up on this fixture, which is not where a beam belongs once it is on the vehicle. They are placeholders, not aims. pan_center_deg, pan_gain and reach_half_deg also need the one-time vehicle calibration: aim dead ahead, then at a known bearing.

11-channel, not 9. 8-bit pan across 540° is ~2.1° per step, which is visibly steppy on a slow follow. The fine channels are the whole reason to use the longer personality. NINE_CHANNEL_OVERRIDES exists for a head stuck in the short mode and is reachable only through --dmx-channels 9; that accessor exists because the dict was once referenced by nothing at all and overrode the channel map without overriding forbidden_channels, leaving the motor reset (which shifts to ch9 in the short mode) completely unguarded.

Operational lessons from the bench

The head ignores DMX until its motors have homed

This is the trap that cost the whole first hour. A fixture that has not completed its power-up reset accepts DMX and does nothing with it — no movement, no lamp, no error, display sitting normally at A.001. It is indistinguishable from a severed cable, and it sent the investigation through olad, libftdi, USB enumeration and the XLR before the fixture was ever suspected.

Check the head performs its homing sweep at power-up. If it did not, force a motor reset before concluding anything is broken in software — channel 11 held 250–255 for 5 s in the 11-channel mode the fixture now runs in. (It is ch9 only in 9-channel mode. Getting that wrong today writes 255 to ch9, which is the slowest pan/tilt speed — it would make an unresponsive head look worse while appearing to be the fix.)

Signal loss

As shipped, the BLnd menu item was set to auto. Stopping olad produced, in order: rST on the display, a motor reset, then the internal auto program — sweeping, cycling gobos and colours, at full brightness. On the playa a Jetson reboot, an olad crash or a knocked XLR would have turned the tracker light into an uncommanded disco while the driver's HUD still assumed it was pointing at people.

BLnd is now set to blac. That beats any software keepalive, because it still works when the Jetson is the thing that died — precisely the case a keepalive cannot cover. hold was rejected too: the vehicle moves, so a held beam keeps a fixture-frame position while the car turns, rakes across whoever is there at full brightness, and reads as purposeful — which is worse than the disco.

Verified by camera — but not instant

The rig's own RGB camera watched the beam while olad was stopped:

BEFORE cut : beam_px = 8378
AFTER  cut : beam_px = [8347, 0, 0, 0, 0, 0, 0, 0, 0, 0]   (1.5 s per sample)

Blackout confirmed — the head goes dark, returns home, and stays dark. But the fixture holds its last commanded state for ~1.5–3 s first. Still fully lit 1.5 s after DMX stopped, dark by 3.0 s. So a momentary dropout will not blink the light, but blackout is not immediate: blac is not a substitute for the crash fail-safe or for a hardware switch. Three mechanisms, three different failures, none of them redundant.

Both CHnd (channel mode) and BLnd were power-cycled and re-derived by measurement rather than by reading the menu back; both persisted, and the blackout latency reproduced exactly. So this stays a pre-burn checklist item and not a design constraint — zvision does not need to detect the fixture's mode at startup. Still worth re-checking after any factory reset, which is a different operation from a power cut.

The decimal point is the signal indicator

A.001 with a flashing dot = valid DMX arriving. Steady dot = no signal. The cheapest possible “is data reaching the fixture” check, and it needs no tools.

Verified-good software chain

  • Dongle: FT232R, 0403:6001, serial BG03OCDS, USB → 3-pin XLR.
  • Plugin: FTDI USB DMX (ftdidmx), port patched to universe 0.
  • /dev/ttyUSB* is absent by design — libftdi detaches ftdi_sio when olad claims the device. Its absence is health, not a fault.
  • olad reads /etc/ola (from /etc/init.d/olad). /var/lib/ola/conf/ also contains ola-*.conf files and olad never reads them — the exact trap dmx.py warns about.
  • Health check without a scope: the unnamed olad thread (the FTDI TX thread) burns ~2 jiffies per 3 s at 30 Hz. Zero means it is not transmitting.

Channel 9 speed direction — 0 is FAST

The manual never said. Timed with the rig's camera: a large tilt move, timing how long until the beam left frame.

ch9Time to complete the same move
00.36 s
1280.42 s
2551.04 s

Monotonic across three points with a 2.9× spread, so it is a real gradient, not noise. The shipped default already sends 0, so it is right. The consequence is for the opposite problem: ch9 is the knob for making the head gentler, never faster. If it ever lags a walking contact, look at pan_slew_dps / tilt_slew_dps in software.

The failures are the instructive part

It took three attempts. (1) Timing how long the beam was visible — it never left frame, so every reading equalled the observation window, identical to two decimal places at all three speeds. A measurement that cannot come out differently is not a measurement, and it produced a confident “no effect” verdict. (2) Tracking the beam centroid — but with the beam near vertical, panning sweeps the spot in a tiny circle, 8 px for 50° of pan, so the gate degenerated to noise and again reported no effect. (3) A large tilt move timed to frame exit: tilt shifts the spot radially, so the motion is large and the stop condition unambiguous.

Both failures returned plausible numbers and the same wrong conclusion. The tell each time was in the diagnostics, not the verdict.

Colour wheel, measured with the rig's own camera

The head was pointed at the ceiling and the rig's RGB camera measured every slot. Method matters, because two things make a naive reading wrong: a clipped beam core reads white whatever colour is in it (every exposure from 5 to 320 gave lit_max = 255, so brightness was levelled per colour to land the core near 200), and the camera is not colorimetric (auto-exposure and auto-white-balance locked off — with auto-exposure on, the lit frame read darker than the dark frame — and every colour normalised against the open-white slot through the same optics, which divides out both the camera response and the LED's own spectrum).

ch5ColourMeasuredHueSat
0–8Open white#FFFFFF—0.00
10–18Red#FF442C6°0.83
20–28Green#00FF1F128°1.00
30–38Blue / cyan#00C9FF192°1.00
40–48Pale yellow#FFFCB458°0.29
50–58Amber#FFCF3746°0.79
60–68Aqua / turquoise#1CFFE2172°0.89
70–88Lavender / purple#EAAEFF284°0.31
90–98Yellow#FFE85452°0.70
100–118Pale yellow / yellow-green bandmixed50–76°0.26–0.42
120–139Green (second, wider slot)#00FF20128°1.00

140 and above is auto colour-spin — stay below it.

Against Zodiac's palette

ZodiacTargetBest slotMeasuredOff by
Blue #00BFFF195°ch5=34#00C9FF3° — effectively exact
Red #FF55550°ch5=14#FF442C6°, and more saturated than the UI red
Green #00FF66144°ch5=128#00FF2016° — wheel green is yellower than the UI mint
Purple #C77DFF274°ch5=78#EAAEFF10° hue, but sat 0.31 vs 0.51 — a pale lavender

Use ch5=128 for green, not 24. Both slots are the same filter, but the 120–139 slot is twice as wide, so an 8-bit DMX value plus wheel mechanical tolerance has far more margin before it lands on a boundary. A half-seated wheel washes the colour out — visible as saturation collapsing while hue still looks plausible, which is why the fine sweep reports saturation at all.

Roughly a third of the wheel (40–58, 90–118) is amber and yellow, which the palette bans. Worth knowing before anyone builds an idle colour chase: those slots are off-limits by the same rule that governs the screens.

Colour costs a lot of light

Open white reached peak 236 at dimmer 86; the green slot needed dimmer 128 to reach only 154. The tracker should stay on open white (ch5=0, which is TrackerConfig's behaviour today since it never writes ch5) — a spotlight following a person at night wants every lumen. Colour belongs to the idle/show state, not to tracking.

Gobo wheel

ch6 0–63 are the fixed patterns. Eight slots, exactly 8 DMX units each, so the safe values are the centres: 4, 12, 20, 28, 36, 44, 52, 60.

ch6CentreShape
0–74Open — plain round spot, no pattern
8–1512Rose / layered concentric swirl
16–2320Dot rosette — ring of ovals around an open centre
24–3128Triangle outline
32–3936Six-pointed star
40–4744Sunburst — wavy rays around an open centre
48–5552Pinwheel — curved blades
56–6360Shattered fragments

Only two read as vector geometry: the triangle (28) and the six-pointed star (36). Those sit with an 80s phosphor-vector aesthetic; the rose, rosette, sunburst, pinwheel and fragments are disco florals and will look like a hired dancefloor light, not like Zodiac.

The tracker must stay on the open slot. TrackerConfig never writes ch6, so it defaults to 0 — correct, and for the same reason as open white: a patterned beam thrown at a person is harder to see, not easier.

Mounting

At pan = 0 this fixture faces its LED-config-button side — the button side is one mechanical end stop, not the middle. Mount the head so the vehicle's forward direction sits near the middle of pan travel (~270). That leaves the full swing available either way before a stop, and keeps the pan-seam equivalence problem out of the picture entirely.

A calibrated pan centre used to aim at an end stop (fixed)

update clamped the pan target into [0, pan_range] before asking for the mechanically-equivalent angle, and nearest_equivalent_pan seeded its search with the raw target. Together: at a calibrated pan_center_deg of 60, a contact at az −80 computes to −20, is clamped to 0, and the head parks on its end stop pointing at nothing — while the reachable equivalent 340 (the same physical direction) was available the whole time. Invisible at the shipped centre of 270, it would have first appeared during on-vehicle calibration and read as a bad mount. Both halves were needed; reordering alone does not fix it.

Fail-safes, and the one that is missing

MechanismCoversState
dmxpark as ExecStopPostzvision crashing or being killed — systemd runs it on crash and kill, not just a clean stopDeployed and proven
BLnd = blac in the fixtureDMX stopping entirely (olad crash, Jetson reboot, knocked XLR)Verified by camera
Software operator killpython3 -m zvision.dmxpark from a shellBuilt
Hardware kill switchA wedged Jetson still streaming a valid universe — which neither of the above coversNot fitted
Outstanding — a labelled inline switch within the driver's reach

The software kill and BLnd=blac cover different failures (zvision dead vs DMX stopped). Neither covers a wedged Jetson still streaming a valid universe. Only a switch does.

The crash path was proven end to end: a hot universe (3 slots, dimmer 255) → systemctl kill -s SIGKILL zvision → 0 slots hot, beam out, service back up 2 s later.

Behaviour backlog — how the light reads to people

Deliberately not built; these are behaviour changes, not a defect list. Each is verified against the code.

ItemWhy it matters
Hysteresis is keyed on track id, and ids churnWith MotionDetector resetting tracks on a single-frame dropout, the held id vanishes routinely and the selector falls through to a stateless max(size) — so switch_margin never votes and the beam ping-pongs between two similar people. Fix without breaking the no-coasting rule: re-associate by bearing among contacts that exist this frame.
Douse while slewingThe dimmer goes to 255 the same frame a target is picked, while the slew takes seconds — dragging open white across the crowd and across the driving axis. Hold dark above ~10–15° of pan error, fade up on arrival.
The idle sound show runs at the last tracked aimSo it beat-flashes full brightness at the person it was just tracking. Needs a dimmer grace period on target loss, then slew to park before pulsing.
No dwell limit and no crowd gateThe selector will pin the nearest bystander indefinitely, and at every stop the car will be surrounded. Suggested: max dwell ~8–10 s then suppress that bearing sector, and above ~5 reachable contacts stop singling anyone out.
No reach-boundary hysteresisSomeone orbiting the vehicle at ±90° gets dropped and re-acquired per frame. Acquire ≤85°, release ≥95°.
Rate limiting is not smoothing12°/frame at 10 Hz passes bbox jitter straight through to a 3 kg head. Alpha-beta on the selected contact's azimuth, reset on target switch.
Tilt aims a size proxy at an unverified heightWith dimmer_track == dimmer_collision == 255, i.e. brightest at closest range. Consider aiming at the feet and derating the dimmer as size → 1.
ObservabilityNothing distinguishes “idle, correctly dark” from “olad dead” from “tracking someone behind the vehicle”. The sink already counts sends and errors and nothing reads them.
Calibration knobs have no flagsOnly --dmx-pan-center and --dmx-pan-gain exist. reach_half_deg, tilt_far/near, park position, slew rates and switch_margin are all field numbers that currently require editing tracker.py.
select_best is dead codeNo production caller; the shipped selector is a parallel reimplementation with extra rules. ~12 tests certify a function the light never runs. Until it is deleted or delegated to, the two can silently diverge — the “test agrees with the bug” shape this project keeps getting bitten by.

Method note

Observation lag over chat made single-frame tests ambiguous more than once — a report would arrive describing the previous frame. Alternating a channel on a fixed cycle and asking “what repeats?” is lag-proof where “what do you see now?” is not. The 9-channel finding was confirmed with a mutation test — change exactly one channel, predict the change, verify — rather than by accumulating agreeable evidence.

Converted from
jetson/MOVING-HEAD.md · ARCHITECTURE.md §6.4 · docs/DEVICES.md §4 · tasks/open.md