Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Custom RobotBuilder Structure Classes (http://www.chiefdelphi.com/forums/showthread.php?t=112354)

gixxy 30-01-2013 10:17

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.

Joe Ross 31-01-2013 14:02

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?


All times are GMT -5. The time now is 10:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi