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:
parent
69328edd0d
commit
2bf8423ed6
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user