Our team is relatively new (this is our second year) and our programming team is even newer (first year, as our last team graduated). This is my first time using Java, and I keep getting an “Import section does not correspond to the specified codestyle used” error every time I attempt to import a Jaguar. I’ve been using
import edu.wpi.first.wpilibj.Jaguar;
as that is how I learned to import a Jaguar or other items at a programming workshop. All I’m trying to do is set up a Jaguar to drive and turn the robot, a seemingly simple task. If anyone can send a sample code or simple words of advice, my team and I would be seriously grateful. Thanks. :]
I’ll try to get you an answer from our programers tonight, and post it back here. I’m betting the workshop you’re talking about was the Splash in December, which our lead programmer was presenting for the Java session
If you or your team needs more help in Java, please feel free to get in touch with us - [email protected] will get you straight to the students who can help! You’re a little ways from the Cities, but if needed we might be able to set up something more in depth to help you out.
That is just a nit-pick warning, your code will function just fine with the warning. Netbeans would like all imports in alphabetical order. If you click on the warning, it will offer to organize the imports for you. You can also use Ctrl-Shift-I to organize the imports.