makefile: flash target to use defined console, and correct crystal frequency
[clinton/Smoothieware.git] / src / modules / communication / utils / Gcode.h
CommitLineData
df27a6a3 1/*
cd011f58
AW
2 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl).
3 Smoothie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4 Smoothie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
df27a6a3 5 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
cd011f58
AW
6*/
7
8
4cff3ded
AW
9#ifndef GCODE_H
10#define GCODE_H
11#include <string>
12using std::string;
838b33b4 13#include "libs/StreamOutput.h"
e6b5ae25 14// Object to represent a Gcode command
838b33b4 15#include <stdlib.h>
4cff3ded
AW
16
17class Gcode {
18 public:
19 Gcode();
20 bool has_letter( char letter );
21 double get_value ( char letter );
d8f8bbf3 22 int get_num_args();
e6b5ae25 23 void prepare_cached_values();
4cff3ded
AW
24
25 string command;
436a2cd1
AW
26 double millimeters_of_travel;
27 bool call_on_gcode_execute_event_immediatly;
28 bool on_gcode_execute_event_called;
2bb8b390 29
e6b5ae25
AW
30 bool has_m;
31 bool has_g;
32 unsigned int m;
33 unsigned int g;
34
ac9f9b7a
MM
35 bool add_nl;
36
838b33b4 37 StreamOutput* stream;
4cff3ded
AW
38};
39#endif