aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--force-effects.txt68
1 files changed, 56 insertions, 12 deletions
diff --git a/force-effects.txt b/force-effects.txt
index 47d5b35..5850dc8 100644
--- a/force-effects.txt
+++ b/force-effects.txt
@@ -2,6 +2,10 @@ Here I will gather all info I can find out about the different force effects and
their USB commands. All values seem to be little-endian.
Also, general note, it seems like some effects are affected by the direction of
the force, denoted by ***
+
+All values are examples of actual commands that I captured on the USB interface,
+not the only ones available.
+
GENERAL:
Playing:
@@ -46,6 +50,7 @@ FF_CONSTANT:
Modifying: (It may be possible to modify the effects all at once, not sure)
+ (In any case, so far I only investigated the constant modifiers)
Direction: n/a
Constant force:
@@ -89,7 +94,7 @@ FF_RAMP:
60 00 - standard header
01 - ID
6b - new ramp effect
- f6 7f - ? *** (these two have something in common but no idea what yet)
+ f6 7f - ? *** (these two have something in common but no idea what exactly yet)
fe ff - ?
00 00
f7 17 - time?
@@ -116,8 +121,12 @@ FF_SPRING:
fc 7f - negative coefficient (left?)
fe ff - deadband (left?) (deadband + offset) (fe ff means no deadband)
fe ff - deadband (right?) (deadband + offset)
- a6 6a a6 6a fe ff fe ff fe ff fe ff df 58 a6 6a 06 4f f7 17
- 00 00 - some weird hard-coded values to do with springs?
+ a6 6a a6 6a fe ff fe ff fe ff fe ff df 58 a6 6a 06- some weird hard-coded
+ values to do with springs?
+
+ 4f
+ f7 17 - duration
+ 00 00
00 00 - offset
00 ff ff - end of init
00 00 00 00 00 00 00 00 00
@@ -132,22 +141,57 @@ FF_DAMPER + FF_FRICTION + FF_INERTIA:
fc 7f - negative coefficient (left?)
fe ff - deadband (left?) (deadband + offset) (fe ff means no deadband)
fe ff - deadband (right?) (deadband + offset)
- fc 7f fc 7f fe ff fe ff fe ff fe ff fc 7f fc 7f 07 4f f7 17
- 00 00 - some weird hard-coded values to do with friction?
+ fc 7f fc 7f fe ff fe ff fe ff fe ff fc 7f fc 7f 07 - some weird hard-coded
+ values to do with friction?
+ 4f
+ f7 17 - duration
+ 00 00
00 00 - offset
- 00 ff ff - end of init 00 00 00 00 00 00 00 00 00
+ 00 ff ff - end of init
+ 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
FF_PERIODIC:
-FF_SQUARE:
60 00 - standard header
01 - ID
6b - new periodic effect
- 00 00 - direction
- fe ff - ?
+ 00 00 - magnitude ***
+ fe ff - phase (left/right)
+ 00 00 - offset of effect (forward/backward)
+ e8 03 - period
+ 00 80
+ 00 00 - attack_length?
+ 00 00 - attack_level? ***
+ 00 00 - fade_length?
+ 00 00 - fade_level? ***
+ 01 - type of periodic ( square 01,
+ sine 03,
+ triangle 02,
+ sawtooth down 05,
+ sawtooth up 04 )
+ 4f
+ f7 17 - duration
+ 00 00
00 00 - offset
- e8 03 00 80 00 00
- 00 00 00 00 00 00 01 4f f7 17 00 00 00 00 00 ff
- ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+ 00 ff ff - end of init
+ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+FF_AUTOCENTER:
+ 60 08 - header plus settings?
+ 03 - set autocenter force
+ 8f 02 - force (between ff ff and 00 00)
+ 00 00 00 00 00 00 00 00 00 00 00
+ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+
+
+Rotation angle:
+ 60 08 - header plus settings?
+ 11 - set rotation angle
+ 55 d5 - angle (between ff ff and 7b 09, one degree is roughly 3c)
+ 00 00 00 00 00 00 00 00 00 00 00
+ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00