removing 'home' message, adding R00 in a simple way

pull/24/head
TimEvWw 2015-04-01 20:18:05 -01:00
parent 75b5b8dbf3
commit 5128c1e232
5 changed files with 7 additions and 8 deletions

View File

@ -24,8 +24,6 @@ F13Handler::F13Handler() {
int F13Handler::execute(Command* command) {
Serial.print("home\n");
if (LOGGING) {
Serial.print("R99 HOME Z\n");
}

View File

@ -24,8 +24,6 @@ F15Handler::F15Handler() {
int F15Handler::execute(Command* command) {
Serial.print("home\n");
if (LOGGING) {
Serial.print("R99 HOME Z\n");
}

View File

@ -24,8 +24,6 @@ F16Handler::F16Handler() {
int F16Handler::execute(Command* command) {
Serial.print("home\n");
if (LOGGING) {
Serial.print("R99 HOME Z\n");
}

View File

@ -25,8 +25,6 @@ F82Handler::F82Handler() {
int F82Handler::execute(Command* command) {
Serial.print("home\n");
if (LOGGING) {
Serial.print("R99 Report current position\n");
}

View File

@ -48,7 +48,12 @@ void setup() {
// The loop function is called in an endless loop
void loop() {
//unsigned long lastAction;
//unsigned long currentTime;
if (Serial.available()) {
String commandString = Serial.readStringUntil(commandEndChar);
if (commandString && commandString.length() > 0) {
Command* command = new Command(commandString);
@ -61,6 +66,8 @@ void loop() {
}
delay(100);
Serial.print("R00\n");
//ServoControl::getInstance()->SetAngle(90);
}