diff options
| author | Tero Kontkanen <tero.kontkanen@granitedevices.fi> | 2017-09-26 23:20:53 +0300 |
|---|---|---|
| committer | Tero Kontkanen <tero.kontkanen@granitedevices.fi> | 2017-09-26 23:20:53 +0300 |
| commit | 9933c47dfd322bccef5570475a31d8dd64107738 (patch) | |
| tree | 0051aa3c126014d76f25bd03379003572a03ebe8 | |
| parent | f915a61398fe08b562b129e2104e894032efff0c (diff) | |
| download | SimpleMotionV2-9933c47dfd322bccef5570475a31d8dd64107738.tar.gz SimpleMotionV2-9933c47dfd322bccef5570475a31d8dd64107738.zip | |
Added HOMING_USE_ABSOLUTE_FBD_METHOD option in homing config bits
| -rw-r--r-- | simplemotion_defs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simplemotion_defs.h b/simplemotion_defs.h index b18cba7..a65f380 100644 --- a/simplemotion_defs.h +++ b/simplemotion_defs.h @@ -743,7 +743,8 @@ #define HOMING_HOME_AT_POWER_ON BV(5)
#define HOMING_FULL_SPEED_OFFSET_MOVE BV(6)
#define HOMING_ENABLED BV(7) /*if 0, homing cant be started */
- #define _HOMING_CFG_MAX_VALUE 0x00ff
+ #define HOMING_USE_ABSOLUTE_FBD_METHOD BV(8) /*if 1, init home position directly from absolute encoder reading without performing any motion. setpoint and posfb will be set to absolute position, and optional soft ravel limits will activate too. if 1, bits 0-4 will have no effect. */
+ #define _HOMING_CFG_MAX_VALUE 0x01ff
//defines from which direction & distance home switch will be approached for second time (eliminate switch hysteresis)
#define SMP_TRAJ_PLANNER_HOMING_SECOND_APPROACH_DISTANCE 807
|
