Go to Post P.S. Who doesn't have CD as there homepage! (I mean, come on people. It's not like there's anything else to do on the net... :)) - Ryan M. [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-2013, 10:17
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Custom RobotBuilder Structure Classes

My team was hoping to use the RobotBuilder this year to manage the robot structure and easy some of the burden off our new programmers back (some of which barley know any Java).

However the problem is that we don't use the standard Joystick, we use an Xbox controller, and to make things easier we made an XboxJoystick class for use with it, and that lead to finding out there isn't a way to add custom classes into the RobotBuilder structure.

I would prefer to continue using our XboxJoystick class over referencing everything through the getRawAxis/Button methods of the Joystick class and use the robotbuilder as well.

If not then we can always just drop one or the other, no problem, but a solution would be favorable.
__________________
Programmer - A creature known for converting Caffeine into Code.
Studying Computer Science @ Louisiana Tech University
Associate Consultant @ Fenway Group

2012-13: 3946 - Head of Programming, Electrical and Web
2014 - 3468 - Programming Mentor
2015 - Present - Lurker

Last edited by gixxy : 30-01-2013 at 10:20.
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2013, 14:02
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Custom RobotBuilder Structure Classes

Assuming that your XboxJoystick extends Joystick, you can use RobotBuilder to generate the base code using Joysticks, then change the Joystick objects to XBoxJoystick, and remove the RobotBuilder comment blocks around the objects. This will cause RobotBuilder to no longer update those blocks.

What types of things do you use getrawbutton for, rather then the JoystickButton class?
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 11:40.

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