![]() |
steering through text file - 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: steering through text file (/showthread.php?tid=1580) |
steering through text file - sisso - 12-04-2011 Hey, I am working on a project in which I am getting directional coordinates in a text file. The coordinates are of my head movement. Now I want to steer a vehicle through my head movement. Means if I bent my head left/right then the car moves left/right. How could I do that with vdrift. Please tell me where I have to make changes in the source code, so that the car gets its direction from the text file?? I am using opencv to track head center coordinates in visual studio 2010. My project is working in windows only (some problem with camera capture in ubuntu). Can I edit the source code of vdrift in ubuntu and after building with that source code can I use it in windows with my project?? Please tell me asap....... - NaN - 12-04-2011 Hi sisso. I think the most simple way would be to modify CARCONTROLMAP_LOCAL: ![]() Or just CARCONTROLMAP_LOCAL: ![]() Btw you can build vdrift with vs2010. Checkout vdrift-win into vdrift/vdrift-win and run "vdrift-win\premake4 vs2010" to generate the solution. - sisso - 12-04-2011 Hi NaN, thanks for replying, I have downloaded project source from github.com but there is no project in it that could run and built in vs2010. There is a file named premake4.lua file in the main folder, is it the right file ? how could i make it built in vs2010 as a project(.lua is not supported format for vs2010 project). Also the folder vdrift contains only a subfolder named raw. - NaN - 12-05-2011 premake4.lua is a script to create project files. You need to download vdrift-win(windows dependencies) https://github.com/VDrift and place/extract it in the vdrift directory. Then from vdrift directory run the command vdrift-win\premake4 vs2010 to create the project files for vs2010. |