The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
ForceFeedback effect.direction=0xC000 [SOLVED] - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: ForceFeedback effect.direction=0xC000 [SOLVED] (/showthread.php?tid=1414)



ForceFeedback effect.direction=0xC000 [SOLVED] - buzle - 12-23-2010

Hi,

first let me thank the developers and contributors for their efforts; VDrift is a really nice game and quite a joy to drive.

I have a Guillemot FF Wheel, which uses iforce module. I had some trouble setting up the wheel with vdrift (svn 2996). It didn't seem to work at all, although it has been reported in the console that the force feedback has been initialized. So I looked at the code and by some experimenting I found that if I uncomment the line:

Code:
effect.direction=0xC000;

and remove the default:

Code:
effect.direction=0;

the FF starts working. I looked at the kernel headers, which have the following to say about the ff_effect struct:

Code:
* Direction of the effect is encoded as follows:
*    0 deg -> 0x0000 (down)
*    90 deg -> 0x4000 (left)
*    180 deg -> 0x8000 (up)
*    270 deg -> 0xC000 (right)

I only guess there are some wheels that require this to be set to 0x0000 to work properly and some others need different values. Any comments on what was the idea behind this?

Cheers,
Marko


- thelusiv - 12-24-2010

Interesting. Looking through the SVN logs, I found that this change was made in r2387:
http://svn.vdrift.net/viewvc.cgi?view=rev&root=VDrift&revision=2387

Joe, any comments on that?

buzle, thanks for looking into this. It would be really helpful to others if you posted some information about how you got your Guillemot wheel working on Linux on our wiki. It would go here:
http://wiki.vdrift.net/?title=Guillemot_FF_support&action=edit

You could use the Logitech G25 page as an example to work from:
http://wiki.vdrift.net/Logitech_G25_support

I haven't any experience with iforce, so what does the effect direction mean? For steering wheels, this force is not really applied in a certain direction, but around an axis.


- joevenzon - 12-24-2010

I probably put that there when I was playing with FF with my wheel. If I recall, it didn't have any effect at all for me.


- buzle - 12-27-2010

If there is no harm, perhaps better set it to 0xC000, it doesn't work at all with 0 here. Other than that, it works out of the box on Ubuntu 10.10, only /dev/input write permission setting is needed.

I'll be glad to post the relevant info on the wiki. Just let me know when the patch is in, so I can refer to the corrent svn revision.


- buzle - 12-27-2010

I did a page at, there is stil SVN rev missing...

http://wiki.vdrift.net/IForce_FF_Support


- thelusiv - 12-27-2010

Fixed, r3012. Smile Thanks!


- thelusiv - 01-04-2011

Buzle, thanks for your help with the wiki and for discovering this problem. Closing this thread now.