Adjustable XY_FREQUENCY_LIMIT (#17583)

This commit is contained in:
studiodyne
2020-04-27 12:59:52 +02:00
committed by GitHub
parent 65daf3ba40
commit 5ae45bab18
7 changed files with 82 additions and 61 deletions

View File

@ -60,6 +60,11 @@ void GcodeSuite::M201() {
const int8_t target_extruder = get_target_extruder_from_command();
if (target_extruder < 0) return;
#ifdef XY_FREQUENCY_LIMIT
if (parser.seenval('F')) planner.set_frequency_limit(parser.value_byte());
if (parser.seenval('G')) planner.xy_freq_min_speed_factor = constrain(parser.value_float(), 1, 100) / 100;
#endif
LOOP_XYZE(i) {
if (parser.seen(axis_codes[i])) {
const uint8_t a = (i == E_AXIS ? uint8_t(E_AXIS_N(target_extruder)) : i);