Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
samuscherer committed Mar 6, 2015
2 parents ec8fb70 + ebfe08b commit b5c1c27
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions pi-server/src/de/null_pointer/communication_pi/BrickControlPi.java
Expand Up @@ -203,18 +203,22 @@ public void sendSensorData(String[] Sensor) {
}
readyToProcessData = true;

int linearAccelaration = Integer
.parseInt(propPiServer
.getProperty("CommunicationPi.BrickControlPi.forwardBackwardAccelaration"));
int rotationAccelaration = Integer
.parseInt(propPiServer
.getProperty("CommunicationPi.BrickControlPi.rotationAccelaration"));
int speed = Integer.parseInt(propPiServer
.getProperty("CommunicationPi.BrickControlPi.rotationSpeed"));

setLinearAccelaration(linearAccelaration);
setRotationAccelaration(rotationAccelaration);
setRotationSpeed(speed);
try {
int linearAccelaration = Integer
.parseInt(propPiServer
.getProperty("CommunicationPi.BrickControlPi.forwardBackwardAccelaration"));
int rotationAccelaration = Integer
.parseInt(propPiServer
.getProperty("CommunicationPi.BrickControlPi.rotationAccelaration"));
int speed = Integer
.parseInt(propPiServer
.getProperty("CommunicationPi.BrickControlPi.rotationSpeed"));
setLinearAccelaration(linearAccelaration);
setRotationAccelaration(rotationAccelaration);
setRotationSpeed(speed);
} catch (Exception e) {
logger.error("sendSensorData: error while parsing properties");
}
// notifyAll();
logger.debug("sendSensorData flag set to: " + readyToProcessData);
}
Expand Down

0 comments on commit b5c1c27

Please sign in to comment.