![]() |
Code Not Uploading to Bot
I'm a new programmer for my team and am having trouble uploading code to the bot. The output of the program is:
Code:
run:Here's the code for the main class: Code:
package org.usfirst.frc.team2022.robot; |
Re: Code Not Uploading to Bot
What's in TankDriveSubsystem.java, particularly line 21?
Is it (wild stab in the dark) trying to schedule its autonomous actions? |
Re: Code Not Uploading to Bot
It's actually the constructor of the class. Here's the code:
Code:
package org.usfirst.frc.team2022.robot.subsystems; |
Re: Code Not Uploading to Bot
Looking at our code for last year, we declared our subsystems as public static (though not final), then initialized them (set them = new Subsystem()) in robotInit() rather than the declaration line. Your usage appears to me to be correct, but I see that we didn't do it that way; there may be a good reason. Perhaps static initializers don't work correctly on subsystems?
|
Re: Code Not Uploading to Bot
This particular error is happening at the instantiation of the parent of TankDriveSubsystem.
Since the declaration for TankDriveSubsystem is the very first static declaration of your main class, I suspect it has little to do with your code and more to do with your environment. I don't know FRC code specifically, but I'd start by figuring out what extends HLUsageReporting and figure out what's missing from your runtime classpath from there. From the robot, verify that the jars on the classpath actually exist. From Eclipse verify that everything on that classpath is correct (nothing's missing). I don't know the WPILib toolchain, but you may also have the wrong parameters in your build. |
| All times are GMT -5. The time now is 10:21. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi