Log in

View Full Version : Unidentifiable Problem


Vkamra20
12-02-2014, 14:27
Hey Everyone

Our Robot is having a serious problem, everything on Drivers Station is green but the robot is not moving. Sometimes when we enable "Autonomous" the wheels start to moves. I feel it might have something to do with the Crio, because when we Re-image it works and then stops working. Any advice or solutions would help :)

Thanks

notmattlythgoe
12-02-2014, 14:29
What are the lights on your motor controllers doing when you are telling the robot to move?

Justin Montois
12-02-2014, 14:35
This is NOT my area of expertise at all, but if you could post your code or at least post what language you're writing your code in so you have the greatest chance of someone helping you out.

The more information the better.

Vkamra20
12-02-2014, 14:35
What are the lights on your motor controllers doing when you are telling the robot to move?
The lights are blinking orange

Justin Montois
12-02-2014, 14:37
Blinking orange means you're speed controllers are not getting a PWM signal. Check your connections between the Speed Controller and the Digital Sidecar and the connections between the Digital Sidecar and the Crio

Vkamra20
12-02-2014, 14:37
This is NOT my area of expertise at all, but if you could post your code or at least post what language you're writing your code in so you have the greatest chance of someone helping you out.

The more information the better.
We're programming in Netbeans with Java, and we're currently using a basic arcade drive program.

Vkamra20
12-02-2014, 14:38
Blinking orange means you're speed controllers are not getting a PWM signal. Check your connections between the Speed Controller and the Digital Sidecar and the connections between the Digital Sidecar and the Crio
But when we enable autonomous the wheels are moving

Justin Montois
12-02-2014, 14:39
When you enable Autonomous I can assume at that point the orange lights on your speed controller are no longer blinking?

Vkamra20
12-02-2014, 14:40
Yes

Justin Montois
12-02-2014, 14:42
Seems to me that something in your drive code isn't working quite right. I'm sure others will have ideas as well, posting some of your code might help.

Sorry I couldn't be of more assistance.

Vkamra20
12-02-2014, 14:49
Thanks any way

indubitably
12-02-2014, 14:57
Check to make sure your joysticks are recognized by the driver station and in the USB 1 position.

notmattlythgoe
12-02-2014, 14:59
Could you post your teleop code for us?

Vkamra20
12-02-2014, 16:04
Ill post an image

Vkamra20
12-02-2014, 16:09
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;




public class RobotTemplate extends SimpleRobot {
RobotDrive myDrive=new RobotDrive(1,2);
Joystick driveStick=new Joystick(1);

public void autonomous() {

}



public void operatorControl() {
while(isAutonomous()&& isEnabled()){
myDrive.arcadeDrive(driveStick);
}


}



public void test() {

}
}

Christopher149
12-02-2014, 16:17
Glancing at your code snippet, should not it be:

while(!isAutonomous()&& isEnabled()){
Note the !

cgmv123
12-02-2014, 16:22
Glancing at your code snippet, should not it be:

while(!isAutonomous()&& isEnabled()){
Note the !

Or,
while(isOperatorControl()&&isEnabled(){