From: Rodrigo D. <cu...@uo...> - 2002-01-20 21:55:22
|
Johann Deneux wrote: >On Sun, 20 Jan 2002, Rodrigo Damazio wrote: > >>Johann Deneux wrote: >> >>>I checked it. It's not the iforce, protocol, what would have been >>>surprising anyway. The bit used for the deadman sensor just happend to= be >>>the same bit as I-Force uses, but that was just luck. >>> >> I supposed it is the standard PID protocol then?? I realized it= =20 >> > >Probably. > What else do we need to check to see if it is?? (I have a lot of=20 free time these days, I can do it) >>should be something other than I-Force, because I tried adding the=20 >>joystick to iforce-main.c and iforce-usb.c and it just didn't work. The= n=20 >>I suppose we must implement a non-I-force PID driver, am I correct?? If= =20 >>so I suggest we use the same base API and ioctls that are being used fo= r=20 >>I-Force, just sending different data to the device...perhaps (to be=20 >>better organized), take the common part of the current I-force code and= =20 >>put it as generic force feedback code, then add I-force and standard PI= D=20 >>as sub-options... >> > >Vojtech and I designed the ff API so that it's not I-Force specific. We >may need to add/change some parts of the API, but what the ff_effect >struct is supposed to be generic enough to be used with other kinds of >devices. Have a look at input.h. Nothing in it should be I-Force specifi= c. >Now, it's true there are parts that could be re-used or adapted from >iforce.c (the parameter blocks allocation and handling, for example). > Yes, I had realized that - everything is quite generic... I'll try to create a ff_pid.c file based on iforce*.c, and make=20 it send the data according to the PID specs and the dumps I have...or=20 have any of you already started that? Btw, how do custom effects work?? Rodrigo =20 --=20 ******************************* * Rodrigo Damazio * * *************************** * * cu...@uo... * * rod...@po... * * ICQ: #3560450 * * http://www.vros.com/cuddly/ * * *************************** * * Engenharia da Computa=E7=E3o * * Escola Polit=E9cnica * * USP - S=E3o Paulo * ******************************* |