I'm the lead programmer for my team (this is our second year) and last year we used LabView, but I'm trying to get java ready for the build season. I wrote some code I thought should work, but it isn't. There are no compiling errors and when I tell it to deploy, the crio restarts like it should.
I want to know if something is wrong with my code, or if there must be something wrong with configuration somewhere (it will help to know which so I don't have to examine both possibilities).
This code should make the Jaguar in pwm 1 start going during autonomous(at least that is my intention)
Code:
//copyright shite
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Jaguar;
//the vm automatially runs this shizzy class
public class SimpleBob extends SimpleRobot {
Jaguar test = new Jaguar(1);
//called during autonomous
public void autonomous() {
test.set(0.75);
}
//called during operator control period of time
public void operatorControl() {
}
}
thanks for all help