Ver código fonte

Fix Probe Offset bug...

Roxy-3D 6 anos atrás
pai
commit
ab6908a513
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

+ 2
- 2
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp Ver arquivo

1241
     out_mesh.distance = -99999.9f;
1241
     out_mesh.distance = -99999.9f;
1242
 
1242
 
1243
     // Get our reference position. Either the nozzle or probe location.
1243
     // Get our reference position. Either the nozzle or probe location.
1244
-    const float px = rx - (probe_as_reference == USE_PROBE_AS_REFERENCE ? X_PROBE_OFFSET_FROM_EXTRUDER : 0),
1245
-                py = ry - (probe_as_reference == USE_PROBE_AS_REFERENCE ? Y_PROBE_OFFSET_FROM_EXTRUDER : 0);
1244
+    const float px = rx + (probe_as_reference == USE_PROBE_AS_REFERENCE ? X_PROBE_OFFSET_FROM_EXTRUDER : 0),
1245
+                py = ry + (probe_as_reference == USE_PROBE_AS_REFERENCE ? Y_PROBE_OFFSET_FROM_EXTRUDER : 0);
1246
 
1246
 
1247
     float best_so_far = 99999.99f;
1247
     float best_so_far = 99999.99f;
1248
 
1248
 

Carregando…
Cancelar
Salvar