View Single Post
  #1   Spotlight this post!  
Unread 23-10-2014, 18:20
Team 4939 Team 4939 is offline
Registered User
AKA: Anshul Shah
FRC #4939 (All spark 9)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Brampton
Posts: 52
Team 4939 is an unknown quantity at this point
Problem with Robot Status Light

From all of us here at Team 4939 we hope everybody had a wonderful summer vacation.

Here in the GTA there is a off season event(fall fiesta) and for some reason our Robot Status light (the big bulb that blinks yellow) has stopped blinked. We have looked into the programming aspect, the wiring aspect and everything else we can think. When we turn on the robot and everything gets power except for the Robot Status light. We have tried multiple things but at this point have no clue what is going. When we turn the driver station on all the lights are green but when we actually try to control the robot nothing happens (there is also no voltage spike which I found odd).

Here is the code:
Code:
package edu.wpi.first.wpilibj.templates;
 
import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Timer;
 
public class RobotTemplate extends SimpleRobot {
    
    RobotDrive chassis = new RobotDrive(1,2);
    Joystick mainStick = new Joystick(1);
    Jaguar jaguar = new Jaguar(3);
    Jaguar jag = new Jaguar(4);

    
    public void autonomous(){ 
        chassis.setSafetyEnabled(false);
        chassis.drive (-0.5, 0.08);
        Timer.delay(2.0);
        chassis.drive (0, 0.0);
    }
    
    public void operatorControl() {
        chassis.setSafetyEnabled(true);
        while (isOperatorControl() && isEnabled()) {
            double speed;
            double rot;
            speed = mainStick.getY();
            rot = -mainStick.getX();
            chassis.arcadeDrive (speed, rot);
            if (mainStick.getRawButton(3)){
                jag.set(1);
                jaguar.set(-1);
            }
            else if (mainStick.getRawButton(4)){
                jaguar.set(-1);
                jag.set(1);
            }
            else{
                jaguar.set(0);
                jag.set(0);
            }
    }
    }
    
    public void test() {
       
    }
}
The off season event is in a little over a week and we are hoping to have this fixed by tomorrow afternoon because we are a rookie team and we are still looking into getting some practise.

Our team will be meeting from 2:30 - 4:30 tomorrow evening and we will stay online so that we can go back and worth with anybody who can suggest anything.

If you have any ideas or questions before tomorrow and will happily answer them.

Thank you in Advance.