MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.28k stars 19.24k forks source link

Compile error with delta calibrate activated #17382

Closed Kowy54 closed 4 years ago

Kowy54 commented 4 years ago

When i compiling code for skr 1.4 for my custom delta, i get this error when i have uncommented delta calibrate

Marlin\src\lcd\menu\menu_delta_calibrate.cpp: In function 'void _man_probe_pt(const xy_pos_t&)':
Marlin\src\lcd\menu\menu_delta_calibrate.cpp:49:79: error: 'DEFAULT_XYZ_STEPS_PER_UNIT' was not declared in this scope; did you mean 'DEFAULT_AXIS_STEPS_PER_UNIT'?
   49 |     move_menu_scale = _MAX(PROBE_MANUALLY_STEP, MIN_STEPS_PER_SEGMENT / float(DEFAULT_XYZ_STEPS_PER_UNIT));
      |                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                               DEFAULT_AXIS_STEPS_PER_UNIT
Compiling .pio\build\LPC1768\src\src\lcd\menu\menu_main.cpp.o
Compiling .pio\build\LPC1768\src\src\lcd\menu\menu_media.cpp.o
*** [.pio\build\LPC1768\src\src\lcd\menu\menu_delta_calibrate.cpp.o] Error 1
ellensp commented 4 years ago

Please provide Configuration files, as was requested.

Kowy54 commented 4 years ago

Config.zip

ellensp commented 4 years ago

You have to start with a delta example configuration., It add extra defines such as

#define DEFAULT_XYZ_STEPS_PER_UNIT ((XYZ_FULL_STEPS_PER_ROTATION) * (XYZ_MICROSTEPS) / double(XYZ_BELT_PITCH) / double(XYZ_PULLEY_TEETH)) // 80

Eg https://github.com/MarlinFirmware/Configurations/tree/import-2.0.x/config/examples/delta/generic

Kowy54 commented 4 years ago

Now its working. Thanks ;)

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.