Go to Post And people laugh at me when I suggest 14" wheels. - Munchskull [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 23-02-2009, 21:16
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Help with Autonomous...



I'm trying to make the autonomous so it will activate 2 motors for the whole period and nothing else besides the movement of the robot itself.

The movement is something I don't know where to start with... I want it to run forward for like 10 seconds and then start spinning It's a tank drive so I only need to move one of the axis... But how do I coordinate a movement after the other :S?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2009, 23:00
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: Help with Autonomous...

You want the robot to move at one speed and direction for a while, then change to move at another speed and direction? The sample Autonomous Independent does exactly that. It uses a clever trick to make things happen in sequence: chaining the error out of one VI to the error in of the next. The Delay and Feed VI takes care of the timing, and the dataflow inherent in LabVIEW takes care of the sequencing.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-02-2009, 16:26
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Help with Autonomous...

I think you solved much of my issues Thank you a lot sir.
PS: You didn't tell me if the screenshot I posted works for keeping 2 motors on for the whole period.

Last edited by elbuo : 24-02-2009 at 17:19.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-02-2009, 19: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: Help with Autonomous...

Quote:
Originally Posted by elbuo View Post
PS: You didn't tell me if the screenshot I posted works for keeping 2 motors on for the whole period.
Both Motor Opens are configured for the same PWM output. That right there will keep it from controlling two motors.

I can't tell from the section you posted what the loop structure is surrounding it, but I suspect the Motor Close VIs are misplaced. They should go outside everything, in the same realm as the Motor Opens (but on the right instead of the left).

You don't need to do anything fancy with timing if you just want the motors to run during the whole autonomous period. Just turn them on and forget them; the parallel drive sequence will make it so that everything inside the loop runs for as long as your Delay and Feed VIs total.
Reply With Quote
  #5   Spotlight this post!  
Unread 24-02-2009, 19:33
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Help with Autonomous...

I left them in port 1 cause I didn't remember which were the correct ones

I can't place the close out of it...:S There is a connection error with the loop that isn't the T/F
Reply With Quote
  #6   Spotlight this post!  
Unread 24-02-2009, 22:00
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: Help with Autonomous...

Quote:
Originally Posted by Alan Anderson View Post
You want the robot to move at one speed and direction for a while, then change to move at another speed and direction? The sample Autonomous Independent does exactly that. It uses a clever trick to make things happen in sequence: chaining the error out of one VI to the error in of the next. The Delay and Feed VI takes care of the timing, and the dataflow inherent in LabVIEW takes care of the sequencing.
It's odd, for some reason our Autonomous VI that was written already doesn't do the delay. I'm not sure why, but will be looking into it. If you have any thoughts it would be hugely 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with autonomous!!!!! billbo911 NI LabVIEW 4 31-01-2009 15:22
Help with autonomous MorbidAngel General Forum 2 11-12-2008 16:35
we need help with PWM problem in autonomous steve d Programming 7 03-02-2008 12:46
Autonomous With Camera schenkin Programming 20 16-02-2005 23:52
need help with autonomous caderader Programming 3 14-02-2005 18:25


All times are GMT -5. The time now is 08:30.

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