Skip to content

Commit 6658b1a

Browse files
committed
update how ekf position state notification are dispatched.
1 parent 2d26849 commit 6658b1a

File tree

1 file changed

+2
-2
lines changed
  • dependencyLibs/Core/src/org/droidplanner/core/drone/variables

1 file changed

+2
-2
lines changed

dependencyLibs/Core/src/org/droidplanner/core/drone/variables/State.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ public void setArmed(boolean newState) {
110110
}
111111
}
112112
}
113+
114+
checkEkfPositionState(this.ekfStatus);
113115
}
114116

115117
public void setMode(ApmModes mode) {
@@ -155,8 +157,6 @@ public void setEkfStatus(msg_ekf_status_report ekfState) {
155157
if(this.ekfStatus == null || !areEkfStatusEquals(this.ekfStatus, ekfState)) {
156158
this.ekfStatus = ekfState;
157159
myDrone.notifyDroneEvent(DroneEventsType.EKF_STATUS_UPDATE);
158-
159-
checkEkfPositionState(this.ekfStatus);
160160
}
161161
}
162162

0 commit comments

Comments
 (0)