-
Notifications
You must be signed in to change notification settings - Fork 17.2k
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
Plane: Soaring upgrades #12210
Merged
Merged
Plane: Soaring upgrades #12210
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
c93d9b8
AP_Soaring: add reason to exit Thermal loiter
magicrub 3d05d6b
Plane: add reason to exit Thermal loiter and adjust LOW alt reaon to …
magicrub 7c2cadc
Plane: refactor loiter heading exit logic
magicrub a69522a
Plane: improved soaring exit options
magicrub c8c5612
Plane: move loiter heading init for auto into auto helper, and proper…
magicrub 41a643f
Plane: fix soaring typo
magicrub 73b2a7f
AP_Soaring: Implement vario based on acceleration rather than differe…
samuelctabor db839ab
AP_Soaring: Remove redundant check for new vario data.
samuelctabor 77e216e
AP_Soaring: Fix issue with loiter radius being saved as zero due to i…
samuelctabor 7d7b7a5
AP_Soaring: Avoid calculations in lat/lng.
samuelctabor 33ab6bf
AP_Soaring: Make the EKF states the actual NE position of the thermal…
samuelctabor 4a2acf5
AP_Soaring: Remove unused methods, clean up and log position in N/E r…
samuelctabor 1491a77
AP_Soaring: inhibit msg spam when lingering in loiter waiting for hea…
magicrub ff46c18
Plane: unified soaring exit behavior: auto heads to next wp, cruise c…
magicrub 1a2659e
SITL: Add plane-soaring type, including parameters, mission, simulate…
samuelctabor 9570364
AP_Soaring: Add a check of whether altitude has been lost overall whe…
samuelctabor d1631ca
Plane: fix bug with headingLinedUp when loiter.sum_cd was negative.
samuelctabor a1ef047
AP_Soaring: Add a 60s first order filter on climb rate. If this becom…
samuelctabor e803951
AP_Soaring: Line up on current, not next, nav command.
samuelctabor 2eff9eb
Plane: Soaring: Reset loiter.sum_cd when good to continue thermalling…
samuelctabor 54f9f8e
AP_Soaring: Add a maximum allowable drift distance when thermalling.
samuelctabor b3fe90a
Plane: Soaring - better reporting of exit due to drift.
samuelctabor caf0b93
AP_Soaring: Improved default sim parameters.
samuelctabor 4c54d2d
SITL: Make soaring thermals slanted.
samuelctabor b51338a
AP_TECS: Return the adjusted demanded airspeed. The aspd_error mavlin…
samuelctabor 2d14a9d
AP_TECS: Add a feed-forward term from adjusted demanded airspeed to n…
samuelctabor bf1a0b6
AP_TECS: Correct an error in the SEBdot FF term.
samuelctabor 28829bb
AP_TECS: Add flags to indicate gliding flight, and use these with AP_…
samuelctabor f04d126
Plane: Soaring, don't wait for heading if too low, and add timeout ot…
samuelctabor 09d9d83
AP_Soaring: Add SOAR_MAX_RADIUS parameter, that defines when a RTL wi…
samuelctabor 1d3c863
Plane: Soaring, make zero SOAR_MAX_RADIUS always RTL, and -1 never.
samuelctabor 5bbba68
AP_Soaring: Calculate expected thermalling sink live and avoid divide…
samuelctabor cfad6b7
AP_Math: Add template for Vector2f::projected.
samuelctabor 1a4d1d6
AP_Soaring: Move drift check to separate function and check drift wit…
samuelctabor 7d504cb
AP_Soaring: Make the trigger VSPEED take account of thermalling sink.
samuelctabor 9b5faef
SITL: Make thermal drift relative to 100m alt to avoid so much change…
samuelctabor 6a96238
AP_Soaring: Reduce drift feed-forward by ratio of climb rate to therm…
samuelctabor 26130bb
AP_Soaring: Calculate filter time constant based on airspeed and loit…
samuelctabor ad31b3d
AP_Soaring: Cleanup variometer.
samuelctabor b60f316
AP_Soaring: Correct bug with reversed arguments.
samuelctabor ceccdd1
AP_Soaring: Fix use of double precision sqrt.
samuelctabor 20bf7c1
AP_Soaring: Fix incorrect trig function and log the expected sink.
samuelctabor 4165277
AP_Soaring: Also log acceleration.
samuelctabor 6c9201d
AP_Soaring: Remove dsp bias and log this.
samuelctabor 24e8da0
AP_Soaring: Make enable channel 3 position. PWM above 1400us allows m…
samuelctabor b181df6
AP_Soaring: Adjust initial EKF values and limit R to 40.0m.
samuelctabor ac8157b
AP_Soaring: Detect changes in active parameter/switch position.
samuelctabor e07b7a1
Plane: Make target altitude track current altitude when gliding.
samuelctabor 81b39bf
Plane: In FBWB make target alt track current if soaring is enabled an…
samuelctabor 9197d2b
Autotest: Add test for soaring.
samuelctabor d9b2fda
AP_Soaring: Use 64 bit variable for time to avoid overflow.
samuelctabor a90d6ee
AP_Soaring: Improve tracking of enabled/disabled status.
samuelctabor b497bf0
AP_Soaring: Report changes in active status.
samuelctabor b774d84
AP_Soaring: Fix bug when no soaring activation RC channel set.
samuelctabor d9fddaf
AP_Soaring: Fix too-long status message.
samuelctabor 0167a72
Plane: Required changes for conditional soaring compilation (fmuv2).
samuelctabor d466daa
TECS: Don't override the speedweight to 0 if synthetic airspeed is in…
samuelctabor 810c26d
Autotest: Simplify soaring.py.
samuelctabor c99b928
AP_Soaring: Make vario time constant public.
samuelctabor 8978984
AP_Soaring: Add a low pass of target position from EKF before using it.
samuelctabor 7be3ef0
AP_Soaring: Update autotest to use delay_sim_time not wait_seconds.
samuelctabor 2e86873
Plane: Remove unused isHeadingLinedUp function, and rename functions …
samuelctabor 12481be
AP_TECS: Update descriptions of pitch feed-forward parameters.
samuelctabor 9724fea
AP_Soaring: Don't check throttle status on entry to loiter, because i…
samuelctabor c371865
AP_Soaring: Use enum class rather than typedef enum for states and hi…
samuelctabor 991c852
AP_Soaring: Add log documentation.
samuelctabor 5da42bb
Tools: Make soaring test a subclass of plane test.
samuelctabor 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 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 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 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 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 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 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 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 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs review by @WickedShell