Skip to content

x#40

Open
peterbarker wants to merge 20 commits into
masterfrom
pr-claude/remove-control-in
Open

x#40
peterbarker wants to merge 20 commits into
masterfrom
pr-claude/remove-control-in

Conversation

@peterbarker
Copy link
Copy Markdown
Owner

Summary

Classification & Testing (check all that apply and add your own)

  • Checked by a human programmer
  • Non-functional change
  • No-binary change
  • Infrastructure change (e.g. unit tests, helper scripts)
  • Automated test(s) verify changes (e.g. unit test, autotest)
  • Tested manually, description below (e.g. SITL)
  • Tested on hardware
  • Logs attached
  • Logs available on request

Description

@peterbarker peterbarker force-pushed the pr-claude/remove-control-in branch 2 times, most recently from 0f29123 to ca5ec80 Compare May 7, 2026 13:24
@peterbarker peterbarker force-pushed the pr-claude/remove-control-in branch 2 times, most recently from 5e70956 to 15be402 Compare May 8, 2026 00:45
wait_ready_to_arm(require_absolute=False) returns as soon as the EKF
reports relative aiding, before the origin (and thus home) is set.
The GUIDED takeoff that follows needs an ABOVE_HOME -> ABOVE_ORIGIN
alt frame conversion, which silently fails when home is unset, so
MAV_CMD_NAV_TAKEOFF returns MAV_RESULT_FAILED.
@peterbarker peterbarker force-pushed the pr-claude/remove-control-in branch from 15be402 to 8a98fea Compare May 9, 2026 06:11
@github-actions github-actions Bot added the Python label May 9, 2026
lthall and others added 3 commits May 9, 2026 21:15
These two model parameter files were the only ones in
Tools/autotest/models using the .param extension; every other model
parameter file in the tree uses .parm. Aligning their extension makes
them match the existing *.parm ROMFS embed glob without having to
extend it, and keeps the convention consistent across the directory.

Update the corresponding default_params_filename entries in
vehicleinfo.json to match the new filenames.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
The scheduler has a nice diagnostic print for each task it creates. But that is
only needed on the DSP diagnostic display, not the console, so changing output
to only DSP diagnostic display.
@peterbarker peterbarker force-pushed the pr-claude/remove-control-in branch from 8a98fea to 4f1dd57 Compare May 10, 2026 23:12
@peterbarker peterbarker force-pushed the pr-claude/remove-control-in branch from 4f1dd57 to 3c8dba0 Compare May 11, 2026 01:11
hunt0r and others added 14 commits May 11, 2026 13:11
The refactored get_throttle_mid() used radio_trim as the PWM reference
point, but the original get_control_mid() used (radio_min + radio_max)/2
(the geometric midpoint of the stick travel).  When radio_trim differs
from that midpoint the throttle expo-curve splits at the wrong position,
biasing the lower or upper half of the response.  Restore the geometric
midpoint to match the original behaviour.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The normalisation refactor replaced
    (channel_throttle->norm_input() + 1.0f) / 2.0f
with a bare norm_input_dz(), changing the throttle output range from
[0.5, 1.0] to [0, 1].  Restore the original mapping; the factor-of-two
range change would significantly alter vehicle behaviour.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tests verify:
- norm_input_dz() on a RANGE channel is a drop-in replacement for the
  old get_control_in() across a variety of min/max/deadzone configs
- the fixed get_throttle_mid() matches the original get_control_mid()
- the buggy version (which used radio_trim instead of the geometric
  midpoint) diverges whenever trim != (radio_min + radio_max) / 2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@peterbarker peterbarker force-pushed the pr-claude/remove-control-in branch from 3c8dba0 to 9c7e4c4 Compare May 11, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants