farmbot-arduino-firmware/src/F13Handler.cpp

42 lines
559 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"
2017-04-19 08:12:12 -06:00
static F13Handler *instance;
F13Handler *F13Handler::getInstance()
{
if (!instance)
{
instance = new F13Handler();
};
return instance;
};
F13Handler::F13Handler()
{
2014-07-23 01:46:21 -06:00
}
2017-04-19 08:12:12 -06:00
int F13Handler::execute(Command *command)
{
2014-07-23 01:46:21 -06:00
2017-04-19 08:12:12 -06:00
if (LOGGING)
{
Serial.print("R99 HOME Z\r\n");
}
2014-07-23 01:46:21 -06:00
2017-04-19 08:12:12 -06:00
StepperControl::getInstance()->moveToCoords(0, 0, 0, 0, 0, 0, false, false, true);
2014-07-23 01:46:21 -06:00
2017-04-19 08:12:12 -06:00
if (LOGGING)
{
CurrentState::getInstance()->print();
}
return 0;
2014-07-23 01:46:21 -06:00
}