Skip to content

Commit f87b56f

Browse files
committed
Merge pull request #225 from a1270/wheelsteerviaheading
Add ability to lock WHEELSTEERING to bare heading.
2 parents d54397d + f86dece commit f87b56f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

BindingsFlightControl.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ public void OnFlyByWire(ref FlightCtrlState c)
136136
{
137137
bearing = ((GeoCoordinates)Value).GetBearing(vessel);
138138
}
139+
else if (Value is double)
140+
{
141+
bearing = (float)(Math.Round((double)Value) - Mathf.Round(FlightGlobals.ship_heading));
142+
}
139143

140144
if (vessel.horizontalSrfSpeed > 0.1f)
141145
{

0 commit comments

Comments
 (0)