Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Unidentifiable Problem (http://www.chiefdelphi.com/forums/showthread.php?t=126313)

Vkamra20 12-02-2014 14:27

Unidentifiable Problem
 
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

Re: Unidentifiable Problem
 
What are the lights on your motor controllers doing when you are telling the robot to move?

Justin Montois 12-02-2014 14:35

Re: Unidentifiable Problem
 
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

Re: Unidentifiable Problem
 
Quote:

Originally Posted by notmattlythgoe (Post 1341881)
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

Re: Unidentifiable Problem
 
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

Re: Unidentifiable Problem
 
Quote:

Originally Posted by Justin Montois (Post 1341888)
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

Re: Unidentifiable Problem
 
Quote:

Originally Posted by Justin Montois (Post 1341891)
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

Re: Unidentifiable Problem
 
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

Re: Unidentifiable Problem
 
Yes

Justin Montois 12-02-2014 14:42

Re: Unidentifiable Problem
 
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

Re: Unidentifiable Problem
 
Thanks any way

indubitably 12-02-2014 14:57

Re: Unidentifiable Problem
 
Check to make sure your joysticks are recognized by the driver station and in the USB 1 position.

notmattlythgoe 12-02-2014 14:59

Re: Unidentifiable Problem
 
Could you post your teleop code for us?

Vkamra20 12-02-2014 16:04

Re: Unidentifiable Problem
 
Ill post an image

Vkamra20 12-02-2014 16:09

Re: Unidentifiable Problem
 
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() {

}
}


All times are GMT -5. The time now is 21:56.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi