Docs: Update JavaScript programming documentation#11175
Merged
sensei-hacker merged 1 commit intoiNavFlight:maintenance-9.xfrom Dec 21, 2025
Merged
Conversation
…ary) Adds documentation for new INAV 9.0 JavaScript programming features: New Features: - PID controller output access (inav.pid[0-3].output) - Flight mode detection (inav.flight.mode.poshold, .rth, etc.) - Let/const variables for compile-time named expressions - Ternary operator for conditional value assignment Changes: - Add Variables section with let/const and ternary operator docs - Update Available Objects to list PID and flight modes - Add Flight Mode Detection subsection with examples - Add PID Controller Outputs subsection with examples - Update index.md feature list - Update Tips section for consistency All examples use namespaced syntax (inav.flight.*, inav.override.*, etc.) for clarity and explicitness.
22203ed to
fd9ca51
Compare
Contributor
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Compliance Guide 🔍All compliance sections have been disabled in the configurations. |
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.
User description
Summary
Updates JavaScript programming documentation to document new features added in INAV 9.0:
pid[0-3].output)flight.mode.poshold,flight.mode.rth, etc.)Changes
docs/javascript_programming/JAVASCRIPT_PROGRAMMING_GUIDE.md- Added flight mode and PID documentation, updated sticky examplesdocs/javascript_programming/api_definitions_summary.md- Updated PID and flight mode descriptionsdocs/javascript_programming/index.md- Added new features to language support list, updated version historyTesting
Documentation changes only - no code changes.
Related
Related to configurator PR #2470
PR Type
Documentation
Description
Documents new INAV 9.0 JavaScript features: PID outputs and flight modes
Adds Variables section covering let/const and ternary operators
Updates API documentation to use explicit namespaced syntax
Enhances code examples with practical use cases
Diagram Walkthrough
File Walkthrough
JAVASCRIPT_PROGRAMMING_GUIDE.md
Add Variables section and expand API documentationdocs/javascript_programming/JAVASCRIPT_PROGRAMMING_GUIDE.md
and PID outputs
controller access
inav.events.edge)
index.md
Update feature list with new INAV 9.0 capabilitiesdocs/javascript_programming/index.md