-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Improve OSD Glide Slope implementation #11615
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
Open
y-decimal
wants to merge
26
commits into
iNavFlight:release/9.1
Choose a base branch
from
y-decimal:osd-glide-refactor
base: release/9.1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+268
−32
Open
Changes from 22 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1fd82cb
dshot ignore fix
P-I-Engineer c497d4f
Merge pull request #11604 from P-I-Engineer/dshot-beeper-buzzer-ignor…
sensei-hacker 9dfbb92
feat: lay out basic structure for new glide slope calculation
y-decimal c88af3c
fix: change glideBuffer allocation to static for now
y-decimal 8cdc279
fix: incorrect comparison in sample interval calculation
y-decimal 586949b
fix: incorrect use of ternary in sample interval increment logic
y-decimal 482975b
refactor: rename glideSlope to glideRatio for clarity in OSD element
y-decimal 40cb69b
fix: change glideSampleRate, glideSampleTimeFrame, and minimumSampleC…
y-decimal affdb0c
fix: add glideLastSampleTime to track the last sample time in osdDraw…
y-decimal 274691f
feat: add calculateGlideRatioFromBuffer function for glide ratio calc…
y-decimal 47063ab
feat: implement lazy allocation for glide buffer to allow changing pa…
y-decimal 06886e7
feat: add osd_glide_sample_rate and osd_glide_sample_time_frame setti…
y-decimal 059bb96
feat: add isDataValidForGlideRatio function to validate glide ratio c…
y-decimal 2bda148
fix: update glideLastSampleTime correctly in osdDrawSingleElement fun…
y-decimal 34a521d
fix: update ascent duration check in isDataValidForGlideRatio functio…
y-decimal b84f154
style: update function signature of isDataValidForGlideRatio to inclu…
y-decimal cd6c566
cleanup: remove now unused hardcoded glide sample rate and time frame…
y-decimal 3a1ae63
fix: calculate glide ratio using only the valid samples collected in …
y-decimal 61989d3
refactor: adjust minimum sample count calculation to be relative to t…
y-decimal c170fce
fix: clarify comment regarding glide slope naming consistency
y-decimal 9130d2c
refactor: handle glide slope calculation outside of the glide slope d…
y-decimal fbf5060
refactor: update glide time calculation to use glide ratio if available
y-decimal 5bb46b5
fix: ensure glide sample rate and time frame default to valid values …
y-decimal 8be6fa1
fix: free glide buffer when required size is zero to prevent memory l…
y-decimal f26a2bc
fix: reset sampling state when buffer size changes to ensure accurate…
y-decimal 4c89912
fix: correct buffer offset for glide distance display to ensure prope…
y-decimal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.