/* kinematics_polar_coaster.h - Implements simple kinematics for Grbl_ESP32 Part of Grbl_ESP32 Copyright (c) 2019 Barton Dring @buildlog Grbl 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. Grbl 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. You should have received a copy of the GNU General Public License along with Grbl. If not, see . */ #define RADIUS_AXIS 0 #define POLAR_AXIS 1 #define SEGMENT_LENGTH 0.5 // segment length in mm #define USE_KINEMATICS #define FWD_KINEMATICS_REPORTING // report in cartesian #define USE_M30 // ============= Begin CPU MAP ================ #define CPU_MAP_NAME "CPU_MAP_POLAR_COASTER" #define USE_RMT_STEPS #define X_STEP_PIN GPIO_NUM_15 #define X_RMT_CHANNEL 0 #define Y_STEP_PIN GPIO_NUM_2 #define Y_RMT_CHANNEL 1 #define X_DIRECTION_PIN GPIO_NUM_25 #define Y_DIRECTION_PIN GPIO_NUM_26 #define STEPPERS_DISABLE_PIN GPIO_NUM_17 #ifndef USE_SERVO_AXES // maybe set in config.h #define USE_SERVO_AXES #endif #define SERVO_Z_PIN GPIO_NUM_16 #define SERVO_Z_CHANNEL_NUM 5 #define SERVO_Z_RANGE_MIN 0.0 #define SERVO_Z_RANGE_MAX 5.0 #define SERVO_Z_HOMING_TYPE SERVO_HOMING_TARGET // during homing it will instantly move to a target value #define SERVO_Z_HOME_POS SERVO_Z_RANGE_MAX // move to max during homing #define SERVO_Z_MPOS false // will not use mpos, uses work coordinates #define X_LIMIT_PIN GPIO_NUM_4 #define LIMIT_MASK B1 #ifdef IGNORE_CONTROL_PINS // maybe set in config.h #undef IGNORE_CONTROL_PINS #endif #ifndef ENABLE_CONTROL_SW_DEBOUNCE #define ENABLE_CONTROL_SW_DEBOUNCE #endif #ifdef CONTROL_SW_DEBOUNCE_PERIOD #undef CONTROL_SW_DEBOUNCE_PERIOD #endif #define CONTROL_SW_DEBOUNCE_PERIOD 100 // really long debounce #ifdef INVERT_CONTROL_PIN_MASK #undef INVERT_CONTROL_PIN_MASK #endif #define INVERT_CONTROL_PIN_MASK B11111111 #define MACRO_BUTTON_0_PIN GPIO_NUM_13 #define MACRO_BUTTON_1_PIN GPIO_NUM_12 #define MACRO_BUTTON_2_PIN GPIO_NUM_14 // redefine some stuff from config.h #ifdef HOMING_CYCLE_0 #undef HOMING_CYCLE_0 #endif #define HOMING_CYCLE_0 (1<