Hi guys, since my team is new with Java, we are having some problems with it, specially with constant commands, such as those in the chassis, or sensors. We’ll be really grateful if there is someone who can help us to detect the error, here you can find our code
So summarize the documentation (but you really should take a look at it): You need to modify the subsystems you want to have a default command by implemented the initDefaultCommand method like so:
public void initDefaultCommand() {
// Set the default command for a subsystem here.
setDefaultCommand(new MyDefaultCommand());
}
In the case of the Chassis, MyDefaultCommand looks like it would be replaced with a chasis_drive command.
Hi Eric,
While I may not be able to help you directly with your code, you may also want to look into using GitHub. I’m not sure if you are just having it on Google Drive for Chief Delphi, but if you are using it for general code storage, it is not reccomended. GitHub allows you to easily use version control and other cool stuff. Info on how to get started is located here:https://docs.wpilib.org/en/latest/docs/software/basic-programming/git-getting-started.html