Added suspend and pause console commands
[clinton/Smoothieware.git] / src / modules / tools / scaracal / SCARAcal.h
CommitLineData
ed866a4b
QH
1/*
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.
5 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
6*/
7
8#ifndef SCARACAL_H_
9#define SCARACAL_H_
10
11#include "Module.h"
12#include "Pin.h"
13
14class StepperMotor;
15class Gcode;
16class StreamOutput;
17
18class SCARAcal: public Module
19{
20
21public:
22 void on_module_loaded();
23 void on_config_reload(void *argument);
24
25 void on_gcode_received(void *argument);
33bacc39 26// void on_idle(void *argument);
ed866a4b
QH
27
28
29private:
30 void home();
31 bool set_trim(float x, float y, float z, StreamOutput *stream);
32 bool get_trim(float& x, float& y, float& z);
33
34 void SCARA_ang_move(float theta, float psi, float z, float feedrate);
35
36 float slow_rate;
37
38 struct {
39 bool is_scara:1;
40 };
41};
42
43#endif /* SCARACAL_H_ */