View Single Post
  #3   Spotlight this post!  
Unread 12-03-2015, 19:27
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