|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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? |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
||||
|
||||
|
Re: Holonomic Code Problems
Just to clarify, by holomic, do you mean omniwheels, or mecanum?
|
|
#4
|
|||||
|
|||||
|
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. |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
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 |
|
#7
|
||||
|
||||
|
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:
Quote:
Quote:
Quote:
|
|
#8
|
|||
|
|||
|
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".
|
|
#9
|
||||
|
||||
|
Re: Holonomic Code Problems
Quote:
|
|
#10
|
||||
|
||||
|
Re: Holonomic Code Problems
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
). The problem is that it keeps on running even with the joystick not being moved. |
|
#11
|
|||
|
|||
|
Re: Holonomic Code Problems
have you tried running the code without the joysticks plugged in?
|
|
#12
|
||||
|
||||
|
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.
|
|
#13
|
||||
|
||||
|
Re: Holonomic Code Problems
Quote:
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. Last edited by Ether : 17-01-2011 at 18:51. |
|
#14
|
|||
|
|||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|