View Single Post
  #1   Spotlight this post!  
Unread 15-02-2010, 13:18
K Lenox's Avatar
K Lenox K Lenox is offline
I AM GOD IN GEARS OF WAR!!!!
FRC #2632 (Comets Unleashed)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Amherst
Posts: 26
K Lenox is an unknown quantity at this point
How do you wire a Kick motor in labview?

Hello I am Lead Programmer for Amherst Robotic Team#2632 Comets Unleashed.

I need help for the autonomous mode for labVIEW

My plan is to make the program do this
[ move forward, stop, kick the ball] Repeat 3 times.

working form the outside in:

ForLoop1(with loop count set at three), Watchdog open, RobotDriveRegerstryGet(Left and Right Motors)

[inside ForLoop1] WhileLoop, ForLoop2(loop count st at 1)
[inside WhileLoop] Watchdog Feed, Drive TankDrive(75%MaxSpeed), ElapsedTime(set to 3 Seconds)(connected to loop condition)
[inside ForLoop2] Watchdog Feed, Drive TankDrive(0%Max Speed),
All the Watchdog's are connected/All the Drive TankDrive's are connected with the Purple Line

So that is what I have. My question is now how do I connect the kick motor so it preforms the way I stated above. I have a program thats like this [MotorControlRegisteryGet(labled KickMotor), connected with a purple line to Motor SetSpeed(Constant at 1). Does that need to go there?

Also as a side Note I would like to connect a Watchdog Kill at the very End of everything, but It won't let me. It says this after I connect the purple line from the secoon Watchdog Feed to the Watchdog Kill. It connects to the ForLoop2 making a tunnel, then the ForLoop1 making a tunnel. Then there is a broken wire between the ForLoop1 tunnel and the Watchdog Kill. I hovered the mouse over it and it said this:

"Array element conflict
Thetype of source is 2-D array of typedef 'WatchdogDevRef.ctl'
cluster of 1 element
The type of the sink is typedef 'WatchdogDevRef.ctl'
clustter of 1 element"


If you could explain what that is and how I could connect it that would be great.

Thanks, any help appreciated.

Kyle Lenox
__________________
[font="Times New Roman"]
You never saw this message
You never read this
You will read the next available object within sight



Why are you still reading this???  Begone with you!!!
[SIGPIC]
Reply With Quote