1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

AndroidGCS Map: Make sure to grab the correct uavLocation and homeLocation at startup

This commit is contained in:
James Cotton 2012-08-30 12:10:17 -05:00
parent 69328edd0d
commit 2bf8423ed6

View File

@ -169,9 +169,11 @@ public class UAVLocation extends MapActivity
void onOPConnected() {
UAVObject obj = objMngr.getObject("HomeLocation");
registerObjectUpdates(obj);
objectUpdated(obj);
obj = objMngr.getObject("PositionActual");
registerObjectUpdates(obj);
objectUpdated(obj);
}
private GeoPoint getUavLocation() {