Skip to content

Commit

Permalink
Changed stopTeleOp message to same as Neptus | Resend teleopDone comm…
Browse files Browse the repository at this point in the history
…and until message of confirmation
  • Loading branch information
migueLoureiro committed Oct 7, 2014
1 parent aba651a commit 2bc6cf9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pt/lsts/accu/TeleOpPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import pt.lsts.accu.util.MUtil;
import pt.lsts.imc.IMCDefinition;
import pt.lsts.imc.IMCMessage;
import pt.lsts.imc.TeleoperationDone;
import pt.lsts.accu.R;
import android.app.AlertDialog;
import android.app.Dialog;
Expand Down Expand Up @@ -171,8 +172,11 @@ private void stopTeleOp()
timer.stop();
IMCMessage msg;
try {
msg = IMCDefinition.getInstance().create("TeleOperationDone");
imm.send(activeS.getAddress(), activeS.getPort(), msg);
msg = new TeleoperationDone();
while(teleop==true){
imm.send(activeS.getAddress(), activeS.getPort(), msg);
wait(700);
}
} catch (Exception e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 2bc6cf9

Please sign in to comment.