View Single Post
  #1   Spotlight this post!  
Unread 11-04-2009, 05:55
BurtGummer BurtGummer is offline
Electrical/Mechanical/Programming
FRC #3020
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Southern CA
Posts: 89
BurtGummer will become famous soon enoughBurtGummer will become famous soon enough
Momentary On/Off

Well, for the flywheel we are adding, I need to add some code to the robot. I have a window motor that will be running off of a victor. The WM will be attached to the gimbal which the flywheel is attached. So, I want the WM to turn on for a certain speed and for a preset time when a button is pressed in. When the button is unpressed, I want the WM to return to the home position, doing so by running the speed in a negative direction, for the same amount of time.

1. Press button, motor runs at speed V for T time and shuts off when T expires, even when button remains pressed.

2.When button is unpressed, returning from being pressed, motor runs at -V for T time and shuts off when T expires. This returns the motor to home position.

Unfortunately, I have not had much time to put towards learning programming in LabView, and I'm pretty much clueless on how to use it. Don't ask me how I have working code on our robot right now, because I have no idea, haha.

Thanks!

-Sean, 3020
__________________
I'm a mentor looking for a home in Southern California! I know Java, C++, electrical and mechanical.

Need Java or C++ help? Send me a PM!
Reply With Quote