PTZ, preset and static camera controls: a map ROI goes through
if (1) { testFOV then act } else { act }; the condition becomes a camera
setting later (lookAt alone clamps pan/tilt/zoom to the camera's limits,
so every camera would turn to every click).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16
- CMD_KRNL_MAP_ROI (242), PARAM "<format>;<lat|y>;<lon|x>" from Mojo_Web
(doApplicationOperation 15): format 0 = WGS84 degrees, 1 = local
binding (bitmap map, map units).
- mojoKernel::mapROI(): WGS84 -> system coordinates through the site
anchor (its UTM zone, the site's ground level); local -> map minus the
anchor (the map shows a node at anchor + its local coordinates). A
format that does not match the anchor (map type changed after the
start) or a wrong parameter is logged and ignored. Starts a session and
broadcasts EVT_ROI_ACTIVE (EVT_CLASS_SYSTEM, TARGET_DATA) like a sensor's
ROI; dispatchEvent saves it as an event of the report.
- Cameras: a map ROI has no preferred camera, so PTZ, preset and static
cameras act on it only when the point passes their testFOV (range,
pan limits, field of view): PTZ/preset lookAt, static makeSnap.
- systemAnchor: new convertToSystem(WGS84) in the anchor's own UTM zone;
the existing convertToSystem(SP, WGS84) subtracted the anchor's X from
Y (no caller used it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16
A handler was registered in the basicEventHandler constructor (before
the derived members existed) and removed in its destructor (after they
were destroyed): the event heap could call dispatchEvent() on a half-
built or half-destroyed node or module when one was created or deleted
while la_mojo runs (node / module reload).
- Camera nodes (deviceNodePTZCamControl, deviceNodePresetCamControl,
deviceNodeStaticCamControl): basicEventHandler(false), attachEvents()
at the end of both constructors, detachEvents() first thing in the
destructor.
- Kernel modules: kernelModule no longer registers in its constructor;
kernelModuleFactory attaches a module right after creating it (all
modules are created there), before startService(). Every module
destructor (USB relay, Kafka, FlyHunter, SSDP, ONVIF observer, embed
video (both variants), modem manager, Bosch, attention cloud, report
backupper) calls detachEvents() first.
- basicEventHeap::moveHandlerTop/Bottom no longer register a handler
that is not registered (would have registered an object twice once
attachEvents() runs).
Sensor nodes are not event handlers and are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16