Skip to content

Commit d7be13f

Browse files
committed
Merge pull request #394 from phmagic/solo_follow_shot_update
Only send brake command for non-Solo shot follow
2 parents 3f9e53f + a05a361 commit d7be13f

File tree

1 file changed

+3
-1
lines changed
  • ServiceApp/src/org/droidplanner/services/android/core/gcs/follow

1 file changed

+3
-1
lines changed

ServiceApp/src/org/droidplanner/services/android/core/gcs/follow/Follow.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ private void disableFollowMe() {
9292
}
9393

9494
final MavLinkDrone drone = droneMgr.getDrone();
95-
if (GuidedPoint.isGuidedMode(drone)) {
95+
// Send a brake command only on APM Follow, Solo Shot follow braking is handled by its Shot Manager onboard
96+
if (GuidedPoint.isGuidedMode(drone)
97+
&& followAlgorithm.getType() != FollowAlgorithm.FollowModes.SOLO_SHOT) {
9698
droneMgr.getDrone().executeAsyncAction(new Action(ControlActions.ACTION_SEND_BRAKE_VEHICLE), null);
9799
}
98100
}

0 commit comments

Comments
 (0)