Go to Post Mentor: You must first learn patience... Student (impatiently): How long is that going to take? - kaszeta [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 06-02-2010, 17:33
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Autonomous (Iterative)

Heres what I want the robot to do (we're coding using the holonomic vi) (we need it to read 3 true false switches (1 for each section of the field) (the only difference is the time for steps 3&7)
1.Drive robot forward (for a short time) (0 degrees)
2.Release a solenoid.
3.Run 2 motors (separate from the holonomic drive and hooked up to spike relays for a short time) (+1 value)
4.Drive robot left (for a short time) (270 degrees)
5.Drive robot forward (for a short time) (0 degrees)
6.Release a solenoid.
7.Run 2 motors (separate from the holonomic drive and hooked up to spike relays for a short time) (+1 value)
8.Drive robot left (for a short time) (270 degrees)
9.Drive robot forward (for a short time) (0 degrees)
10.Release a solenoid
11.Stop all motors and end autonomous mode

Questions
1.Ideas on if it can be done in the required 15 sec.
2.If someone can post an example picture (in labview) or talk me through making it
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2010, 20:10
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Autonomous (Iterative)

The name of the forum makes it sound like you want to do this using the Iterative callback style of autonomous. Unless you really know what you are doing, I'd actually suggest doing it in the Independent VI.

I've made some suggestions below marked with **s.
Greg McKaskle

Heres what I want the robot to do (we're coding using the holonomic vi) (we need it to read 3 true false switches (1 for each section of the field) (the only difference is the time for steps 3&7)
1.Drive robot forward (for a short time) (0 degrees)
** Call the Drive VI to set the motor speeds. Wire the error I/O to a Wait and Feed VI with the seconds that you want the motors at that speed. If you have encoders or other, more reliable method, you can wire the error I/O to a loop that sleeps for a millisecond or two at a time and polls the encoder.
2.Release a solenoid.
** Wire the error I/O from the Wait and Feed to the Set Solenoid. It seems like you also want to set the Drive motors to 0 here. Again, use the error I/O for sequencing.
3.Run 2 motors (separate from the holonomic drive and hooked up to spike relays for a short time) (+1 value)
** Use the error I/O to sequence and Motor Set Speed to rearm.
4.Drive robot left (for a short time) (270 degrees)
** Repeat the pattern of setting Drive speeds, then Wait and Feed.
5.Drive robot forward (for a short time) (0 degrees)
6.Release a solenoid.
7.Run 2 motors (separate from the holonomic drive and hooked up to spike relays for a short time) (+1 value)
8.Drive robot left (for a short time) (270 degrees)
9.Drive robot forward (for a short time) (0 degrees)
10.Release a solenoid
11.Stop all motors and end autonomous mode

Questions
1.Ideas on if it can be done in the required 15 sec.
** My recommendation is to try and drive it with a joystick. If a decent driver can't do it, then I doubt the computer can. The computer may ultimately be more consistent, but it is unlikely to be faster, more adaptive, or better at driving. This also helps to figure out the speeds and times that make sense. In fact, you may wish to plot or record the joystick values as the driver does the task. You may choose to simplify the values, but in fact ramping up the speed or other subtleties may turn out to be quite important for consistent driving. Better to mimic those in the SW after you know what they are than try to code them in blindly.
2.If someone can post an example picture (in labview) or talk me through making it

** I've attached a picture of the first few steps. I'd also also highly recommend making some of these tasks into higher level subVIs -- things like ramping up speed or going in a particular direction for time could easily be parameterized into reusable blocks.

Good luck with Auto.
Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Auto Ind.png
Views:	124
Size:	20.6 KB
ID:	8532  
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2010, 10:06
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Autonomous (Iterative)

Thanks I'll test the code on the robot if it works I'll spotlight your post, if not thanks anyways
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2010, 18:04
PSHRobotics PSHRobotics is offline
Registered User
FRC #1182
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Missouri
Posts: 38
PSHRobotics is an unknown quantity at this point
Cool Re: Autonomous (Iterative)

Quote:
Originally Posted by Greg McKaskle View Post
<snip>
** My recommendation is to try and drive it with a joystick. If a decent driver can't do it, then I doubt the computer can. The computer may ultimately be more consistent, but it is unlikely to be faster, more adaptive, or better at driving. This also helps to figure out the speeds and times that make sense. In fact, you may wish to plot or record the joystick values as the driver does the task. You may choose to simplify the values, but in fact ramping up the speed or other subtleties may turn out to be quite important for consistent driving. Better to mimic those in the SW after you know what they are than try to code them in blindly.
<snip>
How would someone go about recording and plotting the joystick outputs. My team has been working to try and figure this out. If you could provide us with an example, that would be incredibly helpful.
Thanks.
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2010, 10:11
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Autonomous (Iterative)

What I meant in the post above was to connect the independent axes of the joystick to a cluster and connect that to a strip chart on the panel. It is also possible to add them to an array and store them in memory.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2010, 12:32
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Autonomous (Iterative)

I am absolutely confused about autonomous and i have no idea where to start with the autonomous. I know what i want to do just not how to implement it. I've searched through these forums for autonomous and there aren't any posts.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #7   Spotlight this post!  
Unread 12-02-2010, 02:01
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Autonomous (Iterative)

I would suggest doing step by step and asking detailed questions. Begin by turning some motors on for a period of time, then off again. Do this on blocks at first, experiment, and ask questions if you se something you do not understand.

Greg McKaskle
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
Iterative Robot Template? jalburty C/C++ 4 08-04-2011 13:57
Iterative Robot demo mandrews281 C/C++ 0 21-03-2009 15:45
Continuous vs. Autonomous in Iterative Robot Shira C/C++ 4 06-02-2009 04:20
C++ Robot: Simple or Iterative? Abrakadabra Programming 3 14-01-2009 22:01
Iterative Scoring Program TimA Rules/Strategy 1 18-01-2007 21:43


All times are GMT -5. The time now is 12:42.

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