You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Request, add the following to enable some minor features for Garmin Pilot:
DataSender.cs:
public async Task Send(Attitude a)
{
// Using a slip value between -127 and +127. .005 converts GP to be similar to the ingame G1000 slip indicator
var slipDeg = a.SkidSlip * -0.005;
var data = string.Format(CultureInfo.InvariantCulture,
$"XATT{SimId},{a.TrueHeading:0.##},{-a.Pitch:0.##},{-a.Bank:0.##},,,{a.TurnRate:0.##},,,,{slipDeg:0.###},,");
await Send(data).ConfigureAwait(false);
}
Attitude.cs:
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct Attitude
{
public double Pitch;
public double Bank;
public double TrueHeading;
public double SkidSlip;
public double TurnRate;
}
Request, add the following to enable some minor features for Garmin Pilot:
DataSender.cs:
Attitude.cs:
SimConnectAdapter.cs:
The text was updated successfully, but these errors were encountered: