Go to Post A good measure of Integrity is what you do when nobody's watching. - DonRotolo [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 22-02-2009, 18:48
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Autonomous

Can you use the autonomous code as is? I think in our case we have to change to the tank drive, but besides that will it do anything or does it need more. I am just looking to see if it will drive forward, without making changes. We are going to test on blocks, but was wondering what to expect. It looks like it will but I am not sure. If it does that then we can adjust it to turn, etc.

Thanks.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #2   Spotlight this post!  
Unread 22-02-2009, 18:52
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous

It should work, as is, but you must at least toggle the True/False input on the left to "True" allowing it to run.
You don't even have to change to Tank Driver from the default Arcade Drive.
Autonomous doesn't care how you command it, and there are no joysticks anyway in autonomous.

It only runs for about 5 seconds rather than the full 15 seconds of autonomous.
You can fix that simply, by changing the "4" in the upper left to a 12.

You probably do want to add a little variety in the form of a turn or two.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-02-2009 at 18:56.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2009, 18:57
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Autonomous

Quote:
Originally Posted by Mark McLeod View Post
It should work, as is, but you must at least toggle the True/False input on the left to "True" allowing it to run.
You don't even have to change to Tank Driver from the default Arcade Drive.
Autonomous doesn't care how you command it, and there are no joysticks anyway in autonomous.

It only runs for about 5 seconds rather than the full 15 seconds of autonomous.
You can fix that simply, by changing the "4" in the upper left to a 12.
Thank you so VERY much...

I certainly hope they offer more courses this summer and fall on using this with the FRC. I attended three all day trainings this Fall and can make Labview do all kinds of things from a math point of view, but taking that and making it work with motors, electronics and other things is much more difficult. I would pay for a class or training materials to help learn how to tie these together and understand the whole picture. Given the number of threads about the programming, I think I am not the only one.

Thanks for making this easier for us.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2009, 10:59
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Autonomous

Quote:
Originally Posted by Mark McLeod View Post
It should work, as is, but you must at least toggle the True/False input on the left to "True" allowing it to run.
You don't even have to change to Tank Driver from the default Arcade Drive.
Autonomous doesn't care how you command it, and there are no joysticks anyway in autonomous.

It only runs for about 5 seconds rather than the full 15 seconds of autonomous.
You can fix that simply, by changing the "4" in the upper left to a 12.

You probably do want to add a little variety in the form of a turn or two.
How do you make a turn.

If I understand it correctly -0.5 drives forward and 0.5 drives backward???
How do you make it turn?

Thanks for all the help.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2009, 11:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous

Quote:
Originally Posted by chinckley View Post
If I understand it correctly -0.5 drives forward and 0.5 drives backward???
How do you make it turn?
The Arcade drive has a second input (X-axis value), that isn't used in the example, but defines the turn amount. An x-axis value of 1.0 for instance will make your robot turn in place. -1.0 makes it turn in the opposite direction. In between values will make it drive in an arc.
Hover the mouse over the left edge of the Arcade Drive icon and you'll see an unattached x-axis. right click and choose constant to give it a value (0 is the default when nothing is attached).

If you choose to switch to Tank Drive then a turn in place would be .5 to one side and -.5 to the other.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-02-2009 at 11:31.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-02-2009, 12:16
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Autonomous

Quote:
Originally Posted by Mark McLeod View Post
The Arcade drive has a second input (X-axis value), that isn't used in the example, but defines the turn amount. An x-axis value of 1.0 for instance will make your robot turn in place. -1.0 makes it turn in the opposite direction. In between values will make it drive in an arc.
Hover the mouse over the left edge of the Arcade Drive icon and you'll see an unattached x-axis. right click and choose constant to give it a value (0 is the default when nothing is attached).

If you choose to switch to Tank Drive then a turn in place would be .5 to one side and -.5 to the other.
Should the drive forward numbers be 1.0 and -1.0 or is the -0.5 for forward correct (as in the example).
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #7   Spotlight this post!  
Unread 23-02-2009, 12: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,113
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: Autonomous

Quote:
Originally Posted by Mark McLeod View Post
The Arcade drive has a second input (X-axis value), that isn't used in the example, but defines the turn amount. An x-axis value of 1.0 for instance will make your robot turn in place. -1.0 makes it turn in the opposite direction. In between values will make it drive in an arc.
That's close enough for people who already know how the Arcade Drive works, but it's not perfectly correct. The robot will try to spin in place with any nonzero x-axis value if the y-axis value is zero. To drive in an arc, add an x-axis-controlled spin to a y-axis-controlled forward or reverse drive.

Yes, negative numbers on the y axis mean forward. That's because the joystick standard has negative forward and positive backward, likely because it was defined with flight simulators in mind.
Reply With Quote
  #8   Spotlight this post!  
Unread 23-02-2009, 12:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous

Alan's probably answered part of your question.
The x-axis is just the turn speed, and the y-axis adds the forward or reverse speed to get an arc.

With the trailers behind the robots this year you'll probably want to do some sort of arc (mixture of x & y axis), but full speed (1.0 or -1.0) will probably be too much for the slick floor and wheels. I'd imagine you'll want to start on practice day with about half speed for both until you see how your robot really behaves. Then raise or lower the speed based on what you see.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-02-2009 at 12:36.
Reply With Quote
  #9   Spotlight this post!  
Unread 23-02-2009, 12:46
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Autonomous

Here is what I have...

I do have an x and y value. If I understand it, the first will make a slight turn one way and then a slight turn the other way and essentially end up straight?

How often does the watchdog need a feed?

Thanks.
Attached Files
File Type: vi Autonomous Independent.vi (23.7 KB, 59 views)
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #10   Spotlight this post!  
Unread 23-02-2009, 13:14
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous

That's the idea.
If I remember correctly -x will turn to the right and +x will go left.

In practice, because of possible spin out as your robot gets up to speed, I bet the turns won't quite even out. The earlier turns will lose ground and the later turns will be more efficient. But then you'll run into another robot or trailer and everything gets thrown off anyway. Just keep moving.

The WatchDog Delay & Feed takes care of everything to do with WatchDog timing for you. That vi tells the WatchDog to delay and to feed itself as often as necessary while it's causing the delay.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #11   Spotlight this post!  
Unread 23-02-2009, 13:27
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Autonomous

Quote:
Originally Posted by Mark McLeod View Post
That's the idea.
If I remember correctly -x will turn to the right and +x will go left.

In practice, because of possible spin out as your robot gets up to speed, I bet the turns won't quite even out. The earlier turns will lose ground and the later turns will be more efficient. But then you'll run into another robot or trailer and everything gets thrown off anyway. Just keep moving.

The WatchDog Delay & Feed takes care of everything to do with WatchDog timing for you. That vi tells the WatchDog to delay and to feed itself as often as necessary while it's causing the delay.
Thanks so much.

We will be moving, moving, moving... I hope.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #12   Spotlight this post!  
Unread 23-02-2009, 13:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous

I neglected to mention that the turns also don't even out because you'll be turning in one direction for 2 seconds and in the opposite direction for only 1 second.

That'll essentially give you an overall arc to the right I think, but so slight that you might end up in your opponents corner. Of course, you'll be running into the robot coming out of that corner way before you get there.

To end up straighter you'd go one way for 1.5 seconds, then the other way for 1.5 seconds to even things out.
But that's probably overthinking it all anyway.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-02-2009 at 13:45.
Reply With Quote
  #13   Spotlight this post!  
Unread 23-02-2009, 13:42
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Autonomous

Quote:
Originally Posted by Mark McLeod View Post
I neglected to mention that the turns also don't even out because you'll be turning in one direction for 2 seconds and in the opposite direction for only 1 second.

That'll essentially give you an overall arc to the right I think, but so slight that you might end up in your opponents corner. Of course, you'll be running into the robot coming out of that corner way before you get there.

To end of straighter you'd go one way for 1.5 seconds, then the other way for 1.5 seconds to even things out.
But that's probably overthinking it all anyway.
On the regolith is it known how long it will take to get from one end to the other? We could not afford it and had no playing field available to us.

If I started in the lower right corner and went slightly left then straight and then slightly left, etc. I am hoping to go to about mid field or so. As long as I am pointing toways the other end when I am done so my trailer is not to the other teams in the other alliance.

Move, move, move...
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #14   Spotlight this post!  
Unread 23-02-2009, 13:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous

The ground your robot can cover depends too much on the gearing and wheel slip to know for sure. With no other robots in the way you'll probably make it the whole length of the field during the 15 seconds. But since there are four other robots with trailers in that direction, as well as the robot coming from the left corner, I imagine we'll all end up in one big traffic tie-up in the center.

You probaly want a variation in your autonomous to account for the three possible starting positions. Keeping what you have you can simply duplicate that loop twice more. Then vary your power and times in each for your best guess, e.g., if what you have handles one corner, then just reverse the numbers in the second autonomous for the other corner.

Once you agree on starting positions with your Alliance partners for a match, you can quickly switch between auto programs just by using that True/False switch on the left. True for the corner you'll start in and False for the others.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #15   Spotlight this post!  
Unread 23-02-2009, 18:20
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Autonomous

Can you just highlight to copy them? Do they just go one under the other like the Basic Robot Main has three loops?

If we are not using the other two loops in the Basic Robot Main can we just delete those?

Thanks so much.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
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
Autonomous Whitetail Freak Programming 5 14-02-2009 07:35
Autonomous hedgehogger Programming 1 22-01-2004 18:29
R.A.G.E. Autonomous? DarkJedi613 Regional Competitions 7 17-03-2003 21:33
Autonomous Jestin Hashop Rules/Strategy 2 11-02-2003 19:24


All times are GMT -5. The time now is 21:35.

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