1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-05 21:52:10 +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() { void onOPConnected() {
UAVObject obj = objMngr.getObject("HomeLocation"); UAVObject obj = objMngr.getObject("HomeLocation");
registerObjectUpdates(obj); registerObjectUpdates(obj);
objectUpdated(obj);
obj = objMngr.getObject("PositionActual"); obj = objMngr.getObject("PositionActual");
registerObjectUpdates(obj); registerObjectUpdates(obj);
objectUpdated(obj);
} }
private GeoPoint getUavLocation() { private GeoPoint getUavLocation() {