Go to Post Ancient doesn't necessarily mean bad, but ancient things do fall out of use, otherwise I'd be tapping this out in morse code or writing it in Latin. - Greg McKaskle [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 25-02-2009, 15:49
psychomonkey psychomonkey is offline
Mr. February
AKA: Seth Rhodes
FRC #1592 (Bionic Tigers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Fairbanks, Alaska
Posts: 23
psychomonkey is an unknown quantity at this point
Exclamation Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

Hey y'all slicies!
I am stuck like a bug in a rug with this autunomous coding! I am using labview. I want a really fancy code that makes the robot follow the trailer using the camera. I have found the PID vi's but I have no clue how to implement them. Would somebody please post a copy of their code or a sample of a working trailer follower.

I love robotics!
YATA!

Psychomonkey
  #2   Spotlight this post!  
Unread 25-02-2009, 15:50
Andrew Bates's Avatar
Andrew Bates Andrew Bates is offline
Registered User
AKA: Bates
FRC #0125 (NUTRONS)
Team Role: Mechanical
 
Join Date: Apr 2007
Rookie Year: 2004
Location: Ypsilanti, Michigan/Boston, MA
Posts: 332
Andrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond repute
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

http://www.chiefdelphi.com/forums/sh...threadid=75225

Those guys did earlier today.
__________________
ME Student at Northeastern University, Captain of the NUTRONs #125 FRC

Former member of VEXELLENT and Cranbrook Robotics
  #3   Spotlight this post!  
Unread 25-02-2009, 16:01
psychomonkey psychomonkey is offline
Mr. February
AKA: Seth Rhodes
FRC #1592 (Bionic Tigers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Fairbanks, Alaska
Posts: 23
psychomonkey is an unknown quantity at this point
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

That guy posted c code. I am using LabView.
__________________
In a time... When the greatest comeback occured... There was... MR. FEBRUARY!!!
  #4   Spotlight this post!  
Unread 25-02-2009, 16:21
Andrew Bates's Avatar
Andrew Bates Andrew Bates is offline
Registered User
AKA: Bates
FRC #0125 (NUTRONS)
Team Role: Mechanical
 
Join Date: Apr 2007
Rookie Year: 2004
Location: Ypsilanti, Michigan/Boston, MA
Posts: 332
Andrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond repute
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

Sorry, shouldn't the idea and theory still be useful to you. The words are different but the idea is the same.
__________________
ME Student at Northeastern University, Captain of the NUTRONs #125 FRC

Former member of VEXELLENT and Cranbrook Robotics
  #5   Spotlight this post!  
Unread 25-02-2009, 16:35
Happy Birthday! Akash Rastogi Akash Rastogi is offline
Jim Zondag is my Spirit Animal
FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Manchester, Connecticut
Posts: 7,003
Akash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond repute
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

Just a note- I wouldn't expect someone to post their fully working code on here for anyone to use. People work hard on their code and I think they expect everyone to do the same hours and trial and error they did. The logic from the C code should still be able to help you out if that's what you want.
__________________
My posts and opinions do not necessarily reflect those of my affiliated team.
['16-'xx]: Mentor FRC 2170 | ['11-'13]: Co-Founder/Mentor FRC 3929 | ['06-'10]: Student FRC 11 - MORT | ['08-'12]: Founder - EWCP (OG)
  #6   Spotlight this post!  
Unread 25-02-2009, 16:59
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

Check out lvmastery .com/tipjar. There's a video that shows you how to implement a state machine. A state machine can be useful for autonomous mode, where you have states that you go through one at a time, like "Move Forward", "Spin Around", or "Waste 'em!".

As Akash Rastogi said, nobody is going to code an autonomous mode and hand it over to you. We will, however, point you to resources that can help you do it yourself.

Good luck!
__________________
Twitter Profile
  #7   Spotlight this post!  
Unread 25-02-2009, 17:01
Joe_Widen's Avatar
Joe_Widen Joe_Widen is offline
Registered User
FRC #1675 (The Ultimate Protection Squad)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Milwaukee
Posts: 215
Joe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud of
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

Heres how I would do it.

First, have the camera find the green light above a trailer that you want to dump in. Next, have the robot line itself so the direction the camera is facing(hopefully in the direction of the green light) is the same direction the robot is facing. Next, drive forward. As you get closer to trailer of the robot, the camera should change pitch. You need to know at what pitch your camera is at when you are near a trailer. When you get to that pitch, tell your robot to stop moving and unload your balls.

Good luck. IMO, its really not to difficult to code. If you can follow my steps, its quite simple. Gettin the bugs out of it and making it run smooth is another story. But you need to start somewhere.
__________________
Finally in college =]


2009 Midwest Regional Champions - Thanks 111 and 1625
  #8   Spotlight this post!  
Unread 25-02-2009, 17:11
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,356
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

Quote:
Originally Posted by Joe_Widen View Post
Heres how I would do it.

First, have the camera find the green light above a trailer that you want to dump in. Next, have the robot line itself so the direction the camera is facing(hopefully in the direction of the green light) is the same direction the robot is facing. Next, drive forward. As you get closer to trailer of the robot, the camera should change pitch. You need to know at what pitch your camera is at when you are near a trailer. When you get to that pitch, tell your robot to stop moving and unload your balls.

Good luck. IMO, its really not to difficult to code. If you can follow my steps, its quite simple. Gettin the bugs out of it and making it run smooth is another story. But you need to start somewhere.

Joe's suggestions are spot on.....with one minor suggestion on my part. DO NOT WAIT until the camera locks on to a target to move forward. A human player can practically fill your trailer in the amount of time it takes to lock on.

Joe is correct, coding it to work is the easy part. Tweaking it to work accurately and consistently is a whole different story. That will take time and practice.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #9   Spotlight this post!  
Unread 25-02-2009, 17:58
Andrew Bates's Avatar
Andrew Bates Andrew Bates is offline
Registered User
AKA: Bates
FRC #0125 (NUTRONS)
Team Role: Mechanical
 
Join Date: Apr 2007
Rookie Year: 2004
Location: Ypsilanti, Michigan/Boston, MA
Posts: 332
Andrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond reputeAndrew Bates has a reputation beyond repute
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

Quote:
Originally Posted by Joe_Widen View Post
find the green light above a trailer
Note there are no green lights in this years game...
__________________
ME Student at Northeastern University, Captain of the NUTRONs #125 FRC

Former member of VEXELLENT and Cranbrook Robotics
  #10   Spotlight this post!  
Unread 25-02-2009, 18:45
NorviewsVeteran's Avatar
NorviewsVeteran NorviewsVeteran is offline
Precision Driver Extraordinaire
AKA: Richard Raitt
FRC #1793 (Pilots)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Norfolk VA
Posts: 569
NorviewsVeteran has a reputation beyond reputeNorviewsVeteran has a reputation beyond reputeNorviewsVeteran has a reputation beyond reputeNorviewsVeteran has a reputation beyond reputeNorviewsVeteran has a reputation beyond reputeNorviewsVeteran has a reputation beyond reputeNorviewsVeteran has a reputation beyond reputeNorviewsVeteran has a reputation beyond reputeNorviewsVeteran has a reputation beyond reputeNorviewsVeteran has a reputation beyond reputeNorviewsVeteran has a reputation beyond repute
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

Quote:
Originally Posted by corpralchee View Post
Note there are no green lights in this years game...
Green light, dayglow fluorescent green under strong lights, close enough.


Right?
__________________
______
I was in Scouts but I wanted out by the third meeting. I was in TSA, but I quit after a couple of weeks. I don't go camping with the SCA anymore. I was in taekwondo but I had to leave because I got sick.
I joined FIRST and stuck with it. It was nice enough to return the favor.

  #11   Spotlight this post!  
Unread 25-02-2009, 19:04
Joe_Widen's Avatar
Joe_Widen Joe_Widen is offline
Registered User
FRC #1675 (The Ultimate Protection Squad)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Milwaukee
Posts: 215
Joe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud ofJoe_Widen has much to be proud of
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

Mmm, standing still isnt the best thing to do in auto. And yes, I realize there aren't green lights, but I didn't know what the green things above the trailer were called. I used green light instinctively. Everyone knew what I meant, CD seems to be a bit hypercritical nowadays.

Anyways, it seems as if the OP doesn't have too much expierience coding. Theres no easy way to make "fancy" code do everything perfect. In fact, just asking for another team's code is really not helping you. You have to understand the code to effectively implement it in your machine. Your best off just asking for a bit of help at regionals for code to make your robot drive forward or in a circle. I don't mean to discourage you, by all means, go for it.
__________________
Finally in college =]


2009 Midwest Regional Champions - Thanks 111 and 1625
  #12   Spotlight this post!  
Unread 01-03-2009, 08:09
psychomonkey psychomonkey is offline
Mr. February
AKA: Seth Rhodes
FRC #1592 (Bionic Tigers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Fairbanks, Alaska
Posts: 23
psychomonkey is an unknown quantity at this point
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

*thumps head on desk* I wasn't asking to blatantly copy anybody's code. I was just asking for somebody to show me how I would use LabView to implement the camera azimuth/elevation into autonomous. I've already come up with the same logic for autonomous. I'm sorry if I've offended anybody by being straightforward. I just need some visual examples. If anybody would like to know about where I am in the autonomous stage, here's the link to another one of my threads
__________________
In a time... When the greatest comeback occured... There was... MR. FEBRUARY!!!
  #13   Spotlight this post!  
Unread 01-03-2009, 09:16
mathking's Avatar
mathking mathking is offline
Coach/Faculty Advisor
AKA: Greg King
FRC #1014 (Dublin Robotics aka "Bad Robots")
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 1999
Location: Columbus, OH
Posts: 636
mathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond repute
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

We had target tracking code that worked, but it broke when we updated the firmware and LabView. This turned out not to be such a horrible thing, because about 2/3 of the matches (and an even greater percentage in the elimination rounds) ended up with all of the robots mashed together somewhere in the middle of the field. This might change some as teams go to multiple regional competitions. However, since a lot of teams are going to just try some variations of drive straight away from human player or drive straight away and spin around, there is just not much room to try and track the target. The most important thing is to move. In the first round of qualifying our broken autonomous code caused our robot not to move, and we had 13 balls dumped in our trailer. Which was crucial our alliance losing the match.
__________________
Thank you Bad Robots for giving me the chance to coach this team.
Rookie All-Star Award: 2003 Buckeye
Engineering Inspiration Award: 2004 Pittsburgh, 2014 Crossroads
Chairman's Award: 2005 Pittsburgh, 2009 Buckeye, 2012 Queen City
Team Spirit Award: 2007 Buckeye, 2015 Queen City
Woodie Flowers Award: 2009 Buckeye
Dean's List Finalists: Phil Aufdencamp (2010), Lindsey Fox (2011), Kyle Torrico (2011), Alix Bernier (2013), Deepthi Thumuluri (2015)
Gracious Professionalism Award: 2013 Buckeye
Innovation in Controls Award: 2015 Pittsburgh
Event Finalists: 2012 CORI, 2016 Buckeye
  #14   Spotlight this post!  
Unread 01-03-2009, 18:32
psychomonkey psychomonkey is offline
Mr. February
AKA: Seth Rhodes
FRC #1592 (Bionic Tigers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Fairbanks, Alaska
Posts: 23
psychomonkey is an unknown quantity at this point
Re: Autonomous code MUCHO MUCHO IMPORTANTE!!!!!!!!!!!!!

Wow, I knew that people would jam up in the center of the field, but I never realized that it would be so bad that it would close up any possibilities of a successful homing robot. I guess now that I know this, I can rest easily and just create a timed autonomous to avoid any traffic jamming. Thank you so much for the info.
__________________
In a time... When the greatest comeback occured... There was... MR. FEBRUARY!!!
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 Code trouble The yellowdart Programming 16 21-01-2006 10:36
Autonomous code tutorial miketwalker Programming 2 23-02-2003 12:28
Autonomous code PBoss Programming 7 14-01-2003 15:29
Autonomous Code Adrian Wong Robotics Education and Curriculum 1 18-11-2002 22:34


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

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