fs2ff icon indicating copy to clipboard operation
fs2ff copied to clipboard

Ground speed incorrect with sim update 6.

Open brucehumblehand opened this issue 3 years ago • 5 comments

Hello.

Many thanks for FS2FF. I use it every day! With the latest update for MFS, I am seeing an incorrect ground speed in ForeFlight. The pop-up instrument bar at the bottom is showing roughly double what the sim is reporting. I’m using the Working Title G1000 NXi if that helps. The picture below is from a flight in the default Caravan doing a ground speed of approximately 180 knots. Hope this helps. Screenshot 2021-10-19 at 17 52 19

brucehumblehand avatar Oct 19 '21 16:10 brucehumblehand

Seeing the same thing. GS of 179 in the C208B is shown as 347 on Foreflight.

sh4d0wl3ss avatar Nov 05 '21 13:11 sh4d0wl3ss

I thought is was in KPH but it is now in Knots and Garmin and FF take Meter/s so updated the code block again i.e. DetaSender.cs var data = string.Format(CultureInfo.InvariantCulture, "XGPS{0},{1:0.#####},{2:0.#####},{3:0.##},{4:0.###},{5:0.##}", SimId, p.Longitude, p.Latitude, p.Altitude, p.GroundTrack, (p.GroundSpeed * 0.514445)); // SimConnect is now reporting in Knots and not meters/s

jeffdamp-wave avatar Nov 20 '21 20:11 jeffdamp-wave

Turns out this is Plane dependent. Some planes are reporting GS in meter/s and others are reporting in Knots. I updated my local version to have a checkbox in the settings that does this:

private async Task SimConnectPositionReceived(Position pos)
 {
     if (DataPositionEnabled && (pos.Latitude != 0d || pos.Longitude != 0d))
     {
         if(this.DataAdjustSpeed)
         {
             pos.GroundSpeed *= 0.5144447;
         }

         await _dataSender.Send(pos).ConfigureAwait(false);
     }
 }

jeffdamp-wave avatar Nov 22 '21 00:11 jeffdamp-wave

Hi Jeff,

This in a version that you'll post soon?

Thanks.

Turns out this is Plane dependent. Some planes are reporting GS in meter/s and others are reporting in Knots. I updated my local version to have a checkbox in the settings that does this:

private async Task SimConnectPositionReceived(Position pos)
 {
     if (DataPositionEnabled && (pos.Latitude != 0d || pos.Longitude != 0d))
     {
         if(this.DataAdjustSpeed)
         {
             pos.GroundSpeed *= 0.5144447;
         }

         await _dataSender.Send(pos).ConfigureAwait(false);
     }
 }

sh4d0wl3ss avatar Nov 26 '21 12:11 sh4d0wl3ss

Hi Jeff,

This in a version that you'll post soon?

Thanks.

I would but I'm not a contributor to this repro so I can't push my branch to create a PR.

jeffdamp-wave avatar Nov 26 '21 17:11 jeffdamp-wave