Go to Post there should be a continuous cascade of knowledge spilling over to the less experienced team members and and continuous upward flow of members gaining experience. - ebarker [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
  #1   Spotlight this post!  
Unread 14-02-2011, 12:20
zebrabots zebrabots is offline
Registered User
FRC #2909
 
Join Date: Jan 2009
Location: Rochester
Posts: 42
zebrabots is on a distinguished road
Code Bug Help

i have attached our teams code. we can not get it work with our victors.
here is the plan.
we need to:
run in tank mode on two joysticks.
one extra cim motor to run on the z axis of a third joystick
and a seperate motor to run on the x/y axis of the third joystick
servo to run off a button anywhere.

please help. it is crunch time and we can not get it to work.

when we upload this program, only one of the victors will run in the correct way. all the rest of them blink at us.
Attached Files
File Type: zip 2011 Robot Project.zip (191.6 KB, 2 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2011, 13:45
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,795
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: Code Bug Help

Code mostly looks okay.
Your extra motor control doesn't match your description though.
Do you see any error messages on the Driver Station Diagnostics tab?

Are your joysticks associated with the USB position that you expect? (Setup tab and click a button to see their associated USB flash on the Driver Station)

Are you using PWM cables to connect the Victors to the Digital Sidecar?
The PWM cables are hard to get seated correctly in the Victors. Try reseating the ones that continue to blink when enabled.
Check the cable orientation (Black wire to the inside of the Victor, outside of the Sidecar).

Motor 3 (PWM 5) will never do anything in your code. The case statement it's in will never be True and you call a CAN (not PWM) vi.

Autonomous Independent uses non-existent drive motors. And the DIO's are not Opened in Begin.vi (an initial Framework error, not yours).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-02-2011 at 13:50.
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


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

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