farmbot-arduino-firmware/src/CurrentState.h

42 lines
732 B
C
Raw Normal View History

/*
* CurrentState.h
*
* Created on: 15 maj 2014
* Author: MattLech
*/
#ifndef CURRENTSTATE_H_
#define CURRENTSTATE_H_
#include "Arduino.h"
2014-07-24 15:04:19 -06:00
#include "pins.h"
2017-04-19 08:12:12 -06:00
class CurrentState
{
public:
2017-04-19 08:12:12 -06:00
static CurrentState *getInstance();
long getX();
long getY();
long getZ();
long *getPoint();
void setX(long);
void setY(long);
void setZ(long);
void setEndStopState(unsigned int, unsigned int, bool);
void printPosition();
void storeEndStops();
void printEndStops();
void print();
void printBool(bool);
2016-10-02 15:43:39 -06:00
2017-04-19 08:12:12 -06:00
void setQ(long);
void resetQ();
void printQAndNewLine();
2016-10-02 15:43:39 -06:00
private:
2017-04-19 08:12:12 -06:00
CurrentState();
CurrentState(CurrentState const &);
void operator=(CurrentState const &);
};
#endif /* CURRENTSTATE_H_ */