Go to Post "If a student CAN do it, a student SHOULD do it." - Mr. Lim [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 04-03-2012, 17:06
frankthelyon frankthelyon is offline
Registered User
FRC #2557
 
Join Date: Jan 2012
Location: Tacoma
Posts: 23
frankthelyon is an unknown quantity at this point
Java Autonomous?

I'm new to FRC java, and I was wondering if this is the correct code for what I am trying to do. Here is what I want it to do:
1. Start up rollers
2. Wait a few seconds for motors to speed up
3. Fire solenoid
4. Turn off rollers, solenoid

Here is the code I have right now:
shooter1.set(-.5);
shooter2.set(-.75);
//wait for motors to warm up
Timer.delay(2);
//activate kicker solenoid
Kicker.set(true);
//wait 1 second
Timer.delay(1);
//turn off solenoid, shooter motors
Kicker.set(false);
shooter1.set(0);
shooter2.set(0);
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:49.

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