|
@@ -45,7 +45,7 @@
|
45
|
45
|
*
|
46
|
46
|
* 104 M92 XYZE planner.axis_steps_per_unit (float x4)
|
47
|
47
|
* 120 M203 XYZE planner.max_feedrate (float x4)
|
48
|
|
- * 136 M201 XYZE planner.max_acceleration_units_per_sq_second (uint32_t x4)
|
|
48
|
+ * 136 M201 XYZE planner.max_acceleration_mm_per_s2 (uint32_t x4)
|
49
|
49
|
* 152 M204 P planner.acceleration (float)
|
50
|
50
|
* 156 M204 R planner.retract_acceleration (float)
|
51
|
51
|
* 160 M204 T planner.travel_acceleration (float)
|
|
@@ -175,7 +175,7 @@ void Config_StoreSettings() {
|
175
|
175
|
EEPROM_WRITE_VAR(i, ver); // invalidate data first
|
176
|
176
|
EEPROM_WRITE_VAR(i, planner.axis_steps_per_unit);
|
177
|
177
|
EEPROM_WRITE_VAR(i, planner.max_feedrate);
|
178
|
|
- EEPROM_WRITE_VAR(i, planner.max_acceleration_units_per_sq_second);
|
|
178
|
+ EEPROM_WRITE_VAR(i, planner.max_acceleration_mm_per_s2);
|
179
|
179
|
EEPROM_WRITE_VAR(i, planner.acceleration);
|
180
|
180
|
EEPROM_WRITE_VAR(i, planner.retract_acceleration);
|
181
|
181
|
EEPROM_WRITE_VAR(i, planner.travel_acceleration);
|
|
@@ -355,7 +355,7 @@ void Config_RetrieveSettings() {
|
355
|
355
|
// version number match
|
356
|
356
|
EEPROM_READ_VAR(i, planner.axis_steps_per_unit);
|
357
|
357
|
EEPROM_READ_VAR(i, planner.max_feedrate);
|
358
|
|
- EEPROM_READ_VAR(i, planner.max_acceleration_units_per_sq_second);
|
|
358
|
+ EEPROM_READ_VAR(i, planner.max_acceleration_mm_per_s2);
|
359
|
359
|
|
360
|
360
|
// steps per sq second need to be updated to agree with the units per sq second (as they are what is used in the planner)
|
361
|
361
|
planner.reset_acceleration_rates();
|
|
@@ -529,7 +529,7 @@ void Config_ResetDefault() {
|
529
|
529
|
for (uint8_t i = 0; i < NUM_AXIS; i++) {
|
530
|
530
|
planner.axis_steps_per_unit[i] = tmp1[i];
|
531
|
531
|
planner.max_feedrate[i] = tmp2[i];
|
532
|
|
- planner.max_acceleration_units_per_sq_second[i] = tmp3[i];
|
|
532
|
+ planner.max_acceleration_mm_per_s2[i] = tmp3[i];
|
533
|
533
|
#if ENABLED(SCARA)
|
534
|
534
|
if (i < COUNT(axis_scaling))
|
535
|
535
|
axis_scaling[i] = 1;
|
|
@@ -687,10 +687,10 @@ void Config_PrintSettings(bool forReplay) {
|
687
|
687
|
SERIAL_ECHOLNPGM("Maximum Acceleration (mm/s2):");
|
688
|
688
|
CONFIG_ECHO_START;
|
689
|
689
|
}
|
690
|
|
- SERIAL_ECHOPAIR(" M201 X", planner.max_acceleration_units_per_sq_second[X_AXIS]);
|
691
|
|
- SERIAL_ECHOPAIR(" Y", planner.max_acceleration_units_per_sq_second[Y_AXIS]);
|
692
|
|
- SERIAL_ECHOPAIR(" Z", planner.max_acceleration_units_per_sq_second[Z_AXIS]);
|
693
|
|
- SERIAL_ECHOPAIR(" E", planner.max_acceleration_units_per_sq_second[E_AXIS]);
|
|
690
|
+ SERIAL_ECHOPAIR(" M201 X", planner.max_acceleration_mm_per_s2[X_AXIS]);
|
|
691
|
+ SERIAL_ECHOPAIR(" Y", planner.max_acceleration_mm_per_s2[Y_AXIS]);
|
|
692
|
+ SERIAL_ECHOPAIR(" Z", planner.max_acceleration_mm_per_s2[Z_AXIS]);
|
|
693
|
+ SERIAL_ECHOPAIR(" E", planner.max_acceleration_mm_per_s2[E_AXIS]);
|
694
|
694
|
SERIAL_EOL;
|
695
|
695
|
CONFIG_ECHO_START;
|
696
|
696
|
if (!forReplay) {
|