Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(telemetry): frsky angles should be be signed (allow negative) #4733

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

frankiearzu
Copy link
Contributor

Fixes #4729

Summary of changes:
Bug report that Roll/Pitch should be from -180 to +180, so needs to be a signed 16 bits number.
Change Angles to be processed as Signed int16

Bug report that Roll/Pitch should be from -180 to +180, so needs to be a signed 16 bits number
@pfeerick pfeerick changed the title fix(Telemetry): FrSky_Sport: Fix angles to be signed (negative) fix(telemetry): frsky angles should be be signed (allow negative) Mar 14, 2024
@pfeerick pfeerick added this to the 2.10 milestone Mar 24, 2024
Copy link
Member

@pfeerick pfeerick left a comment

Choose a reason for hiding this comment

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

rationale for change: Using Ethos as the reference system, SR8/SR10+ show negative values for left roll (and back pitch), as opposed to the current values shown in ETX. This PR makes ETX match Ethos behaviour.

LGTM. Repeat tested with SR10+ on X9D+2019, Roll and Ptch both appear correct. Roll is basically 0 when level, and goes either 180 or -180 depending on which direction rolled. Pitch also starts at 0, and goes to either 90 or -90 depending on direction. AccX/AccY/AccZ appear to also be working correctly, going +ve or -ve depending on the direction the receiver is moved.

@pfeerick pfeerick merged commit 991b0c4 into EdgeTX:main Mar 25, 2024
44 checks passed
felipemanga pushed a commit to felipemanga/edgetx that referenced this pull request Mar 29, 2024
ThomasKuehne pushed a commit to ThomasKuehne/edgetx that referenced this pull request Apr 5, 2024
@frankiearzu frankiearzu deleted the tel-frsky-angle-fix branch April 7, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Telemetry: Negative floats are incorrectly decoded
2 participants