View Single Post
  #4   Spotlight this post!  
Unread 02-02-2013, 13:27
BenGrapevine's Avatar
BenGrapevine BenGrapevine is offline
Head Programmer
AKA: Tony Simmering
FRC #2549 (Millerbots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Minneapolis, Minnesota
Posts: 46
BenGrapevine is an unknown quantity at this point
Re: Toggle Motor Using Button

Quote:
Originally Posted by Greg McKaskle View Post
The attached image shows some of the useful techniques that may help. You can even make some of these into subVIs for use elsewhere.

I'd encourage you to build this with the button, right click on the button and change the mechanical action to a "switch until released", and run it on the My Computer. You can place probes on any of the wires or add indicators to them to understand how the values change when you interact. Then, when you understand and trust it, move it to the robot simply by retargeting it or by copying the code or using the subVIs.

Ask questions if parts of it don't make sense or you want to compare it to your approach.

Greg McKaskle
I either copied it wrong or I guessed what was in the case and diagram disable structures incorrectly because after many a run through it seemed ok but when I actually tested it the motor didn't move. Here is what I made:



I noticed that the stop on the while loop was set to false so I switched that to true and nothing changed.

Please give it to me straight, doc.
__________________
Millerbots Team 2549
orange and blue
Reply With Quote