Skip to content

Add the MZTC thermal camera page to advanced features - #36

Open
wdunn001 wants to merge 1 commit into
iNavFlight:masterfrom
wdunn001:add-mztc-thermal-camera-page
Open

wdunn001 wants to merge 1 commit into
iNavFlight:masterfrom
wdunn001:add-mztc-thermal-camera-page

Conversation

@wdunn001

@wdunn001 wdunn001 commented Nov 7, 2026

Copy link
Copy Markdown

Add the MZTC thermal camera page to advanced features

Adds docs/06-advanced-features/thermal-camera.mdx and one photo, static/img/features-adv/mztc-board-identification.jpg.

Unmerged dependencies

This page documents a feature that has NOT merged yet. The firmware integration is iNavFlight/inav#12172 (OPEN, targets next-10.1). The Configurator additions for the adjustments and the Modes tab entry are iNavFlight/inav-configurator#2848 (OPEN, targets maintenance-10.x). The base Configurator MZTC support (Ports function, Configuration card, OSD element) merged earlier in iNavFlight/inav-configurator#2726. The page carries an info admonition saying the integration is part of the INAV 10.1 development branch and has not shipped in a stable release. I am the author of both open dependency PRs.

The page's "More information" section names the firmware reference file by path and links the pull request. A blob/master URL would return 404 until the feature reaches master. Once it does, the link can be swapped for the direct file URL.

Sources checked

Firmware, all on the PR 12172 head (wdunn001/inav, branch mztc-next-10.1):

  • src/main/fc/fc_msp_box.c: box name "THERMAL CALIBRATE"; the box is advertised only when a serial port carries the camera function. The Modes tab entry therefore appears after port assignment and reboot.
  • src/main/io/osd/mztc_camera_osd.c: format example "IR OK 2X WHT"; zoom names 1X, 2X, 4X, 8X; 14 palette codes; the element pads to constant width; blink is set only on the ERROR and OFFLINE states. The INITIALIZING state hides the fields without blinking (the unit test InitializingHidesZoomAndDoesNotBlink pins this). The firmware defines seven state texts but only five are reachable: nothing in the driver ever assigns the RECORDING or ALERT states (verified by searching every writer of the status field in src/main/io/mztc_camera.c). The page therefore lists OK, FFC, INI, ERR and OFF only.
  • src/main/io/mztc_camera.c: OFFLINE means no serial port carries the camera function; ERROR is set when an opened port stops answering; the driver reads the Peripherals baud column; model read command class 0x74 subclass 0x02.
  • src/main/fc/cli.c: the mztc CLI prints the identity bytes on a Device ID line, the link state, the error flags and the link quality.
  • src/main/target/common.h: USE_MZTC only on targets with more than 512 KB flash.
  • src/main/fc/settings.yaml: the mztc_palette_mode value table backing the palette table's CLI column.
  • src/main/fc/rc_adjustments.c: the two adjustments step through the palettes and zoom levels.
  • docs/MassZero_Thermal_Camera.md: preset names (CUSTOM, GENERAL, FIRE, SEARCH, SURVEILLANCE, INSPECTION, MARITIME), the palette code table, the wiring section, and the statement that the camera reports no temperatures. The same file states that a preset cannot detect a fire or a person.

Configurator, on the PR 2848 head (wdunn001/inav-configurator, branch mztc-adjustments-osd). That branch includes everything merged in #2726.

  • locale/en/messages.json: portsFunction_MZTC_CAMERA = "MassZero Thermal Camera", configurationThermalCamera = "MassZero Thermal Camera", configurationThermalCameraPreset = "Purpose preset", configurationThermalCameraPalette = "Colour palette", configurationThermalCameraZoom = "Digital zoom", configurationThermalCameraAdvanced = "Advanced image tuning", adjustmentsFunction61 = "Thermal Camera Zoom Adjustment", adjustmentsFunction62 = "Thermal Camera Palette Adjustment", osdElement_MZTC_STATUS = "Thermal Camera Status".
  • tabs/configuration.html: the camera card offers preset, palette and zoom plus an "Advanced image tuning" expander with shutter mode, shutter interval, enhancement, spatial and temporal denoising, brightness, contrast and mirroring.
  • tabs/ports.html, tabs/ports.js and js/serialPortHelper.js: the function sits in the Peripherals group; selecting the function rewrites the row's Peripherals baud to the function's defaultBaud of 115200 (tabs/ports.js updateDefaultBaud).
  • tabs/adjustments.js and js/fc.js: functions 61 and 62 are offered in the dropdown only while a port carries the camera function.
  • tabs/osd.js: the OSD element is offered only while a port carries the camera function.

Other:

  • The HM-TM5X community programmer README (github.com/knack-tactical/thermal_camera_programmer): the Get Model Name behavior, the 3.3 V adapter requirement, and the author's own early-stage caveat. The page passes that caveat on.
  • The board photo is my own camera module (model HM-04107 REV1.0, PCB 101253750). EXIF metadata was stripped and the unit's data matrix label and serial markings were blurred before committing.

Asks for a human reviewer or test pilot

  • The compatible-products list (Axisflying OEM mini series, IVCAN, JS-MINI) matches those vendors' published protocol material, but I have only flown the MassZero-branded module. Confirmation from anyone with a rebranded unit would be valuable.
  • The 256x192 / 384x288 / 640 class resolution variants come from vendor listings. I have no datasheet to cite for them. Please correct the page if a variant list is wrong.

Build

npm run build was run locally. This repository cannot fully check out on Windows because two files under versioned_docs/version-4.0.0 and version-8.0.1 contain : in their filenames. NTFS forbids that character. The build therefore ran with versions.json temporarily set to [] and the versioned trees absent; that temporary change is not part of this PR. The versioned trees were not exercised. The new page builds clean; the only SSG warnings in the full output belong to two pre-existing pages (fwsetup, hardware-overview). The page has no internal links. Its three external links (the firmware PR, the community programmer, masszerofpv.com) were each fetched by hand and resolve. A rename of the two : files would let Windows contributors build the full site.

Written by Fable 5 using Claude Code, in accordance with AGENTS.md.

The page covers the MassZero thermal camera integration arriving with
INAV 10.1: compatible OEM modules, board identification with a photo,
wiring, Configurator setup, the OSD status element, and the community
bench programmer. The firmware PR is iNavFlight/inav#12172 and the
Configurator PR is iNavFlight/inav-configurator#2848. Both are open.
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can hide the parts of a finding you never read, like the evidence or the agent prompt

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Document MZTC thermal camera setup in advanced features

📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Add a guide to compatible cameras, identification, wiring, and Configurator setup.
• Explain in-flight controls, OSD status, troubleshooting, and safe bench configuration.
• Flag that the integration requires unreleased INAV 10.1 firmware and Configurator builds.
Diagram

graph TD
  C["Configurator"] --> P["Assign UART"] --> F["INAV firmware"] --> M["MZTC camera"] --> V["Video transmitter"]
  F --> O["OSD status"]
Loading
High-Level Assessment

A current-development advanced-features page is appropriate: it gives pilots a setup guide while clearly marking the integration as unreleased. The firmware reference remains the better place for exhaustive command and settings tables; release-versioned documentation would be premature.

Files changed (1) +178 / -0

Documentation (1) +178 / -0
thermal-camera.mdxAdd the MZTC thermal camera user guide +178/-0

Add the MZTC thermal camera user guide

• Documents compatible modules, board identification, wiring, port assignment, camera settings, in-flight controls, OSD codes, and troubleshooting. Includes safety and release-status cautions and references a board photo and further resources.

docs/06-advanced-features/thermal-camera.mdx

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant