Go to Post I quickly realized that, "hey, I'm looking at a wonderful piece of technology that defies gravity" and I calmed down quite a bit. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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
  #7   Spotlight this post!  
Unread 16-02-2012, 22:48
Gizmo4 Gizmo4 is offline
Registered User
FRC #9999
Team Role: Student
 
Join Date: Feb 2012
Rookie Year: 2012
Location: NJ
Posts: 13
Gizmo4 is an unknown quantity at this point
Re: Help with Victor & Shooter

Quote:
Originally Posted by compboy07 View Post
OK, so for simple working code, you'll want something like this in your main loop (having initialized the respective joystick and victors, of course).

lazySusanVictor.set(yourJoystick.getX());
if (yourJoystick.getRawButton(buttonTriggerNumber)) shooterVictor.set(1);
else shooterVictor.set(0);
Thank you, but What do you mean by 'shooterVictor'? The shooter mechanism will be using a Banebots motor. We have one victor we will be using- which would be the lazySusanVictor -to turn it left and right. As a rookie, Not sure how this motor would be added or implemented into the code.
Thanks.
And thanks DominickC-not the answer I was hoping for, but thanks for the answer all the same.

Last edited by Gizmo4 : 16-02-2012 at 23:20.
Reply With Quote
 


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 13:07.

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