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.
The commits included in this pull request serve to improve the turning logic within BlueSky.
A turn can be described using the following two equations:
Where:
If two of these variables are known (except the gravitational acceleration), then the other two can be determined. Thus, the "calcturn" function within bs.traf.actwp has been modified to calculate the turn parameters in function of which two variables are known. If only one variable is known, it will assume that the turn velocity remains unchanged, unless the turn velocity is the modified one, then it assumes the default bank angle of the aircraft. If none are defined, then it assumes both the default bank angle and that the velocity remains unchanged.
The following commands were added and/or modified:
ADDWPTMODE (or ADDWPT) now accepts the following ways to set turn properties: TURNRADIUS (TURNRAD), TURNSPEED (TURNSPD), TURNHDGRATE (TURNHDGR, TURNHDG) and TURNBANK (TURNPHI). It will also only keep the last two defined ones only, and revert the previously set ones to default.
CRUISESPD is a command to set the default cruise speed of an aircraft. Previously, after a turn, an aircraft would keep the speed with which it performed the turn unless an explicit speed command was given. If the next waypoint had a speed constraint, it would only match that at the last possible moment before reaching that waypoint. This command can be used to set the speed the aircraft will adopt after a turn is performed.