Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Holonomic Drive with one joystick (http://www.chiefdelphi.com/forums/showthread.php?t=83182)

brianelite 20-02-2010 14:37

Holonomic Drive with one joystick
 
Has anyone here implemented Holonomic Drive with one Joystick here?

We tried HolonomicDrive(stick->GetMagnitude(),stick->GetDirectionRadians(), 0);
(also with degrees)

and didn't get a drivable robot... inverting the motors didn't help either...

We eventually got an Arcade Drive equivalent using the holonomic drive function with:
HolonomicDrive(-stick->GetGetX(),0, stick->GetGetY());

...

How are you implementing the Holonomic Drive with one joystick? Help is very appreciated!

qwertyuiop[]\ 20-02-2010 16:55

Re: Holonomic Drive with one joystick
 
3 axis joy stick (ie side to side, front to back, and twist). if u dont have a 3 axis joystick then u cannot use only one joystick. you must use two joysticks and have one of the axes on the second be twist.
3 axis joystick: http://www.logitech.com/index.cfm/ga...s/291&cl=us,en

brianelite 20-02-2010 19:41

Re: Holonomic Drive with one joystick
 
we have that joystiq: can you please give us the line of code to make that joystick work with holonomicdrive?

mikets 22-02-2010 18:07

Re: Holonomic Drive with one joystick
 
HolonomicDrive(joystick->GetMagnitude(), joystick->GetDirectionRadians(), joystick->GetZ());

Be careful on the GetZ parameter to make sure that's the correct axis you want for the "twist". On my Microsoft SideWinder joystick, the "Twist" is Z. It may be different on your joystick.


All times are GMT -5. The time now is 13:37.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi