Skip to content

Add PWM limits - #3503

Merged
pkendall64 merged 6 commits into
ExpressLRS:masterfrom
awigen:add-pwm-limits
Mar 29, 2026
Merged

pkendall64 merged 6 commits into
ExpressLRS:masterfrom
awigen:add-pwm-limits

Conversation

@awigen

@awigen awigen commented Jan 18, 2026 •

Copy link
Copy Markdown
Contributor

To support a channel mixer and gyros, we need to be able to limit servo outputs to avoid going past mechanical limits.

This PR build on top of PR #3491 (that commit is included here).

The per channel limits can be adjusted in the web UI "Connections" tab.
And also in the ExpressLRS LUA script "Output Mapping"

@pkendall64 pkendall64 added enhancement 🪄 New feature or request V4.1 🍑 labels Jan 18, 2026
# Conflicts:
#	src/html/headers/web-lr1121-rx.h
#	src/html/headers/web-sx127x-rx-8285.h
#	src/html/headers/web-sx127x-rx.h
#	src/html/headers/web-sx128x-rx-8285.h
#	src/html/headers/web-sx128x-rx.h

@pkendall64 pkendall64 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.

Looks good, but lets get the #3491 merged first, as this builds on that one

# Conflicts:
#	src/html/headers/web-lr1121-rx.h
#	src/html/headers/web-sx127x-rx-8285.h
#	src/html/headers/web-sx127x-rx.h
#	src/html/headers/web-sx128x-rx-8285.h
#	src/html/headers/web-sx128x-rx.h
@pkendall64
pkendall64 merged commit d00159b into ExpressLRS:master Mar 29, 2026
25 checks passed
@CapnBry

CapnBry commented Apr 1, 2026

Copy link
Copy Markdown
Member

There is so much wrong with this it makes my head spin. Using numbers we have constants for, improper config update, confusing applying limits on top of stretch behavior, using asserts for validation, passing uint8_t[] as void * only to cast it back to uint8_t or uint8_t[] again?

@pkendall64 pkendall64 removed enhancement 🪄 New feature or request V4.1 🍑 labels Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants