2014-05-15 11:44:28 -06:00
|
|
|
/*
|
|
|
|
* CurrentState.h
|
|
|
|
*
|
|
|
|
* Created on: 15 maj 2014
|
|
|
|
* Author: MattLech
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CURRENTSTATE_H_
|
|
|
|
#define CURRENTSTATE_H_
|
2014-05-15 15:46:47 -06:00
|
|
|
#include "Arduino.h"
|
2014-07-24 15:04:19 -06:00
|
|
|
#include "pins.h"
|
2014-05-15 11:44:28 -06:00
|
|
|
|
2017-04-19 08:12:12 -06:00
|
|
|
class CurrentState
|
|
|
|
{
|
2014-05-15 11:44:28 -06:00
|
|
|
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
|
|
|
|
2014-05-15 11:44:28 -06:00
|
|
|
private:
|
2017-04-19 08:12:12 -06:00
|
|
|
CurrentState();
|
|
|
|
CurrentState(CurrentState const &);
|
|
|
|
void operator=(CurrentState const &);
|
2014-05-15 11:44:28 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* CURRENTSTATE_H_ */
|