Explorar el Código

Tweak extrapolate_one_point

Scott Lahteine hace 9 años
padre
commit
b9d19b0008
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp Ver fichero

@@ -2122,9 +2122,9 @@ static void clean_up_after_endstop_or_probe_move() {
2122 2122
 #elif ENABLED(AUTO_BED_LEVELING_NONLINEAR)
2123 2123
 
2124 2124
   /**
2125
-   * All DELTA leveling in the Marlin uses NONLINEAR_BED_LEVELING
2125
+   * Extrapolate a single point from its neighbors
2126 2126
    */
2127
-  static void extrapolate_one_point(uint8_t x, uint8_t y, int xdir, int ydir) {
2127
+  static void extrapolate_one_point(uint8_t x, uint8_t y, int8_t xdir, int8_t ydir) {
2128 2128
     if (bed_level_grid[x][y]) return;  // Don't overwrite good values.
2129 2129
     float a = 2 * bed_level_grid[x + xdir][y] - bed_level_grid[x + xdir * 2][y], // Left to right.
2130 2130
           b = 2 * bed_level_grid[x][y + ydir] - bed_level_grid[x][y + ydir * 2], // Front to back.

Loading…
Cancelar
Guardar