private void moveStopped() { bridgeLogic.stopTarget(bridgeConfig.getPublicationList()); updateVelocityState(); /* * bridgeLogic.moveTarget(0, 0, * bridgeConfig.target, bridgeConfig.getPublicationList()); * */ }
public void teleopTarget(String request) { JObject msg = JObject.Parse(request); switch (msg["command"].ToString().Replace("\"", "")) { case "forward": parent.moveForward(conf.getPublicationList()); break; case "backward": parent.moveBackward(conf.getPublicationList()); break; case "left": parent.moveLeft(conf.getPublicationList()); break; case "right": parent.moveRight(conf.getPublicationList()); break; case "inc_velocity": parent.increaseVelocity(); break; case "dec_velocity": parent.decreaseVelocity(); break; case "stop": parent.stopTarget(conf.getPublicationList()); break; case "inc_ang": parent.increaseAngVelocity(); break; case "dec_ang": parent.decreaseAngVelocity(); break; } }