45 lines
958 B
C++
45 lines
958 B
C++
/****************************************************************************************************
|
|
|
|
RepRapFirmware - G Codes
|
|
|
|
This class interprets G Codes from one or more sources, and calls the functions in Move, Heat etc
|
|
that drive the machine to do what the G Codes command.
|
|
|
|
-----------------------------------------------------------------------------------------------------
|
|
|
|
Version 0.1
|
|
|
|
13 February 2013
|
|
|
|
Adrian Bowyer
|
|
RepRap Professional Ltd
|
|
http://reprappro.com
|
|
|
|
Licence: GPL
|
|
|
|
****************************************************************************************************/
|
|
|
|
#ifndef GCODES_H
|
|
#define GCODES_H
|
|
|
|
class GCodes
|
|
{
|
|
public:
|
|
|
|
GCodes(Platform* p, Move* m, Heat* h, Webserver* w);
|
|
void spin();
|
|
|
|
private:
|
|
|
|
void ActOnGcode();
|
|
|
|
Platform* platform;
|
|
Move* move;
|
|
Heat* heat;
|
|
Webserver* webserver;
|
|
unsigned long lastTime;
|
|
char gcodeBuffer[GCODE_LENGTH];
|
|
int gcodePointer;
|
|
};
|
|
|
|
#endif
|