Skip to content

Commit

Permalink
Follow-me: Stop the copter when commanded from the pebble, instead of…
Browse files Browse the repository at this point in the history
… switching to loiter.
  • Loading branch information
arthurbenemann committed Oct 3, 2014
1 parent 30004f1 commit c25e6b6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ public void receiveData(Context context, int transactionId, PebbleDictionary dat
break;

case KEY_REQUEST_MODE_LOITER:
((DroidPlannerApp) applicationContext).getDrone().getState()
.changeFlightMode(ApmModes.ROTOR_LOITER);
((DroidPlannerApp) applicationContext).getDrone().getGuidedPoint().pauseAtCurrentLocation();
break;

case KEY_REQUEST_MODE_RTL:
Expand Down

0 comments on commit c25e6b6

Please sign in to comment.