1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-02 10:53:01 +02:00

Changed "search_scaler" to "seek_scaler"

This commit is contained in:
Mitch Bradley
2021-07-01 22:44:48 -10:00
parent c090f96a2e
commit 42a349aa22
2 changed files with 3 additions and 3 deletions

View File

@@ -222,7 +222,7 @@ static void limits_go_home(uint8_t cycle_mask, uint32_t n_locate_cycles) {
// Add a small fudge factor to ensure that the limit is reached
for (int axis = 0; axis < n_axis; axis++) {
auto homing = config->_axes->_axis[axis]->_homing;
auto scaler = approach ? homing->_search_scaler : homing->_locate_scaler;
auto scaler = approach ? homing->_seek_scaler : homing->_locate_scaler;
if (bitnum_istrue(axislock, axis)) {
target[axis] *= limitingRate * scaler;
}

View File

@@ -35,7 +35,7 @@ namespace Machine {
float _seekRate = 200.0f; // this first approach speed
float _pulloff = 1.0f; // mm
int _debounce = 250; // ms settling time for homing switches after motion
float _search_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 _locate_scaler = 1.0f;
// Configuration system helpers:
@@ -50,7 +50,7 @@ namespace Machine {
handler.item("debounce", _debounce);
handler.item("pulloff", _pulloff);
handler.item("square", _square);
handler.item("search_scaler", _search_scaler);
handler.item("seek_scaler", _seek_scaler);
handler.item("locate_scaler", _locate_scaler);
}
};