aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTero K <tero.k@granitedevices.fi>2015-10-28 21:52:18 +0200
committerTero K <tero.k@granitedevices.fi>2015-10-28 21:52:18 +0200
commit1b386308ae2523e792e467915f0a6857cf6db9b2 (patch)
tree96429a00c138f0f426feb91351b78b26b564de1d
parentcab877d673a59cd8610af34d8ac66a072d99293c (diff)
downloadSimpleMotionV2-1b386308ae2523e792e467915f0a6857cf6db9b2.tar.gz
SimpleMotionV2-1b386308ae2523e792e467915f0a6857cf6db9b2.zip
Added SMP_SYSTEM_CONTROL_RESET_FB_AND_SETPOINT
-rw-r--r--simplemotion_defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/simplemotion_defs.h b/simplemotion_defs.h
index 1c58367..6261824 100644
--- a/simplemotion_defs.h
+++ b/simplemotion_defs.h
@@ -342,6 +342,8 @@
deniedStats=STAT_FERROR_RECOVERY|STAT_PERMANENT_STOP|STAT_STO_ACTIVE|STAT_FAULTSTOP|STAT_HOMING;
*/
#define SMP_SYSTEM_CONTROL_MEASURE_MOTOR_RL 256
+ //resets position mode FB and setpoint values to 0, and also resets homing status. useful after using in vel or torq mode.
+ #define SMP_SYSTEM_CONTROL_RESET_FB_AND_SETPOINT 512
//follow error tolerance for position control:
#define SMP_POS_FERROR_TRIP 555