My sensor is behind the hotend and to the right of it. so I have configured it that way, but nevertheless, it throws me "Error: the activation of the probe z would result in a prohibited position and x: -39.000000, 17.00" when x is positive in my configuration.
In the code from "BedLeveling.cpp" line 516, I can see that "Printer :: currentPosition [X_AXIS]" is zero. therefore, "Printer :: currentPosition [X_AXIS] - ZPOffsetX" = -39
the only but wrong way I found to make it work was setting offset_x to 0, and probe_x to 0. Can you help me? below I leave a copy of my configuration.
Thx!!!
#define Z_PROBE_X_OFFSET 39
#define Z_PROBE_Y_OFFSET -21
#define Z_PROBE_WAIT_BEFORE_TEST 0
#define Z_PROBE_SPEED 3
#define Z_PROBE_XY_SPEED 100
#define Z_PROBE_SWITCHING_DISTANCE 1
#define Z_PROBE_REPETITIONS 1
#define Z_PROBE_USE_MEDIAN 0
#define Z_PROBE_HEIGHT 1.1
#define Z_PROBE_DELAY 0
#define Z_PROBE_START_SCRIPT "M340 P0 S700"
#define Z_PROBE_FINISHED_SCRIPT "M340 P0 S1500"
#define Z_PROBE_RUN_AFTER_EVERY_PROBE ""
#define Z_PROBE_REQUIRES_HEATING 0
#define Z_PROBE_MIN_TEMPERATURE 150
#define FEATURE_AUTOLEVEL 1
#define FEATURE_SOFTWARE_LEVELING 0
#define Z_PROBE_X1 45
#define Z_PROBE_Y1 15
#define Z_PROBE_X2 190
#define Z_PROBE_Y2 15
#define Z_PROBE_X3 45
#define Z_PROBE_Y3 200