Commit | Line | Data |
---|---|---|
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 | ||
14 | class StepperMotor; | |
15 | class Gcode; | |
16 | class StreamOutput; | |
17 | ||
18 | class SCARAcal: public Module | |
19 | { | |
20 | ||
21 | public: | |
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 | ||
29 | private: | |
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_ */ |