Repository navigation
Conversation
The throttle range calibration sat inside the Configuration box, below the SRXL2 settings, where it read as one more setting. It is a procedure run once on the bench, so it gets its own box between Configuration and Motors, shown with the SRXL2 protocol as before. Its buttons used regular-button, which only the Onboard Logging tab styles, so on this tab Start calibration showed as plain text. They use default_btn now, as the buttons of the other tabs do.
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoGive Smart ESC calibration its own Outputs box
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
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 route each severity your way: inline, summary, both, or drop |
|
Configurator test build ready — commit Download build artifacts for PR #2815 Available platforms (scroll to the Artifacts section at the bottom of the run page):
|
|
|
Ran the calibration from this box against a real Avian, on an E-flite T-28 with a TBS Lucid H7 Wing (firmware from today's maintenance-10.x), propeller off: the box sits under Configuration, the checkbox enables Start, the banner says "Connect the battery now" while it waits, and "Finished" once the battery went in and the sequence ended; the checkbox is cleared and Start disabled again afterwards. |




The Spektrum Smart ESC's throttle range calibration sat inside the Configuration box of the Outputs tab, under the SRXL2 settings, where it read as one more setting. It is a procedure run once on the bench, with its own warning and buttons, so this gives it a box of its own between Configuration and Motors. It shows with the SRXL2 protocol, as before.
Its two buttons used
regular-button, which only the Onboard Logging tab styles, so here "Start calibration" showed as plain text, the same whether it could be pressed or not. They now usedefault_btn, as the buttons of the other tabs do: grey until the checkbox is ticked, blue after.The change
tabs/outputs.html: the calibration moves out of#srxl2-escinto its owngui_box,#srxl2-calibration, with the same title, warning, checkbox, buttons and status, and the same ids.tabs/outputs.js:srxl2UpdateVisibility()shows and hides it together with#srxl2-esc.src/css/tabs/motors.css: 10px under the button, because the status banner below it clears the floated button and so loses its own top margin.What the calibration does is unchanged: the ids and the handlers are the same.
Tested
npm test: 290 of 291 pass. The one failure, "unused MZTC writes remain unused and conservatively blocked", fails the same way on maintenance-10.x.Related
#2814 (the ESC connector option) changes the same two files. They merge without conflicts. I took the screenshot with the two together; nothing of #2814 is in view.
#2828 (a protocol change calls off the calibration) also changes
srxl2UpdateVisibility(). The two merge cleanly in either order; I'll run them together on a board before either is merged.