Go to Post I emailed Brandon Martus to have my username changed. It was updated within a day. Champion webmaster at work. - Gregor [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-03-2009, 21:16
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Angry Autonomous help

Coding in LabView. Ok SO we have autonomous code written and teleop written. We are using Main.VI as our startup code on the cRio. Teleop is running correctly when the DS is switched to Teleop Enabled. Here is the problem, autonomous is correctly running on the block diagram on our laptop however the code is not running on the bot when the DS is switched to Auto Enabled.
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #2   Spotlight this post!  
Unread 12-03-2009, 21:23
_lukas _lukas is offline
Registered User
FRC #1414 (iHOT Robotics)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Atlanta, GA
Posts: 2
_lukas is an unknown quantity at this point
Re: Autonomous help

Are you feeding the watchdog?
  #3   Spotlight this post!  
Unread 12-03-2009, 21:24
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,658
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Autonomous help

First, are you using the Basic framework, or the Advanced framework? The advanced framework has Begin.vi, Finish.vi, and many others.

Second, are forgetting to feed your watchdog or something in auto? Are you (improperly) trying to Open motor and drive refs in your autonomous code?

Lastly, posting your code would make helping you a good bit easier.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #4   Spotlight this post!  
Unread 12-03-2009, 21:39
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Autonomous help

We are using Basic framework and yes are feeding the watchdog. I am posting our Basic framework for you to look at. Ok, hang on have to compress as we are 3 kb too big for attaching file...
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #5   Spotlight this post!  
Unread 12-03-2009, 21:48
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Autonomous help

Nevermind, the screenshots are too big...give me a little bit and I will go somewhere where I can get WinZip to compress the files. Be back in a bit...
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #6   Spotlight this post!  
Unread 12-03-2009, 23:34
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Autonomous help

Finally made it to a computer with compression software. Here is our Basic Main.VI The programmer finally got it to work but in an unconventional method which you will see in the code. He's got the code in a loop for "other" but is calling the Autonomous VI outside the structure (as it was in the default). If you have any advice as to what we may have done wrong it would be much appreciated!
Attached Files
File Type: zip Basic Robot Main.zip (55.6 KB, 56 views)
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #7   Spotlight this post!  
Unread 12-03-2009, 23:42
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,658
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Autonomous help

your autonomous independent.vi is the second thing wed need to help you out.

EDIT: I think your problem may be that you're trying to run your autonomous code in the "Other" section of Robot Basic Main. You really shouldn't be trying to do much in this section. Although it looks like the code is currently commented out with that False constant.

Anyways, your autonomous code should go in your Autonomous Independent.vi file. Don't worry that it doesn't look like it gets run anywhere. The Basic Framework takes care of that for you, and will run that vi whenever you enter autonomous mode. Specifically, the Basic Robot Mode.vi takes care of this for you.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter

Last edited by Kevin Sevcik : 12-03-2009 at 23:50.
  #8   Spotlight this post!  
Unread 12-03-2009, 23:51
Dr. Manhattan Dr. Manhattan is offline
Atomic Reconstruction
AKA: Joe Bakke
FRC #2521
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Eugene, OR
Posts: 21
Dr. Manhattan is on a distinguished road
Send a message via AIM to Dr. Manhattan
Re: Autonomous help

First of all you have to have it running from Autonomous.vi to run effectively and correctly. Second, is it possible we could see what your Autonomous.vi looks like? It could help drastically in diagnosing your problem.

Edit: Darn, beat to the punch.
  #9   Spotlight this post!  
Unread 12-03-2009, 23:54
rsegrest's Avatar
rsegrest rsegrest is offline
@ least I'm OVER the rock THIS time
FRC #2582 (PantherBots)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Lufkin, TX
Posts: 415
rsegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant futurersegrest has a brilliant future
Re: Autonomous help

(v-8 slapping forehead)...It's been a day...it started with letting the magic smoke out of our extra two Jags this morning (literally)...feels like a Friday 13 and Monday all rolled into one. Can't get to the auto code until tomorrow morning but will get it posted as soon as I get to school and tget access to the laptop that it is on. Thanks for staying up and looking at it and I'll be in touch in the morning.
__________________
Impossible is just a big word for small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare Impossible is potential. Impossible is temporary. Impossible is nothing.
~ Unknown
  #10   Spotlight this post!  
Unread 13-03-2009, 00:10
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,658
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Autonomous help

Let me just offer up this chunk of autonomous code. It's super easy to program to do whatever you want, and it should drop right into the basic framework. Here's how it works...

On the far left, you'll see an array constant. This is your autonomous "program". The first number in each array element is how long a particular move will last. The next two columns are joystick commands that you send for that length of time. X/L is the virtual X or Left joystick position, in Arcade or Tank drive, respectively. Y/R is the Y or Right joystick position.

So the program that's currently in there does this:
  • For 3 seconds, move the "joystick" to Y=-0.75. (This makes you drive 75% speed forward in arcade.)
  • For 12 seconds, move the "joystick" to X=-0.75. (This makes you spin around in arcade mode.)
  • Stop.

To add more steps, you just add more elements to the array. To change the program, you change the numbers in the array.

In your case, you're using Tank drive, so you'd want to change that arcade drive to a tank drive. To do this, right click on the arcade drive vi, select "Replace" then "RobotDrive Palette" then the tank drive vi. Then change the numbers in the program to something that makes sense for your tank drive style.
Attached Files
File Type: zip Autonomous Independent.zip (11.8 KB, 76 views)
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Autonomous Help GunfighterJ NI LabVIEW 2 10-02-2012 07:06
Autonomous help csshakka NI LabVIEW 3 15-02-2009 13:21
autonomous help jfrank Programming 8 08-02-2008 10:25
HELP ON Autonomous !!!! jesusescobar Programming 1 10-02-2007 20:45
Autonomous Help mightywombat Programming 11 07-01-2004 10:45


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

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