Repository navigation
Conversation
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 reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can hide the parts of a finding you never read, like the evidence or the agent prompt |
PR Summary by QodoDocument MZTC thermal camera setup in advanced features
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the MZTC thermal camera page to advanced features
Adds
docs/06-advanced-features/thermal-camera.mdxand 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, targetsmaintenance-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/masterURL 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, branchmztc-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 insrc/main/io/mztc_camera.c). The page therefore listsOK,FFC,INI,ERRandOFFonly.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: themztcCLI prints the identity bytes on aDevice IDline, the link state, the error flags and the link quality.src/main/target/common.h:USE_MZTConly on targets with more than 512 KB flash.src/main/fc/settings.yaml: themztc_palette_modevalue 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, branchmztc-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.jsandjs/serialPortHelper.js: the function sits in the Peripherals group; selecting the function rewrites the row's Peripherals baud to the function'sdefaultBaudof 115200 (tabs/ports.jsupdateDefaultBaud).tabs/adjustments.jsandjs/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:
Asks for a human reviewer or test pilot
Build
npm run buildwas run locally. This repository cannot fully check out on Windows because two files underversioned_docs/version-4.0.0andversion-8.0.1contain:in their filenames. NTFS forbids that character. The build therefore ran withversions.jsontemporarily 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.