Go to Post Were going to nationals!?! Did anyone think of telling me this? - Beta Version [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2014, 19:41
MechaKnight996 MechaKnight996 is offline
Registered User
FRC #0996
 
Join Date: Jan 2014
Location: Casa Grande, AZ
Posts: 16
MechaKnight996 is an unknown quantity at this point
Exclamation Need help on program please

Okay, so i am nearing completion of my code but I need to make a motor spin when i press a button on the joystick and I'm not sure how. If anyone can help please post a response.
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2014, 19:46
ehochstein's Avatar
ehochstein ehochstein is offline
Coach, Volunteer & Mentor
AKA: Evan Hochstein
FTC #5943 (ESGM)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Bloomington, Minnesota
Posts: 933
ehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant future
Re: Need help on program please

Could you give us some more information? What language are you programming in? What motor controllers are you using? Can you post any portion of your code that you are having issues with?
__________________
Minnesota FIRST Senior Mentor | 2013-?

Stratasys Applications Engineering Technician | 2016-?

2009 Regional Win – 2470 @ 10k Lakes (Thanks 2826 and 1714)
2013 WFFA Recipient – 2470 @ 10K Lakes
2016 Ri3D: 'Snow Problem Reveal
2017 Ri3D: 'Snow Problem Reveal

The opinions expressed above are the personal opinions of the author and do not necessarily represent the views and opinions of any organization the author is affiliated with.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2014, 19:48
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Need help on program please

What language are you using?

In LV, you could do something like this:
Attached Thumbnails
Click image for larger version

Name:	button_bidirection.png
Views:	29
Size:	2.7 KB
ID:	16113  
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2014, 19:51
MechaKnight996 MechaKnight996 is offline
Registered User
FRC #0996
 
Join Date: Jan 2014
Location: Casa Grande, AZ
Posts: 16
MechaKnight996 is an unknown quantity at this point
Re: Need help on program please

Im using labview, and i need it to run from a joystick button.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-02-2014, 19:59
MechaKnight996 MechaKnight996 is offline
Registered User
FRC #0996
 
Join Date: Jan 2014
Location: Casa Grande, AZ
Posts: 16
MechaKnight996 is an unknown quantity at this point
Re: Need help on program please

Thank you for your help, it works now.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2014, 20:09
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Need help on program please

No problem!

There are a lot of ways to do it (that is only one, but it's probably the easiest), but however you do it, you can only have one Set Motor for each motor in teleop, otherwise they will 'fight' with each other.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #7   Spotlight this post!  
Unread 05-02-2014, 20:20
MechaKnight996 MechaKnight996 is offline
Registered User
FRC #0996
 
Join Date: Jan 2014
Location: Casa Grande, AZ
Posts: 16
MechaKnight996 is an unknown quantity at this point
Re: Need help on program please

how would i run 2 seprate motors?
Reply With Quote
  #8   Spotlight this post!  
Unread 05-02-2014, 20:23
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Need help on program please

You would write separate code for each motor.

If you have more than one 'Set Motor' for a single motor, then the value will be set to both values, and one of them will 'win'. Which one exactly is random.

You can still have multiple 'Set Motor' calls in Teleop, as long as there is only one per motor.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
Reply


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


All times are GMT -5. The time now is 22:00.

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