Skip to content

feat(plugins): add control surface setup plugin for planes and tilt-rotors - #2437

Open
Allister779 wants to merge 8 commits into
ArduPilot:masterfrom
Allister779:feat/control-surface-setup
Open

Allister779 wants to merge 8 commits into
ArduPilot:masterfrom
Allister779:feat/control-surface-setup

Conversation

@Allister779

Copy link
Copy Markdown
Contributor

Description

Adds a control surface setup plugin to ArduPlane step 23_general_configuration.param. It guides the user through setting up the physical flight controls of a plane, and the tilt servos of a tilt-rotor QuadPlane. Every adjustment is written to the flight controller immediately, so the surfaces move while the user edits them. Save to flight controller reads each value back from the FC and records it, with a change reason, in the current step file.

The plugin assumes that the RC inputs, the board orientation and the SERVOx_FUNCTION outputs were set up in earlier steps.

Tabs

Tab Mode Adjusts
1. Servo direction FBWA SERVOx_REVERSED: move the airframe by hand. The surfaces must oppose the motion, following the four channel plane guide
2. Stick direction FBWA or MANUAL RCx_REVERSED for the RCMAP_ROLL/PITCH/YAW channels
3. Trim and travel MANUAL SERVOx_TRIM/MIN/MAX, with a warning when trim is more than 50 µs from 1500
4. Tilt rotors (only with Q_TILT_ENABLE=1) MANUAL / QSTABILIZE Q_TILT_TYPE, Q_TILT_YAW_ANGLE, Q_TILT_FIX_ANGLE, and tilt-servo reversal and forward/hover end points (tilt-rotor setup)

Primary flight-control functions: 4, 19, 21 and 77–80. Several outputs can share a function, for example one per aileron. Tilt functions: 41, 45, 46, 47, 75 and 76.

Safety

  • A mode change is refused unless the battery voltage is above BATT_ARM_VOLT. The plugin can command FBWA, MANUAL or QSTABILIZE even when they are not configured in FLTMODEx.
  • Leaving the step restores the flight mode that was active before the plugin changed it.
  • The tilt tab requires Q_TILT_MASK > 0. A warning is shown when KFF_RDDRMIX = 0, because the rudder then does not respond when the plane is rolled in FBWA.
  • Values are range-checked against the firmware metadata. For control surfaces, MIN <= TRIM <= MAX must hold.
  • After a save, the plugin lists any RebootRequired parameters that were changed.

Backend

FlightController gains set_flight_mode() (MAV_CMD_DO_SET_MODE with a custom mode) and request_servo_output_messages() (SERVO_OUTPUT_RAW interval). A plugin-local ServoTelemetryBackend reads SERVO_OUTPUT_RAW and HEARTBEAT for the live PWM and flight-mode display. The design notes are in ARCHITECTURE_control_surface_setup.md.

Checklist

  • Run pre-commit checks locally
  • Verified by a human programmer
  • All commits are signed off (use git commit --signoff)
  • Code follows our coding standards
  • Documentation updated if needed
  • No breaking changes or properly documented

Testing

  • Unit tests pass: new model, view and backend command tests. The affected suites pass (2183 tests).
  • Integration tests pass
  • Manual testing performed
  • Tested on flight controller hardware

The local pre-push mypy hook was skipped. It reports 3 Windows-only errors on Linux (backend_internet.py, frontend_tkinter_base_window.py), and those files are not touched by this PR.

🤖 Generated with Claude Code

@coveralls

coveralls commented Nov 26, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 46657757621

Warning

No base build found for commit 0ed62b5 on master.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 96.186%

Details

  • Patch coverage: No coverable lines changed in this PR.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 34167
Covered Lines: 32864
Line Coverage: 96.19%
Relevant Branches: 10440
Covered Branches: 9491
Branch Coverage: 90.91%
Branches in Coverage %: No
Coverage Strength: 2.87 hits per line

💛 - Coveralls

@Allister779
Allister779 force-pushed the feat/control-surface-setup branch from 636c70b to bd976f1 Compare November 27, 2026 21:01
@Allister779 Allister779 mentioned this pull request Nov 29, 2026
6 of 10 tasks
@Allister779
Allister779 force-pushed the feat/control-surface-setup branch from bd976f1 to 101dc0d Compare November 30, 2026 19:55

@amilcarlucas amilcarlucas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Save to flight controller" is misleading. The controls write edits immediately. The button reads back only parameters edited in the plugin, then stages those and cached values in the current step. Once it reads every value it stages, I’d use "Read from flight controller" and keep the tooltip’s explanation of where the values go. The success dialog needs the same correction. Button label (line 179) · Success message (line 189)

AI Findings, use with care:

  • [P1] Tilt setup can guide users to calibrate the wrong endpoint. The hover UI always presents MIN or MAX as the vertical adjustment. ArduPlane uses an interior position for vectored yaw when Q_TILT_YAW_ANGLE is nonzero, and uses TRIM as vertical for bicopters. The guidance can lead users to shift the physical travel limits while trying to center the mechanism. Endpoint selection (line 569) · ArduPlane 4.6 vectored yaw · ArduPlane 4.6 bicopter
  • [P1] A mode change can go through before the plugin knows the original mode. The mode buttons check battery voltage, and the model checks for a connection. With no heartbeat yet, a successful command leaves _initial_mode unset and cleanup skips restoration. The same path permits commands while armed. Require a fresh heartbeat from the selected controller and a known disarmed state before sending bench-test commands. Mode button handler (line 441) · Mode capture and restoration (line 420)
  • [P2] Readback can report success with stale values. If the controller has changed since the last download, clicking the button on an untouched tab can stage the old values and report success with zero reads. Fetch every parameter the action will stage and report mismatches against pending live edits. Staging loop (line 279)
  • [P2] A readback timeout aborts the action without a result dialog. fetch_param() raises TimeoutError, which escapes the loop and the Tk callback. Earlier values may already be staged, and the remaining parameters are skipped. Report the failed read in the result and make any partial staging visible. Staging loop (line 292) · Backend timeout (line 432)
  • [P2] Leaving an untouched numeric field sends a parameter write. _LiveSpinbox calls its write handler on every focus loss, including when the displayed value is unchanged. Moving through fields can silently write cached values back to the controller. Track whether the user actually edited the field before sending a write. Spinbox bindings (line 60)

@Allister779

Copy link
Copy Markdown
Contributor Author

Thanks for the review. Changes are in 978ddaa, and I've tested them on a tilt-tri VTOL (Q_TILT_TYPE 2, Plane 4.7.3 and Plane 4.6.0).

Your review points

  • The button is now "Read from flight controller". It reads every parameter it records from the FC and checks that live edits read back unchanged. It then records all of them or none. Read timeouts are reported instead of escaping.
  • Mode changes and live writes need a heartbeat less than 3 s old from the selected FC showing it disarmed. Until then the mode buttons are disabled and the reason is shown. The mode to restore on exit is captured from that heartbeat.
  • Numeric fields write only when the value has changed.
  • Tilt end points: the tab follows the tilt-rotor setup tips procedure. You adjust the forward end point in MANUAL and the other one in QSTABILIZE, repeating both. For vectored yaw, Tiltrotor::vectoring itself drives the servo to the interior vertical and level positions in those modes. So adjusting MIN/MAX until the motors are vertical and level there sets the travel, including the YAW_ANGLE overshoot, without shifting the limits wrongly. The tab now says to set the angles first and to iterate, and it mentions Q_OPTIONS bit 10 for checking the yaw limits. Bicopter hover now uses TRIM, per Tiltrotor::bicopter_output. Thanks for catching that.

Found during hardware testing

  • A value typed into a field and followed straight away by a button click was never written, because a Tk button click doesn't take focus. Every button now writes pending edits first.
  • After a parameter was already in the step, reading it back again updated only the parameter table's "New" column. "Current" now also follows the value just read from the FC.
  • Tilt servo end points can now go outside the documented 800-2200 µs range, with a warning beside the value. My aircraft needs SERVOx_MAX = 2290 to reach the tilt angles. Control surfaces keep the hard limit. This is a function of the Q_TILT_x_ANGLES and is normal.
  • The tilt tab now shows Q_OPTIONS as one checkbox per bit, named from the firmware metadata. It is read back together with the tilt settings.
  • Both read-back buttons on the tilt tab are now labelled "Read from flight controller".

@amilcarlucas amilcarlucas added the AIReview Request an automated AI review; picked up by the reviewprs sweep label Dec 1, 2026
Allister779 and others added 5 commits December 1, 2026 07:29
…otors

Add a control_surface_setup plugin to ArduPlane step 23 (general
configuration) that guides the user through:

1. Servo direction in FBWA: move the airframe and live-toggle
   SERVOx_REVERSED for aileron, elevator, rudder, elevon and V-tail outputs.
2. Stick direction: live-toggle RCx_REVERSED for the RCMAP roll/pitch/yaw
   channels.
3. Trim and travel in MANUAL: live SERVOx_TRIM/MIN/MAX editing with a
   warning beyond 1500 +/- 50 us, and roll/pitch/yaw sliders that simulate
   stick input with RC_CHANNELS_OVERRIDE (center and release buttons).
4. Tilt rotors (Q_TILT_ENABLE=1, Q_TILT_MASK>0): verify Q_TILT_TYPE,
   Q_TILT_YAW_ANGLE and Q_TILT_FIX_ANGLE, then set tilt servo reversal and
   forward (MANUAL) and hover (QSTABILIZE) end points.

Flight-mode changes require battery voltage above BATT_ARM_VOLT. Save reads
the live values back from the FC and stages them in the current step.
Leaving the step releases overrides and restores the original flight mode.

The flight controller backend gains set_flight_mode (MAV_CMD_DO_SET_MODE),
send_rc_channels_override and request_servo_output_messages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Allister779 <[email protected]>
…d sticks

- Stick direction tab: add a "Switch to MANUAL" button beside FBWA so the
  user can check RC stick directions in either mode.
- Trim and travel tab: remove the simulated stick sliders. The user moves
  the transmitter sticks to drive the surfaces to their limits instead.
- Remove the now unused RC_CHANNELS_OVERRIDE support from the model and the
  flight controller backend, along with the GCS system id warning.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Allister779 <[email protected]>
… servo telemetry

Pylint duplicate-code flagged the servo telemetry backend and a test
assertion. The RC telemetry backend now exposes stream request and
restore hooks, so the servo backend overrides them and filters the
shared bounded read instead of copying it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Allister779 <[email protected]>
…rchitecture index

Add the control surface setup plugin to the plugin list in ARCHITECTURE.md and
give the tilt-rotor "Acknowledge settings" button and "Reversed" check boxes
mouse-over tooltips, as COMPLIANCE.md requires for all GUI elements.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Allister779 <[email protected]>
…ndings

Review feedback:
- Replace "Save to flight controller" with "Read from flight controller":
  every value is fetched fresh from the FC, live edits must read back
  unchanged, and nothing is staged unless every read succeeds.
- Require a recent HEARTBEAT with the vehicle disarmed before mode
  switches and live writes; disable the mode buttons and say why.
- Follow the ArduPilot tilt-rotor setup procedure: set the tilt angles
  first, set REVERSED so motors tilt forward in MANUAL and up in
  QSTABILIZE, then adjust both end points and repeat. Handle bicopter
  tilt servos (hover at TRIM) and point vectored-yaw users to Q_OPTIONS
  bit 10.

Bench-test findings:
- Write typed but unconfirmed values before any button acts.
- Refresh the parameter table's current FC value on every read-back, not
  only when the parameter is first added to the step.
- Allow tilt servo end points outside the documented range with a
  warning, since reaching the tilt angles often needs this.
- Add Q_OPTIONS to the tilt tab as one checkbox per bit, named from the
  firmware metadata, and read it back with the tilt settings.
- Label both tilt-tab read-back buttons "Read from flight controller".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Allister779 <[email protected]>
@Allister779
Allister779 force-pushed the feat/control-surface-setup branch from 978ddaa to 042da87 Compare December 1, 2026 13:34
@AP-Review

AP-Review commented Dec 1, 2026 •

Copy link
Copy Markdown

Deprecated — see below for the updated review.

Previous review (2026-12-01)

Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting.
Verdict: REQUEST CHANGES

Reviewed at head 978ddaab24.
Full report: https://firmware.ardupilot.org/Tools/APReview/DevCallReviews/PRReviews/ardupilot/methodicconfigurator/2437/1.html#prMethodicConfigurator-2437

Thanks for the thorough update. At 978ddaa the earlier points are fixed: the readback relabel and all-or-none staging, timeout handling, change-only spinbox writes, bicopter TRIM, and the disarmed/heartbeat gate on the buttons. Two safety gaps remain.

Blocking

  1. data_model_control_surface_setup.py:504: leaving the step restores the original flight mode without the disarmed/fresh-heartbeat check, so an armed vehicle can be sent e.g. QHOVER or RTL on close. Only restore when bench_command_problem() is empty, otherwise skip and log.
  2. data_model_control_surface_setup.py:713: changing Q_TILT_TYPE into or out of vectored yaw (2) only takes effect for the tilt servos after a reboot, but the metadata has no RebootRequired, so no reboot is requested and the tab goes straight on to end-point calibration against the wrong outputs. Treat Q_TILT_TYPE as reboot-required here and disable the end-point and mode controls until the FC has rebooted.

Should fix

  • frontend_tkinter_control_surface_setup.py:678: on_suspend() leaves pending spinbox writes (150 ms timer, FocusOut) able to fire while an upload or connection recovery owns the link. Cancel them on suspend and ignore live writes while not active.
  • data_model_control_surface_setup.py:762: Q_OPTIONS bits are built from the plugin's own last write, not a refreshed FC value. After an upload that stays on this step, ticking one bit can drop others. Clear or reconcile _live_values on resume.

Not fully reviewed: commits after 978ddaa (the PR head is now 042da87), plus hardware, real-Tk and bicopter/Plane 4.6 behaviour.

Head moved during review: observed 042da870002ab1418b23e4ac9e3471affd0697ce. This review covers only 978ddaab2413e840b4ade1976d0233385423bd31; followup eligible.

- Restore the original flight mode on close only when a fresh heartbeat
  shows the vehicle disarmed; otherwise skip it and log a warning.
- Treat Q_TILT_TYPE as reboot-required (Tiltrotor::setup reads it only
  at boot): after a change, lock the tilt end points, Reversed boxes and
  tilt mode buttons until the FC reconnects, and list it in the reboot
  prompt.
- Drop scheduled field writes on suspend and deactivate, and refuse all
  writes and read-backs until the plugin is active again.
- On resume, forget the plugin's own writes that a new parameter
  download superseded, and read Q_OPTIONS fresh from the FC before each
  bit change so other bits are never dropped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Allister779 <[email protected]>
@AP-Review

AP-Review commented Dec 1, 2026 •

Copy link
Copy Markdown

Deprecated — see below for the updated review.

Previous review (2026-12-01)

Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting.
Verdict: REQUEST CHANGES

Reviewed at head 042da87000.
Full report: https://firmware.ardupilot.org/Tools/APReview/DevCallReviews/PRReviews/ardupilot/methodicconfigurator/2437/2.html#prMethodicConfigurator-2437

Still changes requested at 042da87.
Since the last review the branch was only rebased; the code is identical, so none of the four points have been fixed yet.

Blocking

  1. data_model_control_surface_setup.py:504: unguarded mode restore on close (still open).
  2. data_model_control_surface_setup.py:726: Q_TILT_TYPE vectored-yaw change not reboot-gated (still open).

Should fix

@AP-Review

AP-Review commented Dec 1, 2026 •

Copy link
Copy Markdown

Deprecated — see below for the updated review.

Previous review (2026-12-01)

Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting.
Verdict: REQUEST CHANGES

Reviewed at head edb70d21d3.
Full report: https://firmware.ardupilot.org/Tools/APReview/DevCallReviews/PRReviews/ardupilot/methodicconfigurator/2437/3.html#prMethodicConfigurator-2437

Still changes requested at edb70d2; one blocker remains.
Since 042da87 the mode restore on close, the spinbox writes after suspend and the stale Q_OPTIONS overlay are fixed, and the Q_TILT_TYPE reboot lock now works while you stay on the step.

Blocking

  1. data_model_control_surface_setup.py:262: Q_TILT_TYPE reboot lock (still open, narrowed). The boot type lives only in the model, and it is re-baselined on any new link at line 555. So leaving and re-entering the step, or a connection recovery without an FC reboot, unlocks tilt calibration against the old setup. Keep the boot type outside the model and clear it only on evidence of a reboot, e.g. an FC uptime reset or AMC's own reset. Also list Q_TILT_TYPE in pending_reboot_parameters() whenever tilt_reboot_problem() is non-empty, since after read-back plus a pause the dialog omits it.
Minor (1)
  • frontend_tkinter_control_surface_setup.py:576: typing a new Q_TILT_TYPE and clicking the tilt QSTABILIZE/MANUAL button still sends that mode, even though committing the edit has just locked the button. End point writes stay blocked. Re-check tilt_reboot_problem() for tilt mode buttons after _commit_pending_edits().

…ter an FC reboot

The boot Q_TILT_TYPE lived in the model and was reset on every new link, so
reopening the step or a connection recovery unlocked tilt calibration without
a reboot. Keep it per flight controller and move it only when the FC uptime in
SERVO_OUTPUT_RAW shows a reboot: the uptime went backwards, or is shorter than
the time since the last reading. A possible 32-bit uptime wrap keeps the lock.

Also list Q_TILT_TYPE for reboot whenever the lock stands, and make the tilt
mode buttons re-check the lock after writing a value typed into a field.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Allister779 <[email protected]>
@Allister779

Copy link
Copy Markdown
Contributor Author

Thanks. Fixed in 70f5b6e, and tested on hardware (Windows build, Plane 4.7.3).

  • The boot Q_TILT_TYPE is now kept per flight controller, not in the model. Leaving and reopening the step, or a reconnect without a reboot, no longer clears the lock.
  • The lock clears only on evidence of a reboot: the FC uptime in SERVO_OUTPUT_RAW.time_usec goes backwards, or is shorter than the time since the last reading. If the 32-bit uptime may have wrapped, the lock stays on.
  • pending_reboot_parameters() lists Q_TILT_TYPE whenever tilt_reboot_problem() is non-empty, including after a read-back and a pause.
  • Minor: the tilt QSTABILIZE/MANUAL buttons re-check the lock after writing pending edits, so a just-typed Q_TILT_TYPE can no longer send the mode.

A "Reboot flight controller" button on the tilt tab will follow in a separate PR.

@AP-Review

AP-Review commented Dec 2, 2026 •

Copy link
Copy Markdown

Deprecated — see below for the updated review.

Previous review (2026-12-02)

Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting.
Verdict: COMMENT

Reviewed at head 70f5b6e3dc.
Full report: https://firmware.ardupilot.org/Tools/APReview/DevCallReviews/PRReviews/ardupilot/methodicconfigurator/2437/4.html#prMethodicConfigurator-2437

No blockers remain at 70f5b6e. Three smaller issues are left, all from telemetry queued during a pause or from a stale parameter cache.
Since edb70d2 the Q_TILT_TYPE boot type is kept per flight controller, so leaving the step or reconnecting no longer clears the lock. Q_TILT_TYPE is also listed for reboot after a pause, and the tilt mode buttons now re-check the lock after committing a typed value.

Should fix

  • data_model_control_surface_setup.py:609: Q_TILT_TYPE reboot lock (still open, narrowed). After a pause such as the log browser, resume reads SERVO_OUTPUT_RAW packets queued since the pause began. If the pause lasted longer than the FC had been up, an old packet counts as a reboot and tilt calibration unlocks with no reboot. Drain the queue on resume (discard_pending_telemetry() already exists), or drop the elapsed_us branch and trust only uptime going backwards.
  • data_model_control_surface_setup.py:592: heartbeats are timestamped when they are processed, so after a pause a queued disarmed heartbeat counts as fresh. If the vehicle was armed during the pause, the mode buttons can send e.g. MANUAL until the next heartbeat is read. Discard the backlog on resume and wait for a new heartbeat before enabling bench commands.
Minor (1)
  • data_model_control_surface_setup.py:612: on a detected reboot the boot type comes from tilt_type(), which falls back to the FC cache that set_param does not update. If the step was reopened before a read-back, the old type is recorded, and reading back the saved type then asks for a second reboot. Fetch Q_TILT_TYPE from the FC when accepting a reboot.

Packets queued while the plugin was not reading looked current when it
resumed. A disarmed HEARTBEAT from before a pause could enable bench commands
on a vehicle armed since, and an old SERVO_OUTPUT_RAW could look like an FC
reboot and clear the Q_TILT_TYPE lock. Discard the queue and forget the last
heartbeat on activation; if the queue cannot be emptied, drop the FC uptime
baseline too, so no reboot is assumed.

The parameter cache does not follow live writes, so read Q_TILT_TYPE from the
FC on activation and when accepting a reboot. Reopening the step after a
change then still shows the new type and the reboot request, and a reboot
records the saved type instead of a stale one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Allister779 <[email protected]>
@Allister779

Copy link
Copy Markdown
Contributor Author

Thanks. Fixed in ff53260. I tested the heartbeat case in SITL (quadplane-tilttri) and the rest on hardware (Plane 4.7.3).

  • Queued heartbeat: on activation and resume the plugin now drops telemetry queued while it wasn't reading (discard_pending_telemetry()) and forgets the last heartbeat. Bench commands wait for a new one. In SITL, arming during a pause keeps the mode buttons disabled after resume.
  • Queued SERVO_OUTPUT_RAW: the same discard means an old packet can no longer look like a reboot. If the queue can't be emptied, the FC uptime baseline is dropped too, so the lock stays on.
  • Minor: when a reboot is detected, Q_TILT_TYPE is now read from the FC instead of the cache.
  • Also fixed: set_param doesn't update the FC parameter cache, so reopening the step after a live Q_TILT_TYPE change showed the old type and no reboot request. The plugin now reads Q_TILT_TYPE from the FC when it activates.

@AP-Review

Copy link
Copy Markdown

Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting.
Verdict: COMMENT

Reviewed at head ff53260e5b.
Full report: https://firmware.ardupilot.org/Tools/APReview/DevCallReviews/PRReviews/ardupilot/methodicconfigurator/2437/5.html#prMethodicConfigurator-2437

No blockers at ff53260. Three smaller issues remain: a failed Q_TILT_TYPE read, a very deep telemetry backlog, and servo functions changed while the step is paused.
Since 70f5b6e, telemetry queued during a pause is dropped on resume. An old SERVO_OUTPUT_RAW no longer looks like a reboot, a queued disarmed heartbeat no longer enables the mode buttons, and Q_TILT_TYPE is now read from the FC on activation and on reboot.

Should fix

  • data_model_control_surface_setup.py:643: a failed Q_TILT_TYPE read on activation is ignored. After a live type change, reopening the step leaves the stale cache equal to the boot type, so the reboot lock and reboot request vanish and tilt end-point writes go through. Keep tilt calibration locked until Q_TILT_TYPE has been read successfully. The same fallback at line 661 records the old type when the read at reboot fails, which then asks for a second reboot.
  • data_model_control_surface_setup.py:586: queued heartbeat (still open, narrowed). When more than 5000 messages are queued and the discard can't empty the queue, only the uptime baseline is dropped. The remaining heartbeats are still dated when read, so the mode buttons can send e.g. MANUAL for a few polls while the vehicle is armed. Keep bench commands disabled until a poll ends with the queue empty.
Minor (1)
  • frontend_tkinter_control_surface_setup.py:730: the direction and end-point rows keep the channels captured when the view was built, and resume doesn't rebuild them. If SERVOx_FUNCTION changes during an upload that stays on the step, an "Aileron" row can still write SERVO1_REVERSED/MIN/TRIM/MAX after that output became throttle. Rebuild the rows when output functions change, or check the current function before a live write.

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

AIReview Request an automated AI review; picked up by the reviewprs sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants