|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#31
|
||||
|
||||
|
Re: How to code Macanum ddrive
The mentor suggested that we try this and we did try to get 1 victor at a time and it worked fine. Then we tried 2 at a time and it worked fine. Then i tried all together and one of it failed. So i guess it is a software problem, either that or that one is calibrated. But i doubt that it is hardware partly because of the fact that i tried again but this time i opened new project and tried writing the code and then deployed it and this time the front left one did not spin as seen in video but front right did. :S and the front left was moving for 5 seconds and then a jerk. So on and so forth. And secondly because i confirmed all the hardware things with our mentor who is electrical engineer (Mr.Thomas) and he said everything looks good except one might be calibrated. BUT if one was calibrated why did it not spin when i ran the new code, but front right one was spinning :S Something is very wrong somewhere in hardware or software :S
Last edited by whcirobotics : 23-12-2010 at 11:11. |
|
#32
|
||||
|
||||
|
Re: How to code Macanum ddrive
Quote:
|
|
#33
|
||||
|
||||
|
Re: How to code Macanum ddrive
One of them was spinning without any input from the joystick
|
|
#34
|
||||
|
||||
|
Re: How to code Macanum ddrive
Just to be perfectly clear: Did you do this for each of the 4 wheels individually, and each of them worked fine?
Quote:
- After you tested each wheel individually, you then tried running all 4 at the same time?Is everything above a correct description of what you did and what you observed? If not, please explain what you did. |
|
#35
|
||||
|
||||
|
Re: How to code Macanum ddrive
Yes that is correct
|
|
#36
|
||||
|
||||
|
Re: How to code Macanum ddrive
OK, two more questions:
1) How fast was the "failed" wheel spinning, when the command was zero? I don't need a number, just a description, like was it really fast or was it slow? |
|
#37
|
||||
|
||||
|
Re: How to code Macanum ddrive
The speed was about the same speed that the wheel is spinning in the video. The dashboard did NOT say anything about the pwm. No conflict or anything
|
|
#38
|
||||
|
||||
|
Re: How to code Macanum ddrive
I don't know what you mean by the above. The Dashboard always tells you something about the PWM command signal. It tells you what the signal level is... it tells you what your software is commanding. This piece of information is very useful to isolate the cause of the problem.
|
|
#39
|
||||
|
||||
|
Re: How to code Macanum ddrive
Yes i meant to say that it was normal it was not showing anything awkward
|
|
#40
|
||||
|
||||
|
Re: How to code Macanum ddrive
Quote:
|
|
#41
|
||||
|
||||
|
Re: How to code Macanum ddrive
I cant remember sorry but i can confirm what is happening accurately on January 3 when the school starts ?
|
|
#42
|
||||
|
||||
|
Re: How to code Macanum ddrive
Quote:
|
|
#43
|
|||||
|
|||||
|
Re: How to code Macanum ddrive
Offhand, based on the video evidence, I'd calibrate that Victor.
The status light did not go to Neutral that I could see. It seems to be controlled properly and reverses fine, but just doesn't appear to go to neutral. It's easy to tell though if you watch the Victor status lights. When your hand is off the joysticks (neutral) all the Victor status lights should be solid yellow/orange. If a light is not solid then the wheel should be turning. It's safest to calibrate them while using a brand new simple default framework program. That's Arcade drive and eliminates the possibility of any software errors you may have. However, make SURE the Drive motor Open in Begin.vi gets changed to "Victor." You can also change the Drive to 4 Motors, so you don't have to move PWM cables around. It'll also give you a chance to tell which PWMs may need reversing. When you get back into school before making any changes test:
Last edited by Mark McLeod : 24-12-2010 at 11:13. Reason: Mentioned the motors need to be checked for possible reversing |
|
#44
|
|||||
|
|||||
|
Re: How to code Macanum ddrive
In engineering, it's unusual to throw a lot of new things together, turn it on and expect it all to work together.
Normally, we'd test each sub-system independently, and work out the bugs in each, before trying them together. Errors in one sub-system can mask errors in another sub-system. Two wrongs can make an inadvertent right, then later on when an unnoticed error gets corrected, suddenly the software that was working so perfectly stops working. Then, when you begin to put sub-systems together, you want to develop a step-by-step test plan to verify that each piece is working properly. Inspecting the PWM orders coming from the software is one of those tests. |
|
#45
|
||||
|
||||
|
Re: How to code Macanum ddrive
Hi CD i tried the code it worked fine but it is rather .. complex to use both joysticks .. so i want it to turn when say button 2 is pressed.
I do realize that i cant just take the button and connect it directly to the rotation obviosaly. How do i do it? I am just asking for the sake of having ease of driving. Can someone provide an example? Like if button 2 is pressed then rotation is enabled? I attached a picuture for what i did but i highly doubt it is correct. Last edited by whcirobotics : 03-01-2011 at 17:23. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Macanum ability to climb ramps | BIGWILLI2081 | Rules/Strategy | 47 | 17-01-2010 00:20 |
| How do i Upload code? | seanl | Programming | 2 | 20-01-2009 10:46 |
| Inventor > G-Code - HOW!!?? | =Martin=Taylor= | Inventor | 4 | 17-07-2007 03:18 |
| How to type my code | jewbilee | Programming | 7 | 07-03-2007 21:51 |
| how to convert Easy C code into real code? | TheHolyLancer | Programming | 1 | 29-01-2006 09:09 |