1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-18 08:54:15 +01:00

OP-801 replaced GetLLA with NED2LLA_HomeLLA

This commit is contained in:
Alessio Morale 2013-01-11 01:05:43 +01:00
parent 672519e559
commit a89a2cfb47

View File

@ -265,7 +265,7 @@ void OsgViewerWidget::paintEvent( QPaintEvent* event )
double homeLLA[3] = {homeLocation.Latitude / 10.0e6, homeLocation.Longitude / 10.0e6, homeLocation.Altitude};
double LLA[3];
CoordinateConversions().GetLLA(homeLLA, NED, LLA);
CoordinateConversions().NED2LLA_HomeLLA(homeLLA, NED, LLA);
uavPos->getLocator()->setPosition( osg::Vec3d(LLA[1], LLA[0], LLA[2]) ); // Note this takes longtitude first
} else {
GPSPosition *gpsPosObj = GPSPosition::GetInstance(objMngr);