Go to Post In no way is my team a powerhouse but we're striving to compete among the top competitors and in my opinion that's a start. - rcmolloy [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2010, 03:11
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Java in RobotC for FTC TeleOp

The switch statement is and has always has been a C syntax... Java followed C and has a lot of C syntax incorporated in it. RobotC is just an IDE and user library. It also uses a small executive in the processor.
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2010, 11:21
lmnotran lmnotran is offline
Registered User
AKA: Mason Tran
FRC #2169 (KING TeC)
Team Role: Programmer
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Savage, MN
Posts: 6
lmnotran is an unknown quantity at this point
Re: Java in RobotC for FTC TeleOp

Quote:
Originally Posted by Mike Betts View Post
The switch statement is and has always has been a C syntax... Java followed C and has a lot of C syntax incorporated in it. RobotC is just an IDE and user library. It also uses a small executive in the processor.
Thanks for clarifying. But, that wasn't what I was needed help on. I wanted to know if it was possible for me to use the switch statement instead of using a bunch of IF statements for programming the buttons on the game controller for the TeleOP period.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2010, 19:03
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Java in RobotC for FTC TeleOp

Quote:
Originally Posted by lmnotran View Post
Thanks for clarifying. But, that wasn't what I was needed help on. I wanted to know if it was possible for me to use the switch statement instead of using a bunch of IF statements for programming the buttons on the game controller for the TeleOP period.
Possible? Yes.

Probable? No... What variable are you gonna switch on?
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FTC]: Java in RobotC for TeleOp lmnotran FIRST Tech Challenge 2 01-02-2010 00:14
[FTC]: Buttons RobotC JohnFogarty FIRST Tech Challenge 2 25-11-2009 19:13
[FTC]: Programming Clarification [RobotC] basicxman FIRST Tech Challenge 3 11-02-2009 20:21
[FTC]: [FTC]: RobotC Template Problem (causing an FMS issue) and Potential Servo Prob PackersFan FIRST Tech Challenge 11 26-01-2009 21:25
[FTC]: RobotC Template gdo FIRST Tech Challenge 14 10-11-2008 06:26


All times are GMT -5. The time now is 09:41.

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