View Single Post
  #33   Spotlight this post!  
Unread 14-02-2010, 10:59
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,808
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: solenoid with compressor vi

I can see it at home.

Your Begin.vi code looks good. The only danger is we can't see if you are opening multiple things like "USB 1" and "Drive Motors".
P.S. One mistake is you open two different devices on Relay 1.

Your basic Teleop.vi code looks okay too, except for what Joe commented on.

The Compressor code in Robot Main.vi doesn't actually do anything. It can be removed and you wouldn't notice any difference in operation.
I'd refrain from adding anything at all to Robot Main on general principle.

I'm with Joe on the duplicate drive code. Without seeing the full Begin.vi it looks like you probably have a conflict where sometimes your code wins control and sometimes the default drive code you left in the False case in the top part wins control.

If you're not using the default targeting code I'd recommend you just delete it from Teleop.
In Begin clean up opening the drive motors twice and any multiple Opens on joysticks you might have.

I'll see if I can post a cleaned up version of your code later after lunch and a trip to Lowe's for bumper plywood and aluminum tubing.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-02-2010 at 16:10.
Reply With Quote