Procházet zdrojové kódy

Merge pull request #4133 from MagoKimbra/Single_home_axis_delta

Single home Axis Delta need simple sync_plan_position
Scott Lahteine před 9 roky
rodič
revize
7de7552069
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4
    4
      Marlin/Marlin_main.cpp

+ 4
- 4
Marlin/Marlin_main.cpp Zobrazit soubor

2334
 
2334
 
2335
     // Set the axis position as setup for the move
2335
     // Set the axis position as setup for the move
2336
     current_position[axis] = 0;
2336
     current_position[axis] = 0;
2337
-    SYNC_PLAN_POSITION_KINEMATIC();
2337
+    sync_plan_position();
2338
 
2338
 
2339
     // Homing Z towards the bed? Deploy the Z probe or endstop.
2339
     // Homing Z towards the bed? Deploy the Z probe or endstop.
2340
     #if HAS_BED_PROBE
2340
     #if HAS_BED_PROBE
2359
 
2359
 
2360
     // Set the axis position as setup for the move
2360
     // Set the axis position as setup for the move
2361
     current_position[axis] = 0;
2361
     current_position[axis] = 0;
2362
-    SYNC_PLAN_POSITION_KINEMATIC();
2362
+    sync_plan_position();
2363
 
2363
 
2364
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2364
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2365
       if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> endstops.enable(false)");
2365
       if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> endstops.enable(false)");
2400
           lockZ1 = (z_endstop_adj < 0);
2400
           lockZ1 = (z_endstop_adj < 0);
2401
 
2401
 
2402
         if (lockZ1) stepper.set_z_lock(true); else stepper.set_z2_lock(true);
2402
         if (lockZ1) stepper.set_z_lock(true); else stepper.set_z2_lock(true);
2403
-        SYNC_PLAN_POSITION_KINEMATIC();
2403
+        sync_plan_position();
2404
 
2404
 
2405
         // Move to the adjusted endstop height
2405
         // Move to the adjusted endstop height
2406
         feedrate = homing_feedrate[axis];
2406
         feedrate = homing_feedrate[axis];
2420
           if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> endstops.enable(false)");
2420
           if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> endstops.enable(false)");
2421
         #endif
2421
         #endif
2422
         endstops.enable(false); // Disable endstops while moving away
2422
         endstops.enable(false); // Disable endstops while moving away
2423
-        SYNC_PLAN_POSITION_KINEMATIC();
2423
+        sync_plan_position();
2424
         destination[axis] = endstop_adj[axis];
2424
         destination[axis] = endstop_adj[axis];
2425
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2425
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2426
           if (DEBUGGING(LEVELING)) {
2426
           if (DEBUGGING(LEVELING)) {

Loading…
Zrušit
Uložit