Commit Graph

41 Commits

Author SHA1 Message Date
Peter Bochmann fc507f7407
Give the thermal picture the time its own frame arrived
Both frames of a waypoint used to take the colour frame's time, which made
the thermal one look taken at a moment it was not: it is the newest frame the
camera had, up to max_frame_age_ms old. Each file and CamEvent now has the
time its own frame reached the host; the two of one waypoint share hdg/pit and
are at most that age apart. The docs say to pair them by that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 19:42:32 +02:00
Peter Bochmann ff89643a4f
Run the thermal camera's NUC while the gimbal moves
The camera recalibrated against its shutter every 30 s and sent no frame for
about 0.7 s meanwhile: a picture falling into that had no thermal image (0.8 %
on tower 111, the 30 s rhythm shown by the new gap logging). The program now
switches the camera's timer off and runs the NUC itself (NUC_Perform, which
returns when it is done) when a move starts and nuc_interval_s (30) has passed,
or after twice that with no move. The scheduler tells the cameras of every move
(ICameraSource::moving), and a picture waits up to 1 s for a camera between
frames (frameReady) rather than go without it. The camera's own timer goes
back on exit; nuc_interval_s = 0 leaves it alone.

Measured on tower 111 before writing it: NUC_Interval = 0 gave 70 s without a
gap; NUC_Perform ran three NUCs of 657-677 ms; NUC_INPROGRESS never changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 19:02:20 +02:00
Peter Bochmann 3d90af8490
Take a thermal picture beside the colour one at every waypoint
A TarisIR mini (driver = taris) is a second camera source behind a
CompositeCameraSource: the colour camera is asked first, then the thermal one
for its newest frame, and both frames carry the colour frame's timestamp.
Counts are saved 16-bit lossless under TIR/, and the CamEvent gains cal,
missed, tmax, tmed, hotx and hoty (docs/mqtt-api.md). The SDK is declared in
IrbgrabApi.h and loaded with dlopen, so no SDK file is in the repository; a
missing or unreachable camera stays offline (Health cams_offline) while the
scan goes on. scripts/fgc-setcap gives the binary cap_net_raw after a build.

Built and tested in an Ubuntu 22.04 container (mock, MQTT, Vimba+MQTT,
534/534), plus a mock run with RGB/TIR pairs. Not yet run against the camera.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 20:37:25 +02:00
pgdalmeida 6fa43f1e08
Slow down, then pause, the scan when the tower computer runs hot or cannot keep up 2026-10-08 17:21:58 +02:00
pgdalmeida ce6ef3f79a
Keep each tower's config, scan grid and camera profiles in ~/.config/fire_gimbal_control, out of a deploy's reach 2026-10-05 22:02:49 +02:00
pgdalmeida 70a30132bf
Merge counting the picture interval from the last picture and waiting for a slow camera's next frame 2026-10-05 13:02:13 +02:00
pgdalmeida cfd8ba9978
Save raw 12-bit camera frames as 12-bit colour images, keep a waypoint's picture once the image has settled, and hold the scan when saving falls behind 2026-10-05 10:14:53 +02:00
pgdalmeida fb0f5117df
Count the picture interval from the last picture, and let a settle wait of 0 wait for the exposure to settle 2026-10-02 18:28:40 +02:00
pgdalmeida 4488a2181d
Set in config.ini whether the tower homes and which mode it starts in, instead of the --init and --start flags 2026-09-30 16:42:48 +02:00
pgdalmeida f2c61e030e
Let a yaw-only tower aim with gimbal move, and stop it publishing a made-up pitch 2026-09-29 19:50:39 +02:00
pgdalmeida a21be0d4e8
Take the scan waypoints only from the CSV file, never generate them 2026-09-29 15:02:19 +02:00
pgdalmeida f4e67666d8
Give the tower three modes, auto, pan and manual, switched by command 2026-09-25 17:50:48 +02:00
pgdalmeida d8d2fee8af
Test the camera with forced dark and bright settings, and recover a camera that stops sending frames 2026-09-24 17:35:37 +02:00
pgdalmeida 5a0515ab13
Test that the camera delivers frames and follows its settings to black and white 2026-09-24 15:47:58 +02:00
pgdalmeida 582047d3a2
Keep a log file, so a tower's record outlives the tmux session 2026-09-22 18:15:09 +02:00
pgdalmeida 57a166c9a4
Warn when the homed travel falls below zero, and say why the centre matters 2026-09-21 23:06:37 +02:00
pgdalmeida 522ba072ec
Answer the firmware's NEED lines from hardware.ini 2026-09-18 16:16:04 +02:00
pgdalmeida 579c4ec166
Let a declared sensor enable itself, and retire the duplicate flag 2026-09-18 15:57:10 +02:00
pgdalmeida b5d1fac4cb
Declare axis speed in degrees per second, not VMAX 2026-09-18 15:44:19 +02:00
pgdalmeida 0c1d0a6df8
Send and verify motor current, and derive counts_per_deg from the homed travel 2026-09-17 17:58:46 +02:00
pgdalmeida b97df0adf2
Honour enable_camera and skip camera profiles when no real camera is used 2026-09-16 18:27:12 +02:00
pgdalmeida 1a572cb074
Changed heading logic; added snapshot feature 2026-09-11 17:42:01 +02:00
pgdalmeida 5fce32aee7
IMU readings fixed; IMU mounting is part of config.ini; device config verified at startup 2026-09-09 12:19:53 +02:00
pgdalmeida a5ad814260
Camera settings now come from VimbaX profile XMLs; explicit per-camera config 2026-09-04 14:12:05 +02:00
pgdalmeida ef96513b58
MQTT messages working 2026-08-26 17:56:56 +02:00
pgdalmeida f1342965de
Camera is now configured by per-mode files; quality gate removed 2026-08-26 15:52:47 +02:00
pgdalmeida 02d3f573cf
Image rotation is now configurable via Camera.rotation_deg 2026-08-26 14:14:49 +02:00
pgdalmeida 5053b82811
Scan sweep now always runs front to back instead of ping-ponging 2026-08-26 10:01:16 +02:00
pgdalmeida 376e79536c
camera logic improved 2026-08-07 15:04:47 +02:00
pgdalmeida 48c9aa529d
refactor and bug fixes 2026-08-05 17:00:42 +02:00
pgdalmeida 271b076394
added temperature and humidity sensor (SHT41) 2026-08-05 09:13:16 +02:00
pgdalmeida c41cb6fc6a
Added camera control 2026-07-13 19:15:38 +02:00
pgdalmeida bdb4b82885
Introduced harware in-situ testing 2026-07-01 10:02:34 +02:00
pgdalmeida d4d1993a25
added extra encoder tracking information 2026-06-29 23:35:45 +02:00
pgdalmeida c972aba4d3
Anchored yaw to 0-360 degrees range 2026-06-29 22:33:00 +02:00
pgdalmeida e33781c545
Integration of IMU 2026-06-24 11:03:28 +02:00
pgdalmeida 09b032b998
added terminal user interface (TUI) 2026-06-23 13:21:34 +02:00
pgdalmeida 14707c62ae
Migrate host to the current firmware serial protocol (counts/MOVE/ST) 2026-06-22 23:44:13 +02:00
pgdalmeida 90f689c829
Add per-category verbatim wire tracing 2026-06-22 22:30:26 +02:00
pgdalmeida c4b24c0fbf
Add CMake build and typed config with path resolution (remove hardcoded paths) 2026-06-22 12:08:18 +02:00
pgdalmeida 89be503edb
Initial commit 2026-06-22 11:23:01 +02:00