If [XYZ]_HOME_POS and [XYZ]_MIN_POS aren't 0, these corrections are wrong. Use the same logic as in Marlin.pde:prepare_move: ie, clamp to [XYZ]_{MIN,MAX}_POS. While we're here, put this cut-and-paste code in a function clamp_to_software_endstops. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> |
||
---|---|---|
.. | ||
Gen7 | ||
hardware/tools/avr/etc | ||
Sanguino | ||
cardreader.cpp | ||
cardreader.h | ||
Configuration.h | ||
Configuration_adv.h | ||
COPYING | ||
create_speed_lookuptable.py | ||
createTemperatureLookup.py | ||
EEPROMwrite.h | ||
fastio.h | ||
language.h | ||
Makefile | ||
Marlin.h | ||
Marlin.pde | ||
MarlinSerial.cpp | ||
MarlinSerial.h | ||
motion_control.cpp | ||
motion_control.h | ||
pins.h | ||
planner.cpp | ||
planner.h | ||
Sd2Card.cpp | ||
Sd2Card.h | ||
Sd2PinMap.h | ||
SdBaseFile.cpp | ||
SdBaseFile.h | ||
SdFatConfig.h | ||
SdFatStructs.h | ||
SdFatUtil.cpp | ||
SdFatUtil.h | ||
SdFile.cpp | ||
SdFile.h | ||
SdInfo.h | ||
SdVolume.cpp | ||
SdVolume.h | ||
speed_lookuptable.h | ||
stepper.cpp | ||
stepper.h | ||
temperature.cpp | ||
temperature.h | ||
thermistortables.h | ||
ultralcd.h | ||
ultralcd.pde | ||
watchdog.h | ||
watchdog.pde | ||
wiring.h |