Beispiel #1
0
    private void sendDataMessage()
    {
        string str = "data ";

        str += roboController.getMaxForwardVel() + " ";
        str += roboController.getMaxSideVel() + " ";
        str += roboController.getMaxTurnVel() + " ";
        str += roboController.getForwardVel() + " ";
        str += roboController.getSideVel() + " ";
        str += roboController.getTurnVel() + " ";
        str += roboController.getTrueVelocityStr() + " ";
        str += roboController.getTrueAngularVelocity() + " ";
        str += roboController.getGyroAngle() + " ";
        str += roboController.getForwardDist() + " ";
        str += roboController.getBackDist() + " ";
        str += roboController.getLeftDist() + " ";
        str += roboController.getRightDist() + " ";
        str += (turnedOn ? 1 : 0) + " ";
        str += (started ? 1 : 0) + " ";
        sendMessage(str);
    }