Repository navigation
Feat/quadplane tilt tri control surfaces - #2397
Draft
Allister779 wants to merge 4 commits into
Draft
Allister779 wants to merge 4 commits into
Allister779 wants to merge 4 commits into
Conversation
Allister779
force-pushed
the
feat/quadplane-tilt-tri-control-surfaces
branch
2 times, most recently
from
November 20, 2026 23:54
c74c992 to
a1aba2a
Compare
…e template Add an ArduPlane template for the HeeWing T1-S Ranger VTOL, a vectored-yaw tilt-rotor tricopter (Q_FRAME_CLASS=7, Q_TILT_TYPE=2) whose two front motors tilt (Q_TILT_MASK=3) while the rear motor stays fixed, on a Matek H743-WLITE with MAVLink over ExpressLRS. The template needs two changes to the ArduPlane configuration steps: - A MAVRadio RC receiver keeps its serial port on MAVLink2 instead of switching it to RCIN, because RC and telemetry share one port. - The Q_A_ACC*_MAX values derived from the propeller size are capped at the ArduPlane QuadPlane defaults, so small propellers no longer raise them above those defaults. Signed-off-by: Allister779 <schreiber_a@proton.me>
Set FLTMODE_CH to 8 so a 3-position switch selects QSTABILIZE, FBWA and QRTL, and test that MANUAL is not on the mode switch: in MANUAL a tilt-rotor tilts its rotors fully forward at 90 degrees per second. Signed-off-by: Allister779 <schreiber_a@proton.me>
ArduPlane has no MOT_PWM_TYPE; QuadPlanes use Q_M_PWM_TYPE. The component importer only read MOT_PWM_TYPE, so importing any QuadPlane reset the ESC protocol to Normal and skipped the DShot motor-pole import. The log analysis ESC checks had the same mistake in two places. Add get_esc_pwm_type_param_name() and use it for the documentation check, the ESC protocol import and the motor-pole import. Use the vehicle-specific parameter name in the ESC availability diagnosis and the DShot output-rate check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Allister779 <schreiber_a@proton.me>
…ri QuadPlane template Add 12_control_surfaces_and_tilt_servos.param to the ArduPlane workflow, right after 11_servo_outputs.param. Step 11 keeps the output functions and the tilt mechanism (Q_TILT_ENABLE, Q_TILT_MASK, Q_TILT_TYPE); its upload reboots the flight controller and exposes the tilt parameters. Step 12 holds the SERVOx_MIN/MAX/TRIM/REVERSED, SERVO_AUTO_TRIM, mixing and the Q_TILT rate, max and yaw-angle adjustments, with a props-off warning and the tilt-rotor setup procedure. Document it in TUNING_GUIDE_ArduPlane.md section 6.11 and fix the step 11 wiki links, which returned 404. Renumber ArduPlane steps 12-62 to 13-63 (63 was free, so 64-70 keep their numbers) and record each old filename in old_filenames. The repository reorder script was not used because it only knows the Copter sequence and renames shared filenames across all vehicles. Update the Plane-specific filenames in the tuning report, the PID adjustment tool, the tests and the autotune accel back-off architecture notes. Bump the project format to 3. For ArduPlane, the v2 to v3 migration moves the servo adjustments and tilt values from step 11 into the new step, so existing values are kept instead of being overwritten by template defaults. The new step is only created when the active configuration defines it. Format-2 projects no longer get every missing step restored from the template, which would have resurrected steps users removed. The v1 to v2 migration now resolves its destination filenames through old_filenames, so values are written to the current step instead of to a legacy file that the later rename refuses to overwrite. Migrate all packaged templates to format 3. Add the generic tilt_tri_quadplane template: a vectored-yaw tilt-rotor tricopter (Q_FRAME_CLASS=7, Q_TILT_TYPE=2) whose two front motors tilt (Q_TILT_MASK=3) while the rear motor stays fixed, with motors on outputs 1-3, tilt servos on 5-6, control surfaces on 7-9, DShot300 with bidirectional DShot and no preset products. Its tests also cover the airframe-independent checks of the HeeWing T1-S Ranger VTOL template. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Allister779 <schreiber_a@proton.me>
Allister779
force-pushed
the
feat/quadplane-tilt-tri-control-surfaces
branch
from
November 22, 2026 23:08
2791d19 to
8f2f9b4
Compare
Allister779
marked this pull request as draft
November 23, 2026 02:57
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.
Description
Adds QuadPlane tilt-rotor tricopter support to the ArduPlane workflow: two vehicle templates, a new configuration step for adjusting control surfaces and tilt servos, and a fix for QuadPlane ESC protocol import.
New step:
12_control_surfaces_and_tilt_servos.paramThe ArduPlane workflow assigned servo functions in step 11, but had no step for setting servo direction, range and trim, or for setting up the tilt mechanism. The new step comes right after
11_servo_outputs.param:Q_TILT_ENABLE,Q_TILT_MASK,Q_TILT_TYPE). Uploading it reboots the flight controller, which makes theQ_TILT_*adjustment parameters available.SERVOx_MIN/MAX/TRIM/REVERSED,SERVO_AUTO_TRIM,MIXING_GAIN/OFFSET,Q_TILT_RATE_UP/DN,Q_TILT_MAXandQ_TILT_YAW_ANGLE.TUNING_GUIDE_ArduPlane.mdsection 6.11.servo-functions.html.Renumbering ArduPlane steps 12–62 to 13–63
63was unused, so steps 64–70 (including70_everyday_use.param) keep their numbers.old_filenames, so existing projects are renamed when opened..github/skills/configuration-steps-reorder/scripts/param_reorder.py. It only handles the ArduCopter sequence and does a repository-wide find-and-replace, and because Plane and Copter share step filenames, it would have renamed Copter files too.data_model_parameter_editor.py), the PID adjustment tool (param_pid_adjustment_update.py),ARCHITECTURE_autotune_accel_backoff.mdand the tests.Project format 2 → 3 (
backend_filesystem_migration.py)configuration_steps_ArduPlane.jsonis left alone.old_filenames, so it writes to the current step name. Without this, the renumbering would have made it write to a legacy name that the later rename refuses to overwrite, leaving the user's moved values in an orphaned file.scripts/migrate_vehicle_templates_format_version.py, which confirmed that every effective parameter value is unchanged.Fix: ArduPlane ESC protocol import
ArduPlane has no
MOT_PWM_TYPE; QuadPlanes useQ_M_PWM_TYPE. The component importer only readMOT_PWM_TYPE, so importing any QuadPlane reset the ESC protocol toNormaland skipped the DShot motor-pole import. The ESC log-analysis checks had the same mistake. A new helper,get_esc_pwm_type_param_name(), returns the right parameter name for the vehicle type.New vehicle templates
ArduPlane/tilt_tri_quadplane: generic vectored-yaw tilt-rotor tricopter (Q_FRAME_CLASS=7,Q_TILT_TYPE=2). The two front motors tilt (Q_TILT_MASK=3) and the rear motor stays fixed.ArduPlane/HeeWing_T1-S_Ranger_VTOL: the same frame layout for the HeeWing T1-S Ranger, on a Matek H743-WLITE with MAVLink over ELRS.configuration_steps_ArduPlane.json. A MAVRadio RC receiver keeps its serial port on MAVLink2 instead of RCIN, because RC and telemetry share one port.Q_A_ACC*_MAXvalues derived from propeller size are capped at the ArduPlane QuadPlane defaults, so small propellers no longer raise the limits above them.Checklist
git commit --signoff)Breaking change: projects opened with this version are upgraded to format 3, and earlier AMC releases can't fully open them. Users who might switch back should copy their project folder first.
Testing
Describe how you tested these changes:
Unit tests pass
Integration tests pass
Manual testing performed
Tested on flight controller hardware
Full test suite: run under
xvfb-run, then compared against an unmodified checkout of the parent commit. No new failures.test_verify_packaged_modules.py::test_frozen_archive_is_rejected_when_a_plugin_is_missingfails on both because PyInstaller isn't installed locally.GUI tests (
tests/gui_frontend_tkinter_*.py): 51 passed, 5 skipped.New tests:
Linting:
ruff,pylintandpyrightare clean on the changed files.mypyreports three Windows-only attributes (CREATE_NO_WINDOW,DETACHED_PROCESS,windll) in files this PR doesn't touch, on Linux.Manual: the installed build starts. The new step has not been exercised in the GUI, in SITL or on hardware.
🤖 Generated with Claude Code