Go to Post There is no such thing as "un-GP." - Tetraman [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2016, 22:08
caljames caljames is offline
Registered User
FRC #5914
 
Join Date: Jan 2016
Location: Caledonia, minnesota
Posts: 12
caljames is an unknown quantity at this point
Unable to get robot to move using sample program

Can we get a simple program to upload? We have try simple robot from the library. We have no compiling or driver station errors, but the robot doesnt move.
We have changed drives and motors and verified wiring many times.
Any Idea's?
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2016, 22:13
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Unable to get robot to move using sample program

Welcome to Chief Delphi!

Presumably you have the roboRIO powered up--what do the status LEDs indicate? The driver's station is running...do the Communications, Robot Code, and Joysticks lights all illuminate green? What code are you trying to run on the robot--what language, and what program? What is connected to the roboRIO--if speed controllers, are you sure they have power? Do the status lights on those tell you anything?

Sorry to ask so many questions--with the information you've given there's quite a few possible failure modes. Happy to help narrow this down with you.

Jacob
__________________
Aren't signatures a bit outdated?
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2016, 22:14
Christopher149 Christopher149 is offline
Registered User
FRC #0857 (Superior Roboworks) FTC 10723 (SnowBots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Houghton, MI
Posts: 1,103
Christopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond repute
Re: Unable to get robot to move using sample program

What does your code look like? My guess is you are using a base example that doesn't actually command anything to move.
__________________
2015-present: FTC 10723 mentor
2012-present: 857 mentor
2008-2011: 857 student

2015: Industrial Design, Excellence in Engineering, District Finalist, Archimedes Division (#6 alliance captain)
2014: Judges Award, District Engineering Inspiration, District Finalist, Galileo Division

Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2016, 11:19
caljames caljames is offline
Registered User
FRC #5914
 
Join Date: Jan 2016
Location: Caledonia, minnesota
Posts: 12
caljames is an unknown quantity at this point
Re: Unable to get robot to move using sample program

This is our java program:


package org.usfirst.frc.team5914.robot;

import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.smartdashboard.SendableChoos er;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboar d;

/**
* The VM is configured to automatically run this class, and to call the
* functions corresponding to each mode, as described in the IterativeRobot
* documentation. If you change the name of this class or the package after
* creating this project, you must also update the manifest file in the resource
* directory.
*/
public class Robot extends IterativeRobot {
final String defaultAuto = "Default";
final String customAuto = "My Auto";
String autoSelected;
SendableChooser chooser;

/**
* This function is run when the robot is first started up and should be
* used for any initialization code.
*/
Joystick stick;
Victor m1;
public void robotInit() {

stick = new Joystick(0);
m1 = new Victor(1);

chooser = new SendableChooser();
chooser.addDefault("Default Auto", defaultAuto);
chooser.addObject("My Auto", customAuto);
SmartDashboard.putData("Auto choices", chooser);
}

/**
* This autonomous (along with the chooser code above) shows how to select between different autonomous modes
* using the dashboard. The sendable chooser code works with the Java SmartDashboard. If you prefer the LabVIEW
* Dashboard, remove all of the chooser code and uncomment the getString line to get the auto name from the text box
* below the Gyro
*
* You can add additional auto modes by adding additional comparisons to the switch structure below with additional strings.
* If using the SendableChooser make sure to add them to the chooser code above as well.
*/
public void autonomousInit() {
autoSelected = (String) chooser.getSelected();
// autoSelected = SmartDashboard.getString("Auto Selector", defaultAuto);
System.out.println("Auto selected: " + autoSelected);
}

/**
* This function is called periodically during autonomous
*/
public void autonomousPeriodic() {
switch(autoSelected) {
case customAuto:
//Put custom auto code here
break;
case defaultAuto:
default:
//Put default auto code here
break;
}
}

/**
* This function is called periodically during operator control
*/
public void teleopPeriodic() {
//while (isOperatorControl() && isEnabled()) {
m1.set(stick.getY());
// }
}

/**
* This function is called periodically during test mode
*/
public void testPeriodic() {

}

}
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2016, 13:09
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Unable to get robot to move using sample program

Is the Victor in PWM slot 1 on the RIO? A common mistake is the use of PWM slot 0 as 1; that is a vestige in the minds of everyone who transitioned from programming the cRIO to the roboRIO. Check all wiring, particularly the PWM cables. We had a problem where the PWM cables' male ends were not long enough to fit into the Victors. Pulling on the ends slightly with a pair of pliers solved that problem. Please tell us what the Victor's light is like (solid or flashing) when enabling the robot.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #6   Spotlight this post!  
Unread 24-01-2016, 09:47
caljames caljames is offline
Registered User
FRC #5914
 
Join Date: Jan 2016
Location: Caledonia, minnesota
Posts: 12
caljames is an unknown quantity at this point
Re: Unable to get robot to move using sample program

We got it, thanks for all of your assistance! Greatly appreciated!!!!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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