Go to Post FIRST kids never cease to amaze me. - Wayne C. [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
  #1   Spotlight this post!  
Unread 03-19-2013, 08:38 PM
4733 4733 is offline
Registered User
FRC #4733
 
Join Date: Feb 2013
Location: calgary
Posts: 4
4733 is an unknown quantity at this point
activate second-function motor with joystick

i'm trying to activate a motor on the push of a button from one of the joysticks.
i have absolutely no idea how to go about doing this in java.
how do you set a proper wpm?
how do u make it recognise when a button is pressed, then activate the PWM?

if anyone could help me that would be amazing.

here's what i tried already:

PWM test = new PWM(5); // in case pwm ( channel 5)
RobotDrive test2 = new RobotDrive(5,0,0,0);// in case robot drive (channel 5)

just some shots in the dark


what i tried for the button recognition is:

while (buttonNum == 5)// link to button no.5
{
test = true;
test2 = true;
}
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 08:12 AM.

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