blob: c7262463484268640fd0439fff6a00262dfa02fa [file] [log] [blame]
Luigi Santivetti69972f92019-11-12 22:55:40 +00001/*
2 jog.h - Jogging methods
3 Part of Grbl
4
5 Copyright (c) 2016 Sungeun K. Jeon for Gnea Research LLC
6
7 Grbl is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 Grbl is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Grbl. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef jog_h
22#define jog_h
23
24#include "gcode.h"
25
26// System motion line numbers must be zero.
27#define JOG_LINE_NUMBER 0
28
29// Sets up valid jog motion received from g-code parser, checks for soft-limits, and executes the jog.
30uint8_t jog_execute(plan_line_data_t *pl_data, parser_block_t *gc_block);
31
32#endif