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/>.
8 #ifndef DRILLS_MODULE_H
9 #define DRILLS_MODULE_H
11 #include "libs/Module.h"
15 class Drills
: public Module
20 void on_module_loaded();
23 void on_config_reload(void *argument
);
24 void on_gcode_received(void *argument
);
26 void update_sticky(Gcode
*gcode
);
27 int send_gcode(const char* format
, ...);
28 void make_hole(Gcode
*gcode
);
31 bool cycle_started
; // cycle status
32 int retract_type
; // rretract type
34 float initial_z
; // Initial-Z
35 float r_plane
; // R-Plane
37 float sticky_z
; // final depth
38 float sticky_r
; // R-Plane
39 float sticky_f
; // feedrate
41 float sticky_q
; // depth increment
42 int sticky_p
; // dwell pause
44 int dwell_unity
; // unity for dwell