Chief Delphi

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

DMike 18-02-2014 08:35

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?

Nick Lawrence 18-02-2014 08:36

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

jmartin 18-02-2014 08:49

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.

geomapguy 18-02-2014 08:58

Re: Problem with Auto
 
Quote:

Originally Posted by jmartin (Post 1345102)
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

DMike 18-02-2014 09:10

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.

jmartin 18-02-2014 09:15

Re: Problem with Auto
 
Are there any error messages on the driver station (under the diagnostics tab) or on the netconsole?

E Dawg 18-02-2014 09:20

Re: Problem with Auto
 
Probe your error wires and see what they return.

Alan Anderson 18-02-2014 10:16

Re: Problem with Auto
 
Quote:

Originally Posted by DMike (Post 1345096)
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.

DMike 18-02-2014 12:35

Re: Problem with Auto
 
1 Attachment(s)
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.

Alan Anderson 18-02-2014 13:27

Re: Problem with Auto
 
Are you actually using a Mecanum drivebase?

Is your drive motor reference in Begin named "Four Motors"?

DMike 18-02-2014 14:01

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?


All times are GMT -5. The time now is 07:10.

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