Browse Source

pos.alt fix

QGC4.4
Laurens Mackay 15 years ago
parent
commit
3f815f83b7
  1. 2
      src/uas/UAS.cc

2
src/uas/UAS.cc

@ -369,7 +369,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) @@ -369,7 +369,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
{
emit valueChanged(uasId, "lat", pos.lat, time);
emit valueChanged(uasId, "lon", pos.lon, time);
emit globalPositionChanged(this, pos.lon, pos.lat, alt, time);
emit globalPositionChanged(this, pos.lon, pos.lat, pos.alt, time);
// Check for NaN
int alt = pos.alt;

Loading…
Cancel
Save