From cfc6ec66763661a6257ac860be7d31cc5868a640 Mon Sep 17 00:00:00 2001 From: TeroK Date: Thu, 16 Jan 2014 15:49:12 -0800 Subject: fix control mode numbers CM_TORQUE etc --- simplemotion_defs.h | 6 +++--- simplemotion_private.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/simplemotion_defs.h b/simplemotion_defs.h index cc00b95..6abd046 100644 --- a/simplemotion_defs.h +++ b/simplemotion_defs.h @@ -230,9 +230,9 @@ //#define CFG_INPUT_FILTER_LEN 30 #define SMP_CONTROL_MODE 559 //control mode choices: - #define CM_TORQUE 2 - #define CM_VELOCITY 1 - #define CM_POSITION 0 + #define CM_TORQUE 3 + #define CM_VELOCITY 2 + #define CM_POSITION 1 #define SMP_INPUT_MULTIPLIER 560 #define SMP_INPUT_DIVIDER 561 #define SMP_INPUT_REFERENCE_MODE 562 diff --git a/simplemotion_private.h b/simplemotion_private.h index e78ac42..9cfdabc 100644 --- a/simplemotion_private.h +++ b/simplemotion_private.h @@ -19,7 +19,7 @@ #include "busdevice.h" #include -#define SM_VERSION 0x020000 +#define SM_VERSION 0x020001 //max number of simultaneously opened buses. change this and recompiple SMlib if //necessary (to increase channels or reduce to save memory) #define SM_MAX_BUSES 10 -- cgit v1.2.3