Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Holonomic Code Problems (http://www.chiefdelphi.com/forums/showthread.php?t=89361)

mattiej 17-01-2011 14:16

Holonomic Code Problems
 
After searching through all the old threads, I was still unable to find the solution to my problem.

My team has decided to use holonomic for this drive system. I found the default way to program it, and by looking through other threads how to connect it (I use LabVIEW). But whenever I run it, the wheels automatically start turning. My code looks something like this:

http://www.chiefdelphi.com/forums/at...9&d=1287950414

Help?

Racer26 17-01-2011 15:09

Re: Holonomic Code Problems
 
You haven't told us anything about the setup on your robot. Please describe what wheels you have on your robot, how they're connected to some motors, and how the motors are connected to the control system. There's literally thousands of places that a mistake could have been made, and additionally, the term "Holonomic" is less-than-fully understood by the community as a whole, and different people will often take it to mean different things.

Grim Tuesday 17-01-2011 15:12

Re: Holonomic Code Problems
 
Just to clarify, by holomic, do you mean omniwheels, or mecanum?

Mark McLeod 17-01-2011 15:23

Re: Holonomic Code Problems
 
It can be due to a mis-calibrated joystick.
You can check your joystick on the PC by going to Control Panel -> Game Controllers to see what it thinks the joystick is doing.

It could be due to mis-calibrated speed controllers (less likely). You can test this by temporarily changing your code to use "0" constants to feed your Holonomic Drive function. (This will also tell you if it's your joystick input.)

If your wheels are still turning with constant zero's in place, then it's probably a wiring issue.

3p1c w1n 17-01-2011 15:43

Re: Holonomic Code Problems
 
That code is for use with a joystick that can rotate. The axis3, using a standard joystick, would be for the throttle control on the joystick. if you are using a non-rotating joystick and the throttle is not exactly centered, then the wheels would move.

3p1c w1n 17-01-2011 15:49

Re: Holonomic Code Problems
 
you could also assign the rotation to a 2nd joystick like we're using in our code as of now, since we're using standard joysticks.



Uploaded with ImageShack.us

mattiej 17-01-2011 16:18

Re: Holonomic Code Problems
 
[quote=1075guy;1002078]You haven't told us anything about the setup on your robot. [quote]

Sorry about that. Forgot to. Here is a picture of my setup:



Quote:

Originally Posted by Grim Tuesday (Post 1002081)
Just to clarify, by holomic, do you mean omniwheels, or mecanum?

Mecanum

Quote:

Originally Posted by Mark McLeod (Post 1002092)
It can be due to a mis-calibrated joystick.
You can check your joystick on the PC by going to Control Panel -> Game Controllers to see what it thinks the joystick is doing.

It could be due to mis-calibrated speed controllers (less likely). You can test this by temporarily changing your code to use "0" constants to feed your Holonomic Drive function. (This will also tell you if it's your joystick input.)

If your wheels are still turning with constant zero's in place, then it's probably a wiring issue.

This will be the next thing I will try to check. It's possible, but I tried adjusting the joysticks. Just as a question, what should I change if that is the problem?

Quote:

Originally Posted by 3p1c w1n (Post 1002114)
That code is for use with a joystick that can rotate. The axis3, using a standard joystick, would be for the throttle control on the joystick. if you are using a non-rotating joystick and the throttle is not exactly centered, then the wheels would move.

Quote:

Originally Posted by 3p1c w1n (Post 1002121)
you could also assign the rotation to a 2nd joystick like we're using in our code as of now, since we're using standard joysticks.



Uploaded with ImageShack.us

Sorry I wasn't excatly clear. I meant to say that I had changed it from that pic, and hooked it up like 3p1c w1n has. I put the second joystick's x axis to control the rotation.

Jogo 17-01-2011 16:52

Re: Holonomic Code Problems
 
From the picture, it looks like the wheels are mounted wrong...the top view should look like an "X" and not an "O".

Ether 17-01-2011 16:57

Re: Holonomic Code Problems
 
Quote:

Originally Posted by Jogo (Post 1002168)
From the picture, it looks like the wheels are mounted wrong...the top view should look like an "X" and not an "O".

Yup. You need to swap the left&right or front&rear wheels



mattiej 17-01-2011 17:06

Re: Holonomic Code Problems
 
Quote:

Originally Posted by Ether (Post 1002173)
Yup. You need to swap the left&right or front&rear wheels


When I looked up documentation on it, it said it can either look like a X or a diamond. But the problem is not the orientation of the wheels ( I will deal with that when it comes :P ). The problem is that it keeps on running even with the joystick not being moved.

3p1c w1n 17-01-2011 17:14

Re: Holonomic Code Problems
 
have you tried running the code without the joysticks plugged in?

vhcook 17-01-2011 17:28

Re: Holonomic Code Problems
 
If you run the code by pressing the run arrow rather than through a build/deploy, you can also click on the wires to probe what the values coming out of the joysticks are in real time. I'd recommend that as a debug measure.

Ether 17-01-2011 18:16

Re: Holonomic Code Problems
 
Quote:

Originally Posted by mattiej (Post 1002188)
When I looked up documentation on it, it said it can either look like a X or a diamond.

Yes it can look like either an X or a diamond: it should look like an X when viewed from above, and a diamond when viewed from below.

Yours looks like a diamond when viewed from above.

Would you please post a link to the above-mentioned documentation. I would like to read it and maybe contact the author.

Thanks.



chs938 31-01-2011 22:32

Re: Holonomic Code Problems
 
Check your USB hub and joysticks. We had a condition where you would enable the robot and it would start creeping on it's own. It was a new condition that occurred without new code or changes to the drive chassis. Ultimately we swapped out the hub and were back up and running.


All times are GMT -5. The time now is 21:12.

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