Fewer includes of vector_3.h
This commit is contained in:
parent
9312636ee4
commit
d7b699ec34
@ -75,10 +75,4 @@ void serial_spaces(uint8_t count) { count *= (PROPORTIONAL_FONT_RATIO); while (c
|
|||||||
print_xyz(prefix, suffix, xyz[X_AXIS], xyz[Y_AXIS], xyz[Z_AXIS]);
|
print_xyz(prefix, suffix, xyz[X_AXIS], xyz[Y_AXIS], xyz[Z_AXIS]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAS_ABL
|
|
||||||
void print_xyz(const char* prefix, const char* suffix, const vector_3 &xyz) {
|
|
||||||
print_xyz(prefix, suffix, xyz.x, xyz.y, xyz.z);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -25,10 +25,6 @@
|
|||||||
|
|
||||||
#include "../inc/MarlinConfig.h"
|
#include "../inc/MarlinConfig.h"
|
||||||
|
|
||||||
#if HAS_ABL && ENABLED(DEBUG_LEVELING_FEATURE)
|
|
||||||
#include "../libs/vector_3.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define debug bit-masks
|
* Define debug bit-masks
|
||||||
*/
|
*/
|
||||||
@ -243,9 +239,6 @@ void serialprintPGM(const char* str);
|
|||||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||||
void print_xyz(const char* prefix, const char* suffix, const float x, const float y, const float z);
|
void print_xyz(const char* prefix, const char* suffix, const float x, const float y, const float z);
|
||||||
void print_xyz(const char* prefix, const char* suffix, const float xyz[]);
|
void print_xyz(const char* prefix, const char* suffix, const float xyz[]);
|
||||||
#if HAS_ABL
|
|
||||||
void print_xyz(const char* prefix, const char* suffix, const vector_3 &xyz);
|
|
||||||
#endif
|
|
||||||
#define DEBUG_POS(SUFFIX,VAR) do { print_xyz(PSTR(" " STRINGIFY(VAR) "="), PSTR(" : " SUFFIX "\n"), VAR); } while(0)
|
#define DEBUG_POS(SUFFIX,VAR) do { print_xyz(PSTR(" " STRINGIFY(VAR) "="), PSTR(" : " SUFFIX "\n"), VAR); } while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#include "../../../feature/bedlevel/bedlevel.h"
|
#include "../../../feature/bedlevel/bedlevel.h"
|
||||||
#include "../../../libs/least_squares_fit.h"
|
#include "../../../libs/least_squares_fit.h"
|
||||||
|
|
||||||
#include "../../../feature/Max7219_Debug_LEDs.h"
|
#include "../../../feature/Max7219_Debug_LEDs.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
@ -1496,6 +1496,8 @@
|
|||||||
|
|
||||||
#if HAS_BED_PROBE
|
#if HAS_BED_PROBE
|
||||||
|
|
||||||
|
#include "../../../libs/vector_3.h"
|
||||||
|
|
||||||
void unified_bed_leveling::tilt_mesh_based_on_probed_grid(const bool do_3_pt_leveling) {
|
void unified_bed_leveling::tilt_mesh_based_on_probed_grid(const bool do_3_pt_leveling) {
|
||||||
constexpr int16_t x_min = max(MIN_PROBE_X, MESH_MIN_X),
|
constexpr int16_t x_min = max(MIN_PROBE_X, MESH_MIN_X),
|
||||||
x_max = min(MAX_PROBE_X, MESH_MAX_X),
|
x_max = min(MAX_PROBE_X, MESH_MAX_X),
|
||||||
|
@ -44,6 +44,10 @@
|
|||||||
#include "../../../libs/least_squares_fit.h"
|
#include "../../../libs/least_squares_fit.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ABL_PLANAR
|
||||||
|
#include "../../../libs/vector_3.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ABL_GRID
|
#if ABL_GRID
|
||||||
#if ENABLED(PROBE_Y_FIRST)
|
#if ENABLED(PROBE_Y_FIRST)
|
||||||
#define PR_OUTER_VAR xCount
|
#define PR_OUTER_VAR xCount
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
#include "../inc/MarlinConfig.h"
|
#include "../inc/MarlinConfig.h"
|
||||||
|
|
||||||
#if HAS_ABL
|
#if ABL_PLANAR || ENABLED(AUTO_BED_LEVELING_UBL)
|
||||||
|
|
||||||
#include "vector_3.h"
|
#include "vector_3.h"
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#include "delta.h"
|
#include "delta.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_ABL
|
#if ABL_PLANAR
|
||||||
#include "../libs/vector_3.h"
|
#include "../libs/vector_3.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user