grblHAL core  20241107
kinematics.h
Go to the documentation of this file.
1 /*
2  kinematics.h - kinematics interface (API)
3 
4  Part of grblHAL
5 
6  Copyright (c) 2019-2023 Terje Io
7 
8  Grbl is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation, either version 3 of the License, or
11  (at your option) any later version.
12 
13  Grbl is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Grbl. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #ifndef _KINEMATICS_H_
23 #define _KINEMATICS_H_
24 
25 typedef struct {
26  float *(*transform_steps_to_cartesian)(float *position, int32_t *steps);
27  float *(*transform_from_cartesian) (float *target, float *position);
28  float *(*segment_line) (float *target, float *position, plan_line_data_t *pl_data, bool init); // target is cartesian, position transformed
29  uint_fast8_t (*limits_get_axis_mask)(uint_fast8_t idx);
30  void (*limits_set_target_pos)(uint_fast8_t idx);
32  bool (*homing_cycle_validate)(axes_signals_t cycle);
33  float (*homing_cycle_get_feedrate)(axes_signals_t axes, float rate, homing_mode_t mode);
34 } kinematics_t;
35 
37 
38 #endif
kinematics_t kinematics
void limits_set_machine_positions(axes_signals_t cycle, bool add_pulloff)
Definition: machine_limits.c:144
homing_mode_t
Definition: machine_limits.h:30
Definition: kinematics.h:25
Definition: planner.h:87
Definition: nuts_bolts.h:130