mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
OP-169 - Fill in new NED vector values from flight simulator
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1725 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
53c630c7eb
commit
7125378cae
@ -246,6 +246,14 @@ void IL2Simulator::processUpdate(const QByteArray& inp)
|
||||
while (gpsData.Longitude>180.0) gpsData.Longitude-=360.0;
|
||||
gpsData.Satellites = 7;
|
||||
gpsData.Status = PositionActual::STATUS_FIX3D;
|
||||
gpsData.NED[0]=current.Y;
|
||||
gpsData.NED[1]=current.X;
|
||||
gpsData.NED[2]=-current.Z;
|
||||
gpsData.Vel[0]=current.dY;
|
||||
gpsData.Vel[1]=current.dX;
|
||||
gpsData.Vel[2]=-current.dZ;
|
||||
gpsData.Airspeed=current.ias;
|
||||
gpsData.Climbrate=current.dZ;
|
||||
posActual->setData(gpsData);
|
||||
|
||||
// issue manual update
|
||||
|
Loading…
x
Reference in New Issue
Block a user