1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-30 09:39:49 +02:00

Updated some yaml key names for consistency

This commit is contained in:
bdring
2021-07-08 13:19:44 -05:00
parent fabfe11269
commit ab37c7b491
6 changed files with 20 additions and 20 deletions

View File

@@ -23,10 +23,10 @@ axes:
max_travel: 1000 max_travel: 1000
soft_limits: false soft_limits: false
homing: homing:
cycle: 1 cycle: 2
positive_direction: false positive_direction: false
mpos: 10.000 mpos: 10.000
debounce: 10 debounce_ms: 250
pulloff: 1.000 pulloff: 1.000
square: false square: false
seek_rate: 500.000 seek_rate: 500.000
@@ -57,7 +57,7 @@ axes:
cycle: 2 cycle: 2
positive_direction: false positive_direction: false
mpos: 10.000 mpos: 10.000
debounce: 10 debounce_ms: 250
pulloff: 1.000 pulloff: 1.000
square: false square: false
seek_rate: 500.000 seek_rate: 500.000
@@ -87,7 +87,7 @@ axes:
cycle: 2 cycle: 2
positive_direction: false positive_direction: false
mpos: 10.000 mpos: 10.000
debounce: 10 debounce_ms: 250
pulloff: 1.000 pulloff: 1.000
square: false square: false
seek_rate: 500.000 seek_rate: 500.000
@@ -145,7 +145,7 @@ sdcard:
coolant: coolant:
flood: NO_PIN flood: NO_PIN
mist: NO_PIN mist: NO_PIN
delay: 0.000 delay_ms: 0.000
probe: probe:
pin: NO_PIN pin: NO_PIN

View File

@@ -9,7 +9,7 @@ stepping:
pulse_us: 2 pulse_us: 2
disable_delay_us: 0 disable_delay_us: 0
homing_init_lock: false homing_init_lock: true
axes: axes:
number_axis: 3 number_axis: 3
@@ -21,12 +21,12 @@ axes:
acceleration: 25 acceleration: 25
max_travel: 1000 max_travel: 1000
homing: homing:
cycle: 2 cycle: -1
mpos: 10 mpos: 10
positive_direction: false positive_direction: false
feed_rate: 50.000 feed_rate: 50.000
seek_rate: 200.000 seek_rate: 200.000
debounce: 500 debounce_ms: 500
pulloff: 1.000 pulloff: 1.000
gang0: gang0:
@@ -45,12 +45,12 @@ axes:
acceleration: 25 acceleration: 25
max_travel: 1000 max_travel: 1000
homing: homing:
cycle: 2 cycle: 0
mpos: 10 mpos: 10
positive_direction: false positive_direction: false
feed_rate: 50.000 feed_rate: 50.000
seek_rate: 600.000 seek_rate: 600.000
debounce: 500 debounce_ms: 500
pulloff: 1.500 pulloff: 1.500
gang0: gang0:
@@ -76,13 +76,13 @@ axes:
feed_rate: 30.000 feed_rate: 30.000
seek_scaler: 2.000 seek_scaler: 2.000
feed_scaler: 1.000 feed_scaler: 1.000
debounce: 500 debounce_ms: 500
pulloff: 1.000 pulloff: 1.000
gang0: gang0:
endstops: endstops:
dual: gpio.16:low:pu dual: gpio.16:low:pu
hard_limits: true hard_limits: false
stepstick: stepstick:
direction: gpio.33 direction: gpio.33
step: gpio.27 step: gpio.27

View File

@@ -95,7 +95,7 @@ void CoolantControl::set_state(CoolantState state) {
} }
write(state); write(state);
sys.report_ovr_counter = 0; // Set to report change immediately sys.report_ovr_counter = 0; // Set to report change immediately
delay_msec(int32_t(1000.0 * _delay), DwellMode::SysSuspend); delay_msec(_delay_ms, DwellMode::SysSuspend);
} }
void CoolantControl::off() { void CoolantControl::off() {
@@ -116,5 +116,5 @@ void CoolantControl::sync(CoolantState state) {
void CoolantControl::group(Configuration::HandlerBase& handler) { void CoolantControl::group(Configuration::HandlerBase& handler) {
handler.item("flood", _flood); handler.item("flood", _flood);
handler.item("mist", _mist); handler.item("mist", _mist);
handler.item("delay", _delay); handler.item("delay_ms", _delay_ms);
} }

View File

@@ -31,7 +31,7 @@ class CoolantControl : public Configuration::Configurable {
Pin _mist; Pin _mist;
Pin _flood; Pin _flood;
float _delay = 0.0; uint32_t _delay_ms = 0;
void write(CoolantState state); void write(CoolantState state);

View File

@@ -186,7 +186,7 @@ static void limits_go_home(uint8_t cycle_mask, uint32_t n_locate_cycles) {
auto axisConfig = config->_axes->_axis[axis]; auto axisConfig = config->_axes->_axis[axis];
auto homing = axisConfig->_homing; auto homing = axisConfig->_homing;
debounce = std::max(debounce, homing->_debounce); debounce = std::max(debounce, homing->_debounce_ms);
auto axis_homing_rate = seek ? homing->_seekRate : homing->_feedRate; auto axis_homing_rate = seek ? homing->_seekRate : homing->_feedRate;

View File

@@ -30,13 +30,13 @@ namespace Machine {
int _cycle = -1; // what homing cycle does this axis home on? int _cycle = -1; // what homing cycle does this axis home on?
bool _square = false; bool _square = false;
bool _positiveDirection = true; bool _positiveDirection = true;
float _mpos = 0.0f; float _mpos = 0.0f; // After homing this will be the mpos of the switch location
float _feedRate = 50.0f; // pulloff and second touch speed float _feedRate = 50.0f; // pulloff and second touch speed
float _seekRate = 200.0f; // this first approach speed float _seekRate = 200.0f; // this first approach speed
float _pulloff = 1.0f; // mm float _pulloff = 1.0f; // mm
int _debounce = 250; // ms settling time for homing switches after motion int _debounce_ms = 250; // ms settling time for homing switches after motion
float _seek_scaler = 1.1f; // multiplied by max travel for max homing distance on first touch float _seek_scaler = 1.1f; // multiplied by max travel for max homing distance on first touch
float _feed_scaler = 1.0f; float _feed_scaler = 1.1f; // multiplier to pulloff for moving to switch after pulloff
// Configuration system helpers: // Configuration system helpers:
void validate() const override { Assert(_cycle >= 0, "Homing cycle must be defined"); } void validate() const override { Assert(_cycle >= 0, "Homing cycle must be defined"); }
@@ -47,7 +47,7 @@ namespace Machine {
handler.item("mpos", _mpos); handler.item("mpos", _mpos);
handler.item("feed_rate", _feedRate); handler.item("feed_rate", _feedRate);
handler.item("seek_rate", _seekRate); handler.item("seek_rate", _seekRate);
handler.item("debounce", _debounce); handler.item("debounce_ms", _debounce_ms);
handler.item("pulloff", _pulloff); handler.item("pulloff", _pulloff);
handler.item("square", _square); handler.item("square", _square);
handler.item("seek_scaler", _seek_scaler); handler.item("seek_scaler", _seek_scaler);