Add G82 and G3 support + Config
[clinton/Smoothieware.git] / src / modules / tools / drills / Drills.h
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 DRILLS_MODULE_H
9 #define DRILLS_MODULE_H
10
11 #include "libs/Module.h"
12
13 class Gcode;
14
15 class Drills : public Module
16 {
17 public:
18 Drills();
19 virtual ~Drills() {};
20 void on_module_loaded();
21
22 private:
23 void on_config_reload(void *argument);
24 void on_gcode_received(void *argument);
25 void reset_sticky();
26 void update_sticky(Gcode *gcode);
27 int send_gcode(const char* format, ...);
28 void make_hole(Gcode *gcode);
29 void peck_hole();
30
31 bool cycle_started; // cycle status
32 int retract_type; // rretract type
33
34 float initial_z; // Initial-Z
35 float r_plane; // R-Plane
36
37 float sticky_z; // final depth
38 float sticky_r; // R-Plane
39 float sticky_f; // feedrate
40
41 float sticky_q; // depth increment
42 int sticky_p; // dwell pause
43
44 int dwell_unity; // unity for dwell
45 };
46
47 #endif