Skip to content

Commit

Permalink
Changed track and heading in debug airplane simulation.
Browse files Browse the repository at this point in the history
  • Loading branch information
albar965 committed Aug 17, 2019
1 parent 7bfb880 commit 00584fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fs/sc/simconnectdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ SimConnectData SimConnectData::buildDebugForPosition(const geo::Pos& pos, const
data.userAircraft.groundSpeedKts = data.userAircraft.indicatedSpeedKts = data.userAircraft.trueAirspeedKts = tas;
}

data.userAircraft.trackMagDeg = data.userAircraft.trackTrueDeg = h;
data.userAircraft.headingMagDeg = data.userAircraft.headingTrueDeg = atools::geo::normalizeCourse(h + 20.f);
data.userAircraft.trackMagDeg = atools::geo::normalizeCourse(h + 20.f);
data.userAircraft.trackTrueDeg = atools::geo::normalizeCourse(h + 25.f);
data.userAircraft.headingMagDeg = atools::geo::normalizeCourse(h + 10.f);
data.userAircraft.headingTrueDeg = atools::geo::normalizeCourse(h + 15.f);

data.userAircraft.structuralIcePercent = ice;
data.userAircraft.category = AIRPLANE;
Expand Down

0 comments on commit 00584fc

Please sign in to comment.