1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-15 11:04:16 +02:00

DumpConfig: Support kinematics section

This commit is contained in:
Mitch Bradley
2021-12-09 11:13:34 -10:00
parent 9188e92e45
commit 98ff294b4d

View File

@@ -733,7 +733,7 @@ void print_start() {
#ifdef DEACTIVATE_PARKING_UPON_INIT #ifdef DEACTIVATE_PARKING_UPON_INIT
dpoi = true; dpoi = true;
#endif #endif
item("deactivate_parking_upon_init", tf(dpoi)); item("deactivate_parking", tf(dpoi));
end_section(); end_section();
} }
@@ -780,6 +780,30 @@ void print_user_outputs() {
end_section(); end_section();
} }
void print_kinematics() {
section("kinematics");
#ifdef CUSTOM_CODE_FILENAME
if (!strcmp(CUSTOM_CODE_FILENAME, "../Custom/CoreXY.cpp")) {
# ifdef MIDTBOT
section("midtbot");
# else
section("CoreXY");
# endif
end_section();
} else if (!strcmp(CUSTOM_CODE_FILENAME, "../Custom/parallel_delta.cpp")) {
section("ParallelDelta");
end_section();
} else if (!strcmp(CUSTOM_CODE_FILENAME, "../Custom/polar_coaster.cpp")) {
section("PolarCoaster");
end_section();
}
#else
section("Cartesian");
end_section();
#endif
end_section();
}
void dump_config() { void dump_config() {
item("name", MACHINE_NAME); item("name", MACHINE_NAME);
#ifdef USE_I2S_OUT #ifdef USE_I2S_OUT
@@ -787,6 +811,7 @@ void dump_config() {
#else #else
item("board", "unknown"); item("board", "unknown");
#endif #endif
print_kinematics();
print_stepping(); print_stepping();
print_axes(); print_axes();
print_i2so(); print_i2so();
@@ -801,11 +826,14 @@ void dump_config() {
print_spindle_class(); print_spindle_class();
p("\n"); p("\n");
int db = 0; int db = 0;
#ifdef ENABLE_SOFTWARE_DEBOUNCE #ifdef ENABLE_SOFTWARE_DEBOUNCE
db = DEBOUNCE_PERIOD; db = DEBOUNCE_PERIOD;
#endif #endif
item("software_debounce_ms", db); // FluidNC does not support software debounce yet
// item("software_debounce_ms", db);
// TODO: Consider putting these under a gcode: hierarchy level? Or motion control? // TODO: Consider putting these under a gcode: hierarchy level? Or motion control?
item("arc_tolerance_mm", arc_tolerance->get()); item("arc_tolerance_mm", arc_tolerance->get());
item("junction_deviation_mm", junction_deviation->get()); item("junction_deviation_mm", junction_deviation->get());