Prusa MINI Firmware overview
|
#include <mesh_bed_leveling.h>
|
static void | report_mesh () |
|
static void | reset () |
|
static FORCE_INLINE bool | has_mesh () |
|
static void | set_z (const int8_t px, const int8_t py, const float &z) |
|
static void | zigzag (const int8_t index, int8_t &px, int8_t &py) |
|
static void | set_zigzag_z (const int8_t index, const float &z) |
|
static int8_t | cell_index_x (const float &x) |
|
static int8_t | cell_index_y (const float &y) |
|
static xy_int8_t | cell_indexes (const float &x, const float &y) |
|
static xy_int8_t | cell_indexes (const xy_pos_t &xy) |
|
static int8_t | probe_index_x (const float &x) |
|
static int8_t | probe_index_y (const float &y) |
|
static xy_int8_t | probe_indexes (const float &x, const float &y) |
|
static xy_int8_t | probe_indexes (const xy_pos_t &xy) |
|
static float | calc_z0 (const float &a0, const float &a1, const float &z1, const float &a2, const float &z2) |
|
static float | get_z (const xy_pos_t &pos) |
|
static void | line_to_destination (const feedRate_t &scaled_fr_mm_s, uint8_t x_splits=0xFF, uint8_t y_splits=0xFF) |
|
◆ mesh_bed_leveling()
mesh_bed_leveling::mesh_bed_leveling |
( |
| ) |
|
◆ report_mesh()
static void mesh_bed_leveling::report_mesh |
( |
| ) |
|
|
static |
◆ reset()
static void mesh_bed_leveling::reset |
( |
| ) |
|
|
static |
◆ has_mesh()
55 for (
uint8_t x = 0; x < GRID_MAX_POINTS_X; x++)
56 for (
uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++)
◆ set_z()
◆ zigzag()
static void mesh_bed_leveling::zigzag |
( |
const int8_t |
index, |
|
|
int8_t & |
px, |
|
|
int8_t & |
py |
|
) |
| |
|
static |
64 px = index % (GRID_MAX_POINTS_X);
65 py = index / (GRID_MAX_POINTS_X);
66 if (py & 1) px = (GRID_MAX_POINTS_X - 1) - px;
◆ set_zigzag_z()
static void mesh_bed_leveling::set_zigzag_z |
( |
const int8_t |
index, |
|
|
const float & |
z |
|
) |
| |
|
static |
◆ cell_index_x()
static int8_t mesh_bed_leveling::cell_index_x |
( |
const float & |
x | ) |
|
|
static |
77 return constrain(cx, 0, (GRID_MAX_POINTS_X) - 2);
◆ cell_index_y()
static int8_t mesh_bed_leveling::cell_index_y |
( |
const float & |
y | ) |
|
|
static |
81 return constrain(cy, 0, (GRID_MAX_POINTS_Y) - 2);
◆ cell_indexes() [1/2]
◆ cell_indexes() [2/2]
◆ probe_index_x()
static int8_t mesh_bed_leveling::probe_index_x |
( |
const float & |
x | ) |
|
|
static |
90 return WITHIN(px, 0, GRID_MAX_POINTS_X - 1) ? px : -1;
◆ probe_index_y()
static int8_t mesh_bed_leveling::probe_index_y |
( |
const float & |
y | ) |
|
|
static |
94 return WITHIN(py, 0, GRID_MAX_POINTS_Y - 1) ? py : -1;
◆ probe_indexes() [1/2]
◆ probe_indexes() [2/2]
◆ calc_z0()
static float mesh_bed_leveling::calc_z0 |
( |
const float & |
a0, |
|
|
const float & |
a1, |
|
|
const float & |
z1, |
|
|
const float & |
a2, |
|
|
const float & |
z2 |
|
) |
| |
|
static |
102 const float delta_z = (z2 - z1) / (a2 - a1),
104 return z1 + delta_a * delta_z;
◆ get_z()
112 #if DISABLED(ENABLE_LEVELING_FADE_HEIGHT)
113 constexpr
float factor = 1.0f;
◆ line_to_destination()
◆ z_offset
float mesh_bed_leveling::z_offset |
|
static |
◆ z_values
float mesh_bed_leveling::z_values[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y] |
|
static |
◆ index_to_xpos
float mesh_bed_leveling::index_to_xpos[GRID_MAX_POINTS_X] |
|
static |
◆ index_to_ypos
float mesh_bed_leveling::index_to_ypos[GRID_MAX_POINTS_Y] |
|
static |
#define WITHIN(N, L, H)
Definition: macros.h:195
static float index_to_xpos[GRID_MAX_POINTS_X]
Definition: mesh_bed_leveling.h:43
#define RECIPROCAL(x)
Definition: macros.h:273
static int8_t probe_index_x(const float &x)
Definition: mesh_bed_leveling.h:88
static void zigzag(const int8_t index, int8_t &px, int8_t &py)
Definition: mesh_bed_leveling.h:63
static int8_t cell_index_y(const float &y)
Definition: mesh_bed_leveling.h:79
static xy_int8_t probe_indexes(const float &x, const float &y)
Definition: mesh_bed_leveling.h:96
static float z_values[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y]
Definition: mesh_bed_leveling.h:43
static int8_t cell_index_x(const float &x)
Definition: mesh_bed_leveling.h:75
#define constrain(amt, low, high)
Definition: wiring_constants.h:79
static void set_z(const int8_t px, const int8_t py, const float &z)
Definition: mesh_bed_leveling.h:61
#define MESH_X_DIST
Definition: mesh_bed_leveling.h:35
T x
Definition: types.h:185
#define MESH_Y_DIST
Definition: mesh_bed_leveling.h:36
const uint8_t[]
Definition: 404_html.c:3
static float z_offset
Definition: mesh_bed_leveling.h:43
static int8_t probe_index_y(const float &y)
Definition: mesh_bed_leveling.h:92
static float calc_z0(const float &a0, const float &a1, const float &z1, const float &a2, const float &z2)
Definition: mesh_bed_leveling.h:101
T y
Definition: types.h:185
static xy_int8_t cell_indexes(const float &x, const float &y)
Definition: mesh_bed_leveling.h:83