matthewdenny
13-02-2014, 12:38
So we have wired the robot and tried to download the code and basically... nothing.
Here's the synopsis:
Electrical:
-4 Cims each is connected to a Talon
-The talons are wired correctly, with M+/M- going to the motors, and V+/V- going to the PD board.
-The PWM cable has the black plugged in to the 'B' side of the Talon, and the "-" side of the Digital side car.
Hardware:
-The DS is plugged into a 30 Amp breaker
-The 3 lights are on the DS
-The ribbon cable is connected to the DIO module on the Crio
-3 of the Talons blink between orange and red very fast, so fast it may actually be solid. The other one just blinks orange ~1hz
Software: About a week ago we ran this setup on the table before attaching it to the Robot. The motors worked at that time.
In an attempt to get it to move this is the code we deployed:
=========
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Talon;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboar d;
public class RobotTemplate extends IterativeRobot {
Talon Motor1 = new Talon(1); // Motors
Talon Motor2 = new Talon(2);
Talon Motor3 = new Talon(3);
Talon Motor4 = new Talon(4);
public void robotInit() {
}
public void autonomousPeriodic() {
}
public void teleopPeriodic() {
Motor1.set(1.0);
Motor2.set(1.0);
Motor3.set(1.0);
Motor4.set(1.0);
}
public void testPeriodic() {
}
public void disabledPeriodic(){
}
} // Closes Robot Template1
======
Any ideas?
We tried switching out DS, and ribbon cables.
Here's the synopsis:
Electrical:
-4 Cims each is connected to a Talon
-The talons are wired correctly, with M+/M- going to the motors, and V+/V- going to the PD board.
-The PWM cable has the black plugged in to the 'B' side of the Talon, and the "-" side of the Digital side car.
Hardware:
-The DS is plugged into a 30 Amp breaker
-The 3 lights are on the DS
-The ribbon cable is connected to the DIO module on the Crio
-3 of the Talons blink between orange and red very fast, so fast it may actually be solid. The other one just blinks orange ~1hz
Software: About a week ago we ran this setup on the table before attaching it to the Robot. The motors worked at that time.
In an attempt to get it to move this is the code we deployed:
=========
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Talon;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboar d;
public class RobotTemplate extends IterativeRobot {
Talon Motor1 = new Talon(1); // Motors
Talon Motor2 = new Talon(2);
Talon Motor3 = new Talon(3);
Talon Motor4 = new Talon(4);
public void robotInit() {
}
public void autonomousPeriodic() {
}
public void teleopPeriodic() {
Motor1.set(1.0);
Motor2.set(1.0);
Motor3.set(1.0);
Motor4.set(1.0);
}
public void testPeriodic() {
}
public void disabledPeriodic(){
}
} // Closes Robot Template1
======
Any ideas?
We tried switching out DS, and ribbon cables.