This repository has been archived on 2025-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
reprapfirmware-dc42/GCodes.h
2013-03-01 22:23:38 +00:00

46 lines
975 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();
void Init();
private:
void ActOnGcode();
Platform* platform;
Move* move;
Heat* heat;
Webserver* webserver;
unsigned long lastTime;
char gcodeBuffer[GCODE_LENGTH];
int gcodePointer;
};
#endif