Map ROI: kernel command from a click on the monitoring map #29
Merged
ClaudeAI
merged 2 commits from feature/map-roi into master 30 minutes ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'feature/map-roi'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Summary
CMD_KRNL_MAP_ROI(242), parameter<format>;<lat|y>;<lon|x>from Mojo_Web (doApplicationOperation 15): format 0 = WGS84, 1 = local binding (bitmap map).mojoKernel::mapROI(): WGS84 -> system coordinates through the site anchor (its UTM zone, site ground level); local -> map minus anchor. 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 broadcastsEVT_ROI_ACTIVE(EVT_CLASS_SYSTEM) like a sensor ROI; saved as a report event on the Controller node.testFOV, inside anif (1) { ... } else { ... }placeholder for a future camera setting (the else branch acts without the test).systemAnchor: newconvertToSystem(WGS84)in the anchor's own UTM zone; the existingconvertToSystem(SP, WGS84)subtracted the anchor's X from Y (no caller used it).Test
1;30.5;-12.25-> system x -12.25 y 30.5, report event type 36 on node 1. WGS84 anchor 32.0/34.8, point +0.001 deg -> x 92.38 m, y 112.25 m (UTM grid). Mismatched format and garbage parameter ignored with a log line. Confirmed working on the target system.Notes
dataBinder_structures.h,mojoKernel.h,objectSystemAnchor.h): clean rebuild.Generated with Claude Code
https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16
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_0139veDo3XyavMuVhdnHcN16f598b06324.