Jyers / 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.
http://marlinfw.org
GNU General Public License v3.0
2.14k stars 387 forks source link

MESH_BED_LEVELING results in compile error #965

Closed enderextender closed 3 years ago

enderextender commented 3 years ago

disable BLTOUCH and auto levelling options

Just uncomment MESH_BED_LEVELING

Marlin\src\lcd\dwin\creality_dwin.cpp:257:35: error: 'z_values' was not declared in this scope bed_mesh_t &mesh_z_values = z_values; ^~~~ Marlin\src\lcd\dwin\creality_dwin.cpp:257:35: note: suggested alternative: 'Value' bed_mesh_t &mesh_z_values = z_values;

enderextender commented 3 years ago

I took a guess and it seems this is the correct code

      #if DISABLED(HAS_ONESTEP_LEVELING)
        bed_mesh_t &mesh_z_values = mbl.z_values;
      #else
        bed_mesh_t &mesh_z_values = z_values;
      #endif
Jyers commented 3 years ago

The MESH_BED_LEVELING feature is not supported on this firmware. For manual mesh leveling use Bilinear with the PROBE_MANUALLY option enabled.

For more info you can take a look at the manual mesh templates.

enderextender commented 3 years ago

Ok then how about fix this. doing what you say results in a new error.

define AUTO_BED_LEVELING_BILINEAR

define PROBE_MANUALLY


Marlin\src\lcd\dwin\creality_dwin.cpp: In member function 'void CrealityDWINClass::Menu_Item_Handler(uint8_t, uint8_t, bool)':
Marlin\src\lcd\dwin\creality_dwin.cpp:3827:35: error: 'mesh_z_values' was not declared in this scope
             const float currval = mesh_z_values[mesh_x][mesh_y];
                                   ^~~~~~~~~~~~~
Marlin\src\lcd\dwin\creality_dwin.cpp:3827:35: note: suggested alternative: 'z_values'
             const float currval = mesh_z_values[mesh_x][mesh_y];
                                   ^~~~~~~~~~~~~
                                   z_values
*** [.pio\build\STM32F103RET6_creality\src\src\lcd\dwin\creality_dwin.cpp.o] Error 1
Jyers commented 3 years ago

I just compiled from the latest source using the ManualMesh-3x3 config template with no errors. I would recommend taking a look at those configs and see if you might be missing something. I can assure you the issue is not the source code.

enderextender commented 3 years ago

Ok so I just used the config that was in the base directory.

Maybe some better docs. But appreciate the effort on the overall project

Regards,

Mark Williamson

Ender Extender Support

From: Jyers @.> Sent: Sunday, June 6, 2021 12:53 PM To: Jyers/Marlin @.> Cc: enderextender @.>; Author @.> Subject: Re: [Jyers/Marlin] MESH_BED_LEVELING results in compile error (#965)

I just compiled from the latest source using the ManualMesh-3x3 config template with no errors. I would recommend taking a look at those configs and see if you might be missing something. I can assure you the issue is not the source code.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Jyers/Marlin/issues/965#issuecomment-855436524 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGDFAJJLLKSYAUKU5WNMO3TROYYBANCNFSM46EZ7XDQ . https://github.com/notifications/beacon/ARGDFALKJFT2D5OGV3ZDMQ3TROYYBA5CNFSM46EZ7XD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGL6OZ3A.gif

smooreace commented 3 years ago

The general instruction from the main Marlin repo cover things well

On Mon, Jun 7, 2021 at 1:16 PM enderextender @.***> wrote:

Ok so I just used the config that was in the base directory.

Maybe some better docs. But appreciate the effort on the overall project

Regards,

Mark Williamson

Ender Extender Support

From: Jyers @.> Sent: Sunday, June 6, 2021 12:53 PM To: Jyers/Marlin @.> Cc: enderextender @.>; Author @.> Subject: Re: [Jyers/Marlin] MESH_BED_LEVELING results in compile error (#965)

I just compiled from the latest source using the ManualMesh-3x3 config template with no errors. I would recommend taking a look at those configs and see if you might be missing something. I can assure you the issue is not the source code.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/Jyers/Marlin/issues/965#issuecomment-855436524> , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ARGDFAJJLLKSYAUKU5WNMO3TROYYBANCNFSM46EZ7XDQ> . < https://github.com/notifications/beacon/ARGDFALKJFT2D5OGV3ZDMQ3TROYYBA5CNFSM46EZ7XD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGL6OZ3A.gif>

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Jyers/Marlin/issues/965#issuecomment-856156943, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPE4Q3H5KGOWBINDSG3COLTRUEIDANCNFSM46EZ7XDQ .