aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTero K <tero.k@granitedevices.fi>2014-11-16 18:26:37 +0200
committerTero K <tero.k@granitedevices.fi>2014-11-16 18:26:37 +0200
commitf75da935451f077d67aa4fa46f2f122ab06477b6 (patch)
tree1f5c20d572732a0289921d327ddf78c8bb399779
parent8692667825eef8d7702fe37772156772e2ad326a (diff)
downloadSimpleMotionV2-f75da935451f077d67aa4fa46f2f122ab06477b6.tar.gz
SimpleMotionV2-f75da935451f077d67aa4fa46f2f122ab06477b6.zip
Correct TRIG_ and MOTOR_ definitions.
-rw-r--r--simplemotion_defs.h29
1 files changed, 10 insertions, 19 deletions
diff --git a/simplemotion_defs.h b/simplemotion_defs.h
index 35bb945..9e585dd 100644
--- a/simplemotion_defs.h
+++ b/simplemotion_defs.h
@@ -206,21 +206,12 @@
#define SMP_VEL_FERROR_TRIP 556
#define SMP_POS_ERROR_RECOVERY_SPEED 557
#define SMP_MOTOR_MODE 558
- //choices:
- #define MOTOR_NONE 0
- //ac servo
- #define MOTOR_AC_VECTOR 1
- //trapezoidal ac
- #define MOTOR_BLDC 2
- //with regen resistor
- #define MOTOR_DC 3
- //without regen, parallel out
- #define MOTOR_PARALLEL_DC 4
- //open loop AC=stepper, no feedback
- #define MOTOR_STEPPER 5
- #define MOTOR_STEPPER_W_ENCODER 6
- #define MOTOR_STEPPER_SERVO 7
- #define _MOTOR_LAST 7
+#define MOTOR_NONE 0
+ //ac servo
+ #define MOTOR_DC 1
+ #define MOTOR_AC_VECTOR_2PHA 2 /*2 phase ac or bldc */
+ #define MOTOR_AC_VECTOR 3 /*3 phase ac or bldc */
+ #define _MOTOR_LAST 7
@@ -428,10 +419,10 @@
//choices:
#define TRIG_NONE 0
#define TRIG_INSTANT 1
- #define TRIG_TARGETCHANGE 2
- #define TRIG_TARGETCHANGE_POS 3
- #define TRIG_SERIALCMD 4
- #define TRIG_FAULT 6
+ #define TRIG_FAULT 2
+ #define TRIG_TARGETCHANGE 3
+ #define TRIG_TARGETCHANGE_POS 4
+ #define TRIG_SERIALCMD 5
#define SMP_CAPTURE_SAMPLERATE 5012
//rdonly