Go to Post My robotics team is my love (my ex-wife told me so). - Koko Ed [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
  #3   Spotlight this post!  
Unread 03-12-2015, 07:27 PM
seshaw415 seshaw415 is offline
Registered User
AKA: Seiji Shaw
FRC #6000 (Firehawk Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Los Angeles
Posts: 8
seshaw415 is an unknown quantity at this point
Re: Unexpected Error when Running Robot Code

We actually figured out the problem with our IO class, which was something that could was not indicated in the stacktrace error. The static blocks were not running properly when we wanted to, so we made a quick fix...

Code:
private static DriveWheels wheelSet = new DriveWheels(0, 1, 2, 3);			  //Drivetrain Declarations
private static DrivePistons pistonSet = new DrivePistons(0, 1, 2, 3);		  
public static OctoDrive mainDrive = new OctoDrive(wheelSet, pistonSet)
        .octoShift(true)
	.invertMotor("rearRight", true)
        .invertMotor("frontRight", true) 
        .invertMotor("leftSide", true);
by method chaining!

Thanks for your help!
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:04 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