Go to Post Push the envelope a little, but not too much. There's a difference between being on the cutting edge and being on the bleeding edge. - cadandcookies [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #31   Spotlight this post!  
Unread 23-12-2010, 11:06
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
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
__________________
"A team back in training !"

Last edited by whcirobotics : 23-12-2010 at 11:11.
Reply With Quote
  #32   Spotlight this post!  
Unread 23-12-2010, 11:13
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How to code Macanum ddrive

Quote:
Originally Posted by whcirobotics View Post
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.
Describe in greater detail what you mean by "one of it failed". What exactly did you observe?


Reply With Quote
  #33   Spotlight this post!  
Unread 23-12-2010, 11:25
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
Re: How to code Macanum ddrive

One of them was spinning without any input from the joystick
__________________
"A team back in training !"
Reply With Quote
  #34   Spotlight this post!  
Unread 23-12-2010, 14:33
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How to code Macanum ddrive

Quote:
Originally Posted by whcirobotics View Post
we did try to get 1 victor at a time and it worked fine.
Just to be perfectly clear: Did you do this for each of the 4 wheels individually, and each of them worked fine?

Quote:
Then i tried all together and one of it failed.
Again, to be clear:
- After you tested each wheel individually, you then tried running all 4 at the same time?

- And when you did all 4 at the same time, with zero command, one of the wheels was spinning?

- And the wheel that was spinning had previously worked correctly when tested individually?
Is everything above a correct description of what you did and what you observed? If not, please explain what you did.



Reply With Quote
  #35   Spotlight this post!  
Unread 23-12-2010, 14:38
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
Re: How to code Macanum ddrive

Yes that is correct
__________________
"A team back in training !"
Reply With Quote
  #36   Spotlight this post!  
Unread 23-12-2010, 14:46
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How to code Macanum ddrive

Quote:
Originally Posted by whcirobotics View Post
Yes that is correct
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?

2) When the command was zero and the motor was spinning, what was your Dashboard saying about the PWM command signal being sent to that motor?

Reply With Quote
  #37   Spotlight this post!  
Unread 23-12-2010, 14:49
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
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
__________________
"A team back in training !"
Reply With Quote
  #38   Spotlight this post!  
Unread 23-12-2010, 16:06
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How to code Macanum ddrive

Quote:
Originally Posted by whcirobotics View Post
The dashboard did NOT say anything about the pwm.
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.


Reply With Quote
  #39   Spotlight this post!  
Unread 23-12-2010, 16:15
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
Re: How to code Macanum ddrive

Yes i meant to say that it was normal it was not showing anything awkward
__________________
"A team back in training !"
Reply With Quote
  #40   Spotlight this post!  
Unread 23-12-2010, 16:25
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How to code Macanum ddrive

Quote:
Originally Posted by whcirobotics View Post
Yes i meant to say that it was normal it was not showing anything awkward
I don't mean to belabor the point here, but does "normal" and "not awkward" mean it was reading zero? If you don't remember it's OK, I just need to know in order not to give you a misleading answer.



Reply With Quote
  #41   Spotlight this post!  
Unread 23-12-2010, 16:38
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
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 ?
__________________
"A team back in training !"
Reply With Quote
  #42   Spotlight this post!  
Unread 23-12-2010, 17:01
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How to code Macanum ddrive

Quote:
Originally Posted by whcirobotics View Post
I cant remember sorry but i can confirm what is happening accurately on January 3 when the school starts ?
Sure!

Reply With Quote
  #43   Spotlight this post!  
Unread 23-12-2010, 17:23
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,908
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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:
  • Neutral - all Victors = solid yellow/orange
  • Full Forward - all Victors = solid red or green
  • Full Reverse - all Victors = solid green or red
If any of these don't happen with the default Arcade drive, then the associated Victor needs calibration.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-12-2010 at 11:13. Reason: Mentioned the motors need to be checked for possible reversing
Reply With Quote
  #44   Spotlight this post!  
Unread 24-12-2010, 09:18
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,908
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #45   Spotlight this post!  
Unread 03-01-2011, 17:05
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
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.
Attached Files
File Type: doc picture of button.doc (84.0 KB, 28 views)
__________________
"A team back in training !"

Last edited by whcirobotics : 03-01-2011 at 17:23.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 15:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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