Go to Post What I’m trying to say is that you should not necessarily be looking to build the next “cool” thing, unless that’s your team’s goal and you’ve got the resources to finish it by ship date. - Bill Gold [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 18-02-2014, 08:35
DMike
 
Posts: n/a
Problem with Auto

Our auto program won't run correctly. We are simply trying to drive forward and fire a piston. once in a while it runs fine, but then the drive motors wont fire but the piston does. We are using the WPI mecanum auto VI in Lab view.
Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2014, 08:36
Nick Lawrence's Avatar
Nick Lawrence Nick Lawrence is offline
Commander Canada
FRC #3940 (CyberTooth, AndyMark)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2005
Location: Kokomo, IN
Posts: 713
Nick Lawrence has a reputation beyond reputeNick Lawrence has a reputation beyond reputeNick Lawrence has a reputation beyond reputeNick Lawrence has a reputation beyond reputeNick Lawrence has a reputation beyond reputeNick Lawrence has a reputation beyond reputeNick Lawrence has a reputation beyond reputeNick Lawrence has a reputation beyond reputeNick Lawrence has a reputation beyond reputeNick Lawrence has a reputation beyond reputeNick Lawrence has a reputation beyond repute
Re: Problem with Auto

Are you using encoders on your drive, or a timer?

If you're using encoders, are you resetting those values to zero before you start your auto mode?

-Nick
__________________


Alumnus of 1503 Spartonics
Founding Mentor of 5406 Celt-X
Mechanical Design Mentor of 3940 CyberTooth
Emceeing events since 2013 - come say hi!

Success doesn't always equate to match wins. It's about the wins off the field.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2014, 08:49
jmartin jmartin is offline
Registered User
AKA: Joseph Martin
FRC #0172 (Northernforce)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Gorham
Posts: 30
jmartin is on a distinguished road
Re: Problem with Auto

Is motor safety enabled? (If you haven't explicitly disabled it, then it probably is). Are you getting any errors on the driver station/netconsole?

The motor safety feature will stop running the motors if you are not constantly feeding it values for motor speeds, and will say something like "Output not updated often enough" if you set the motor to full speed once, and then wait a while and stop it.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2014, 08:58
geomapguy's Avatar
geomapguy geomapguy is offline
Centenary '18
AKA: Graham Maxwell
FRC #1818
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Alexandria, LA
Posts: 535
geomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud of
Re: Problem with Auto

Quote:
Originally Posted by jmartin View Post
Is motor safety enabled? (If you haven't explicitly disabled it, then it probably is). Are you getting any errors on the driver station/netconsole?

The motor safety feature will stop running the motors if you are not constantly feeding it values for motor speeds, and will say something like "Output not updated often enough" if you set the motor to full speed once, and then wait a while and stop it.
Especially if you are using a Jaguar
__________________
The Cowboys - FIRST Robotics Team #1818 2015-
The Bolton Bear Bots - FIRST Robotics Team #3666 2011-204 (30-26-0)
2014 Oklahoma Regional - 20/62 (6-4-0), 5/62 in OPR
2014 Arkansas Regional - 14/39 (8-7-0, Quarterfinalists with 1706 and 1939), 24/39 in OPR
2013 Lone Star Regional Dean's List Finalist!
2013 Lone Star Regional - 22/57 (6-5-0), 17/57 in OPR
2012 Bayou Regional - 16/49 (6-5-0)
2011 Dallas Regional - 10/52 (4-2-5, #6 Alliance Captain, Quarterfinalists with 2948 and 3350)
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2014, 09:10
DMike
 
Posts: n/a
Re: Problem with Auto

The safety vi was disabled before we started programming autonomous. I'm curious why autonomous doesn't work, but teleop does, when the motors are referenced the same way for both. We are programming using labview and we are using jaguars for the drive system.
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2014, 09:15
jmartin jmartin is offline
Registered User
AKA: Joseph Martin
FRC #0172 (Northernforce)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Gorham
Posts: 30
jmartin is on a distinguished road
Re: Problem with Auto

Are there any error messages on the driver station (under the diagnostics tab) or on the netconsole?
Reply With Quote
  #7   Spotlight this post!  
Unread 18-02-2014, 09:20
E Dawg E Dawg is offline
... is not done with FRC yet.
AKA: Ethan
FRC #0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Fort Collins, CO
Posts: 267
E Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud of
Re: Problem with Auto

Probe your error wires and see what they return.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-02-2014, 10:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Problem with Auto

Quote:
Originally Posted by DMike View Post
Any ideas?
We can share plenty of ideas. Since we don't see your code, we can't know whether any of those ideas are good ones. Show us your Autonomous vi and help us help you.
Reply With Quote
  #9   Spotlight this post!  
Unread 18-02-2014, 12:35
DMike
 
Posts: n/a
Re: Problem with Auto

Here's a photo of the code. We literally enabled one of the stock structures already in the Autonomous code and added a solenoid. The added solenoid code works, the default drive code doesn't.
Attached Thumbnails
Click image for larger version

Name:	AutoCode.JPG
Views:	39
Size:	161.9 KB
ID:	16311  
Reply With Quote
  #10   Spotlight this post!  
Unread 18-02-2014, 13:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Problem with Auto

Are you actually using a Mecanum drivebase?

Is your drive motor reference in Begin named "Four Motors"?
Reply With Quote
  #11   Spotlight this post!  
Unread 18-02-2014, 14:01
DMike
 
Posts: n/a
Re: Problem with Auto

yes and yes. The motors will turn as programmed sometimes but it's really inconsistent. They will usually only turn once every time we load the code to the cRio, and generally it does not work the first time we enable the code. We don't have the code actually burned to the cRio yet so could that have something to do with it?
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 07:10.

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