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
| Value | Provenance | |
|---|---|---|
| Channel mode | 11-channel | Measured three independent ways after the fixture arrived in 9-channel |
| Pan range | 540° | Manual, confirmed by measurement |
| Tilt range | 180° | Measured — the manual says 270° and is wrong |
| Pan channels | 1 coarse, 2 fine | Measured |
| Tilt channels | 3 coarse, 4 fine | Measured |
| Colour wheel | ch 5 | Values ≥ 140 trigger auto colour-spin |
| Dimmer | ch 8 | Measured — not ch 5 |
| Never written | ch 10, ch 11 | Auto programs; mode-select / motor reset |
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.
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:
| Evidence | Reading |
|---|---|
| DMX → angle progression | tilt 64 → 45°, 128 → dead vertical, 192 → 135° |
| Scale factor | 64 DMX units = 45°, so 255 units = 179° |
| End stops | tilt 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.
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
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.
| Config | Value | Why |
|---|---|---|
pan_channel / pan_fine_channel | 1 / 2 | 16-bit pan |
tilt_channel / tilt_fine_channel | 3 / 4 | 16-bit tilt |
colour_channel | 5 | Declared for zdeck; the tracker never writes it |
dimmer_channel | 8 | Not 5 |
forbidden_channels | 10, 11 | Auto programs; mode-select / motor reset |
pan_range_deg | 540 | Measured |
tilt_range_deg | 180 | Measured. Pinned by a test |
pan_center_deg / pan_gain | 270 / 1.0 | Mid-travel and unmirrored; nominal, needs on-vehicle calibration |
tilt_far_deg / tilt_near_deg | 90 / 106.7 | Rescaled for the 180° range; uncalibrated placeholders |
reach_half_deg | 90 | Forward plus both sides; a contact going astern releases the latch |
pan_slew_dps / tilt_slew_dps | 120 / 90 | Slew rate limits |
switch_margin | 0.15 | Hysteresis, so the beam does not twitch between two similar contacts |
sound_gain / sound_silence / beat_dimmer | 4.0 / 0.03 / 255 | The idle $ZAUD show |
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
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.
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, serialBG03OCDS, USB → 3-pin XLR. - Plugin: FTDI USB DMX (
ftdidmx), port patched to universe 0. /dev/ttyUSB*is absent by design — libftdi detachesftdi_siowhen olad claims the device. Its absence is health, not a fault.oladreads/etc/ola(from/etc/init.d/olad)./var/lib/ola/conf/also containsola-*.conffiles and olad never reads them — the exact trapdmx.pywarns 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.
| ch9 | Time to complete the same move |
|---|---|
| 0 | 0.36 s |
| 128 | 0.42 s |
| 255 | 1.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.
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).
| ch5 | Colour | Measured | Hue | Sat |
|---|---|---|---|---|
| 0–8 | Open white | #FFFFFF | — | 0.00 |
| 10–18 | Red | #FF442C | 6° | 0.83 |
| 20–28 | Green | #00FF1F | 128° | 1.00 |
| 30–38 | Blue / cyan | #00C9FF | 192° | 1.00 |
| 40–48 | Pale yellow | #FFFCB4 | 58° | 0.29 |
| 50–58 | Amber | #FFCF37 | 46° | 0.79 |
| 60–68 | Aqua / turquoise | #1CFFE2 | 172° | 0.89 |
| 70–88 | Lavender / purple | #EAAEFF | 284° | 0.31 |
| 90–98 | Yellow | #FFE854 | 52° | 0.70 |
| 100–118 | Pale yellow / yellow-green band | mixed | 50–76° | 0.26–0.42 |
| 120–139 | Green (second, wider slot) | #00FF20 | 128° | 1.00 |
140 and above is auto colour-spin — stay below it.
Against Zodiac's palette
| Zodiac | Target | Best slot | Measured | Off by |
|---|---|---|---|---|
Blue #00BFFF | 195° | ch5=34 | #00C9FF | 3° — effectively exact |
Red #FF5555 | 0° | ch5=14 | #FF442C | 6°, and more saturated than the UI red |
Green #00FF66 | 144° | ch5=128 | #00FF20 | 16° — wheel green is yellower than the UI mint |
Purple #C77DFF | 274° | ch5=78 | #EAAEFF | 10° 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.
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.
| ch6 | Centre | Shape |
|---|---|---|
| 0–7 | 4 | Open — plain round spot, no pattern |
| 8–15 | 12 | Rose / layered concentric swirl |
| 16–23 | 20 | Dot rosette — ring of ovals around an open centre |
| 24–31 | 28 | Triangle outline |
| 32–39 | 36 | Six-pointed star |
| 40–47 | 44 | Sunburst — wavy rays around an open centre |
| 48–55 | 52 | Pinwheel — curved blades |
| 56–63 | 60 | Shattered 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.
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
| Mechanism | Covers | State |
|---|---|---|
dmxpark as ExecStopPost | zvision crashing or being killed — systemd runs it on crash and kill, not just a clean stop | Deployed and proven |
BLnd = blac in the fixture | DMX stopping entirely (olad crash, Jetson reboot, knocked XLR) | Verified by camera |
| Software operator kill | python3 -m zvision.dmxpark from a shell | Built |
| Hardware kill switch | A wedged Jetson still streaming a valid universe — which neither of the above covers | Not fitted |
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.
| Item | Why it matters |
|---|---|
| Hysteresis is keyed on track id, and ids churn | With 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 slewing | The 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 aim | So 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 gate | The 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 hysteresis | Someone orbiting the vehicle at ±90° gets dropped and re-acquired per frame. Acquire ≤85°, release ≥95°. |
| Rate limiting is not smoothing | 12°/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 height | With dimmer_track == dimmer_collision == 255, i.e. brightest at closest range. Consider aiming at the feet and derating the dimmer as size → 1. |
| Observability | Nothing 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 flags | Only --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 code | No 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 fromjetson/MOVING-HEAD.md · ARCHITECTURE.md §6.4 · docs/DEVICES.md §4 · tasks/open.md