farmbot-arduino-firmware/src/F13Handler.cpp

39 lines
643 B
C++
Raw Normal View History

2014-07-23 01:46:21 -06:00
/*
* F13Handler.cpp
*
* Created on: 2014/07/21
* Author: MattLech
*/
#include "F13Handler.h"
static F13Handler* instance;
F13Handler * F13Handler::getInstance() {
if (!instance) {
instance = new F13Handler();
};
return instance;
}
;
F13Handler::F13Handler() {
}
int F13Handler::execute(Command* command) {
if (LOGGING) {
Serial.print("R99 HOME Z\r\n");
2014-07-23 01:46:21 -06:00
}
2015-08-03 15:12:49 -06:00
StepperControl::getInstance()->moveToCoords(0,0,0, 0,0,0, false, false, true);
2016-10-02 15:43:39 -06:00
2014-07-23 01:46:21 -06:00
if (LOGGING) {
CurrentState::getInstance()->print();
}
return 0;
}