Go to Post Being involved with FIRST is a privilege, not a right. - Katie Reynolds [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Spotlight this post!  
Unread 20-05-2010, 13:59
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: button activation for motor

Assuming the answers to the first three questions I posed a couple of posts ago are all "yes":



Open the joystick and both motors in the Begin vi, giving them useful names with RefNum Set functions. Close them all in the Finish vi.

Put two Case blocks in the Teleop vi.

Wire the "Buttons" output of a Joystick Get to an Unbundle By Name and choose the two buttons you want to use.

Wire the state of the first joystick button to the selector terminal of the first Case block. Inside the "True" case, set both motors to run at the desired speed. Leave the "False" case empty.

Wire the state of the second joystick button to the selector terminal of the second Case block. Inside the "True" case, set both motors to stop. Leave the "False" case empty.



This will do exactly what you asked for, including the part about not being sure what happens when both buttons are pressed simultaneously.
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Joystick Button Motor!!! HELP!!! furiousgeorge Programming 3 07-02-2009 22:57
using a switch/button to turn on a motor smcmahon NI LabVIEW 3 26-01-2009 18:42
How do I Link a (group of) Joystick button(s) to a motor? CardcaptorRLH85 C/C++ 2 22-01-2009 23:23
Reset Button for Vex RC's irishninja FIRST Tech Challenge 5 18-06-2006 15:56
White Paper Discuss: Approx. Motor Spec for Taigene Motor Joe Johnson Motors 2 22-01-2005 16:36


All times are GMT -5. The time now is 23:54.

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