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

Improved turning #470

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

andubadea
Copy link
Contributor

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:

image

Where:

image

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.

@andubadea andubadea changed the title Improve turning update Improve turning Jun 26, 2023
@andubadea andubadea changed the title Improve turning Improved turning Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant