Go to Post It looks very simple to build, and I like simplicity. - Nick Lawrence [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 17-10-2013, 11:14
Team3763 Adam Team3763 Adam is offline
Lead Programmer
FRC #3763 (4H WildCards)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: North Carolina
Posts: 157
Team3763 Adam can only hope to improve
Thumbs up Striving to learn more with Programming!

Hello all:

Entering my fourth year on a Robotics Team, and being my third year programming, I find myself a little upset with how much I truly know about programming with LabVIEW.

I see teams at competitions where their code is crisp, clean, and is 99% autonomous. Through the use of cameras and sensors they can target from anywhere, and in autonomous they shoot the frisbees then back up about 4 ft to prepare to go to the loading areas.

What I want to do is learn how perform some of these functions, not just your standard Drive, shooter, and basic Autonomous codings.

Think of it as a form of "This is your task, this is what you'll do and how it'll function" almost like a classroom being taught how to perform tasks through teaching, trial, and error. This thread is, I'm hoping, where users and programmers can come and try to learn something new.

In example: someone could post saying to make your camera work you'll need a Begin, Teleop, and Finish vi with code to call the camera. See if you can get the camera to function!

Then someone who is rather new, unlike myself, would try to challenge themselves and see if they can truly figure out how to work the camera through this website, the tutorials on LabVIEW and other means of finding out.

I welcome any and all challenges/tips/advice/misc. information on this thread, as well as pictures of your code, wiring for specific functions, and anything else!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-10-2013, 22:18
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: Striving to learn more with Programming!

I'm not sure I understand how you expect this to work, but if you post questions or challenges that you are having difficulties with, myself and many others will be happy to help.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 18-10-2013, 10:39
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Striving to learn more with Programming!

Quote:
Originally Posted by Team3763 Adam View Post
I see teams at competitions where their code is crisp, clean, and is 99% autonomous. Through the use of cameras and sensors they can target from anywhere, and in autonomous they shoot the frisbees then back up about 4 ft to prepare to go to the loading areas.

Then someone who is rather new, unlike myself, would try to challenge themselves and see if they can truly figure out how to work the camera through this website, the tutorials on LabVIEW and other means of finding out.
The reason the same teams appear in the eliminations at internationals and at einstein is not because of their software, directly. It is because of their tactics. The robots on einstein might not be the best at what they do, but the robots on the alliance work the best together, does that make sense? You can be pretty certain that 868, 1986, 1114, and 2056 (and many other highly competitive teams the typically win multiple regionals per season) don't just go into design. They analyse the game and decide how they want to play the game, then they design a robot to fit their style of play.

With that, they already know exactly what they want to do in the first week or so. 1986, the powerhouse from missouri, "only" had a floor pick up for the 7 disk autonomous mode. I put only in quotes because they did use it during tele-op, but the 7 disk auton gave them a HUGE advantage right from the start of the match, and the other team had to start behind, which can be very daunting starting a match 30 points behind in the finals of a regional.

The issue you have is no lack of skill, as you have said. It is lack of strategy. It's what separates the good and the great teams. It is very hard to pick up these skills as a team. My team, 1706, has been a team for I believe 8 years now and don't even think of going for extra disks in auton. We added moving backwards after we shot our 3 disks to get us closer to the feeder station to begin our fcs tactic. When we were blocked, we really couldn't do anything. We were tall and slow. 2056 was a fcs and when they were blocked, they'd just cycle. and if a robot didn't follow them to the feeder station, they'd continue being a fcs. This year 2056 and 1114 were unstoppable, winning 3 regionals together, I think I remember hearing that they work together, but I don't know if that has any merit (but they do at least sign up for the same competitions, so...)

It isn't difficult to program making the robot move back 4 feet after auton, or programming your robot to move forward, pick up two disks, repeat, move back and then shoot. Just takes timing of the motors, or vision (which an entirely different aspect of programming).
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."

Last edited by faust1706 : 18-10-2013 at 10:42.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-10-2013, 11:58
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Striving to learn more with Programming!

Quote:
Originally Posted by Greg McKaskle View Post
I'm not sure I understand how you expect this to work, but if you post questions or challenges that you are having difficulties with, myself and many others will be happy to help.
I'm also a little unsure what the intent of this thread is. Are you asking that we teach you new techniques, or are you suggesting that we create compendium of programming tips for programmers less experienced than yourself?

Quote:
Originally Posted by Team3763 Adam View Post
Entering my fourth year on a Robotics Team, and being my third year programming
[...]
What I want to do is learn how perform some of these functions, not just your standard Drive, shooter, and basic Autonomous codings.
What do you consider "basic" autonomous routines? Have you successfully implemented complete autonomous routines for the last 3 years of FIRST games? If not, that would be a great place to start, especially since you're already given example code as part of the LabVIEW distributions. Try to understand that example code, then write it again from scratch, perhaps adding any improvements you've thought of in the process. Hopefully your team has a programming "mule" robot that you can use to try out the routines.

If/when you've gone through this, check back and I'm sure we can help you brainstorm some more ideas for projects.

If you want something that's more directly usable in the future, try coding a waypoint autonomous framework. It should work something like as follows: Accept a list of (x, y, angle) coordinates, where (0, 0, 0) is the center of the field, facing away from your team's driver station. The first coordinate represents the starting position of the robot. The robot should then calculate the necessary movement to reach the next waypoint's coordinates, and drive their using gyro and encoder feedback. Then, when you get the game, you can quickly try out autonomous routines by simply inputting lists of coordinates. Wildstang (111) had it working in 2003 (video is reposted on YouTube with 111's permission).

Quote:
Originally Posted by Team3763 Adam View Post
Then someone who is rather new, unlike myself, would try to challenge themselves and see if they can truly figure out how to work the camera through this website, the tutorials on LabVIEW and other means of finding out.
Why don't you start us out? Post up an example tutorial for some technique that you've already learned and found helpful, so we know what you're intending with this thread.
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 21-10-2013, 01:05
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Striving to learn more with Programming!

Quote:
Originally Posted by RyanCahoon View Post
Wildstang (111) had it working in 2003 (video is reposted on YouTube with 111's permission)..
The presentation gives very helpful insight into how StangPS works. There are some small math errors which may confuse some students viewing it. Worth discussing?



Last edited by Ether : 21-10-2013 at 02:07.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-10-2013, 00:11
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Striving to learn more with Programming!

Quote:
Originally Posted by Ether View Post
Worth discussing?
Perhaps. (I'm surprised it's not been brought up before; that video's been around for a while.) Is there one of your follower-wheel odometry posts that would be applicable?
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote
  #7   Spotlight this post!  
Unread 23-10-2013, 09:10
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
Re: Striving to learn more with Programming!

If you are just interested in learning more about how to use LabVIEW to program your robot, including image processing, you could try this thread:
http://www.chiefdelphi.com/forums/sh...d.php?t=120756
Reply With Quote
  #8   Spotlight this post!  
Unread 23-10-2013, 09:43
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Striving to learn more with Programming!

Quote:
Originally Posted by RyanCahoon View Post
Perhaps. (I'm surprised it's not been brought up before; that video's been around for a while.) Is there one of your follower-wheel odometry posts that would be applicable?
:-) ... OK. Lets' do it that way.

Question1: In the video, is the positive X axis pointing to the left or to the right?



Last edited by Ether : 23-10-2013 at 10:36. Reason: added link to video for convenience
Reply With Quote
  #9   Spotlight this post!  
Unread 27-10-2013, 01:19
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Striving to learn more with Programming!

Quote:
Originally Posted by Ether View Post
:-) ... OK. Lets' do it that way.

Question1: In the video, is the positive X axis pointing to the left or to the right?
Judging by the coordinate values given in the second half of the video, I would say the positive X axis is to the right, positive Y axis is up.

I think I see where you're going with this though... in that the diagram showing angle theta as an acute angle doesn't match the angle that would be calculated from delta-x and delta-y in the world coordinate system.

So to answer your original question, I think at this point it's probably just worth noting that the video is meant to give an intuitive sense of how things work and the general types of formulae that will be needed instead of being mathematically rigorous.

My request for one of your odometry posts was meant to ask whether you already had a post somewhere that gave the correct mathematics, as it seems like something you might have covered before.
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote
  #10   Spotlight this post!  
Unread 27-10-2013, 10:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Striving to learn more with Programming!

Quote:
Originally Posted by RyanCahoon View Post
I think at this point it's probably just worth noting that the video is meant to give an intuitive sense of how things work and the general types of formulae that will be needed
Yes. As I said in post 5, the presentation gives very helpful insight into how StangPS works.


Quote:
My request for one of your odometry posts was meant to ask whether you already had a post somewhere that gave the correct mathematics, as it seems like something you might have covered before.
Aaron.Graeve did an admirable job of explaining the math in this thread. If anyone wants to explore this further, that would be a better thread to discuss it, so as not to hijack this thread.


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


All times are GMT -5. The time now is 20:56.

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