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
Collaborator

Summary

  • New kernel command 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 broadcasts EVT_ROI_ACTIVE (EVT_CLASS_SYSTEM) like a sensor ROI; saved as a report event on the Controller node.
  • PTZ, preset and static camera controls act on a map ROI only when the point passes testFOV, inside an if (1) { ... } else { ... } placeholder for a future camera setting (the else branch acts without the test).
  • 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).

Test

  • Local map: 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

  • Headers changed (dataBinder_structures.h, mojoKernel.h, objectSystemAnchor.h): clean rebuild.

Generated with Claude Code

https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16

## Summary - New kernel command `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 broadcasts `EVT_ROI_ACTIVE` (`EVT_CLASS_SYSTEM`) like a sensor ROI; saved as a report event on the Controller node. - PTZ, preset and static camera controls act on a map ROI only when the point passes `testFOV`, inside an `if (1) { ... } else { ... }` placeholder for a future camera setting (the else branch acts without the test). - `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). ## Test - Local map: `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 - Headers changed (`dataBinder_structures.h`, `mojoKernel.h`, `objectSystemAnchor.h`): clean rebuild. Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16
ClaudeAI added 2 commits 30 minutes ago
129ce2c70a
Map ROI: kernel command from a click on the monitoring map, cameras look at the point
d7911074a3
Map ROI: placeholder for a camera setting - test the point or always look at it
ClaudeAI merged commit f598b06324 into master 30 minutes ago
The pull request has been merged as f598b06324.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.