aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTero K <tero.k@granitedevices.fi>2015-04-29 13:30:16 +0300
committerTero K <tero.k@granitedevices.fi>2015-04-29 13:30:16 +0300
commit6c01ad9e90ac6352259f36531b645e657f932077 (patch)
treeda34e05d67663a1e2c41625df3facbcdeb375a63
parentc194c8b12961a9d492a0b3de89a9470695c8ad70 (diff)
downloadSimpleMotionV2-6c01ad9e90ac6352259f36531b645e657f932077.tar.gz
SimpleMotionV2-6c01ad9e90ac6352259f36531b645e657f932077.zip
Added SMP_SIMWHEEL_MODE parameter
-rw-r--r--simplemotion_defs.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/simplemotion_defs.h b/simplemotion_defs.h
index 3561b6f..eac01f8 100644
--- a/simplemotion_defs.h
+++ b/simplemotion_defs.h
@@ -571,6 +571,25 @@
#define SMP_DYNAMIC_BRAKING_SPEED 912
#define SMP_BRAKE_STOP_ENGAGE_DELAY SMP_MECH_BRAKE_ENGAGE_DELAY /* SMP_BRAKE_STOP_ENGAGE_DELAY is old name, kept for compatibility*/
+/*Racing simulator wheel torque control specific settings, currently IONI only. Values:
+ * 0 = disabled, standard drive operation
+ * nonzero = calculate value by:
+ * round(allowed_rotation_in_counts/100)*100 + mode
+ *
+ * where mode:
+ * 0=only rotation limit on
+ * 1=rotation limit and analog trimpot torque scaling on. Analog input 0-5V sets torque scale to 10-100%
+ *
+ * example 1: we want rotation limit of 8192 encoder counts (for each direction) and no scaling input, we
+ * use value 8200.
+ *
+ * example 2: we want rotation limit of 8192 encoder counts (for each direction) and torque
+ * command scaling input, we use value 8201
+ *
+ * Tip: use Granity Ctrl+P (Shortcut) dialog to set value:
+ * http://granitedevices.com/wiki/Reading_and_writing_an_arbitrary_parameter_with_Granity
+ */
+#define SMP_SIMWHEEL_MODE 920
//////////////////////////////////////////////////////////////////////////////////RUNTIME PARAMS 5000-9999