Go to Post If you squeeze cost out hard enough, any component can become a failure point. - EricVanWyk [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 Rating: Thread Rating: 3 votes, 3.67 average. Display Modes
  #301   Spotlight this post!  
Unread 17-05-2010, 16:20
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Programmers: I Have A Challenge For You

*sigh*

What I meant is it is always a good idea to know how the device you are programming works. I don't have a college-level education in this stuff, I only know what I can reverse-engineer. I think that the best way to learn how these robotics platforms work is to try things, read manuals, and mess up. Failure is the best teacher.

I am currently teaching a couple freshmen how to hack at stuff. I had them start with a ps/2 mouse and an arduino, and they turned it into encoders for our robot.

"I don't believe in shortcuts! I believe in the almighty GPL!"
  #302   Spotlight this post!  
Unread 17-05-2010, 16:34
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Programmers: I Have A Challenge For You

Quote:
Originally Posted by Robototes2412 View Post
*sigh*

What I meant is it is always a good idea to know how the device you are programming works. I don't have a college-level education in this stuff, I only know what I can reverse-engineer. I think that the best way to learn how these robotics platforms work is to try things, read manuals, and mess up. Failure is the best teacher.

I am currently teaching a couple freshmen how to hack at stuff. I had them start with a ps/2 mouse and an arduino, and they turned it into encoders for our robot.

"I don't believe in shortcuts! I believe in the almighty GPL!"
You do have a good point.
It's essential for the programmers to understand the underlying technology if you expect them to recover from failures. How can they fix a problem if they can't isolate or identify it?
Autonomous is certainly not how you start programming a robot. Start with learning how the system works. What is PWM? Why is it used as a data signal? How (and why) is it used to control the speed of the motor? What is the "braking" action of a brushed DC motor? Why can't the motor run at infinitely slow speeds? What are encoders and potentiometers? How does the health of the battery affect the performance of the motor? What is an FPGA? Why is it used instead of a processor?
I think the WPI library is fairly low-level, though if you wanted, you could periodically generate digital pulses with digital outputs. Having a standalone PWM-generator is also useful. We put a speaker on ours when we made it, so you can actually hear the square wave change as you adjust the duty cycle.

Anyways, understanding how the components of the system work is necessary to understand how the system can fail.
__________________
-- Marshal Horn
  #303   Spotlight this post!  
Unread 18-05-2010, 21:20
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Programmers: I Have A Challenge For You

I think the priority should be the Robotic perception rather than locomotion. You can have the biggest and the strongest and fastest athlete, but if he is blind, he can be beat by a regular joe with 20/20 vision in a game of football or something.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #304   Spotlight this post!  
Unread 21-05-2010, 17:32
mjcoss mjcoss is offline
Registered User
FRC #0303
 
Join Date: Jan 2009
Location: Bridgewater,NJ
Posts: 70
mjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the rough
Re: Programmers: I Have A Challenge For You

I think that one of the biggest stumbling block for development of autonomous code is time. Programmers are usually the last folks to get their hands on the robot. While we can code things up, we must wait for the robot build process to get to a sufficiently stable point that we can grab the robot to run tests.

If the autonomous code is just a hand crafted set of instructions, then it must be tested, and refined many times to get it working properly. If the autonomous code is more of a state machine with transitions triggered by sensors, then this to must be laboriously tested. If it's an even more elaborate learning system, then the testing is even more intensive.

Bottom line is that there typically just isn't the time to do the needed testing. So some times just code up something simple, others never get around to putting anything into autonomous mode.

As far as the original idea of a fully autonomous robot, while I applaud the ambition, I suspect that it will be unrealistic for most, if not all, teams to be able to do that, given the empirical evidence of autonomous performance to date for most teams.
  #305   Spotlight this post!  
Unread 23-05-2010, 17:16
pSYeNCe's Avatar
pSYeNCe pSYeNCe is offline
Programaster
AKA: James
FRC #2010 (Lightning Bots)
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2007
Location: Ohio
Posts: 58
pSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to behold
Re: Programmers: I Have A Challenge For You

Quote:
Originally Posted by mjcoss View Post
I think that one of the biggest stumbling block for development of autonomous code is time.

Bottom line is that there typically just isn't the time to do the needed testing.
This is precisely why I won't be able to accept the challenge. This last year I had one day to really test the code nonstop- all the other days I'd have it for a few minutes after grabbing it from the build team. I'd love to participate in this challenge- I believe it's a great one that would give any participant a lot of insight into programming- I can't due to insane time constraints. It's not plausible without the time to test.
__________________
"Great minds discuss ideas; average minds discuss events; small minds discuss people."
-Eleanor Roosevelt
  #306   Spotlight this post!  
Unread 23-05-2010, 21:51
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Programmers: I Have A Challenge For You

Quote:
Originally Posted by pSYeNCe View Post
This is precisely why I won't be able to accept the challenge. This last year I had one day to really test the code nonstop- all the other days I'd have it for a few minutes after grabbing it from the build team. I'd love to participate in this challenge- I believe it's a great one that would give any participant a lot of insight into programming- I can't due to insane time constraints. It's not plausible without the time to test.
You know what, I will just be the team leader and have a "software first" mentality. Just recruit more programmers. I would have an army of programmers, plus, I am the biggest and strongest on the team
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #307   Spotlight this post!  
Unread 23-05-2010, 22:37
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: Programmers: I Have A Challenge For You

Quote:
Originally Posted by davidthefat View Post
You know what, I will just be the team leader and have a "software first" mentality. Just recruit more programmers.
The typical problem is not a lack of programming resources. It's a lack of robot.

There are two ways the TechnoKats have successfully dealt with this problem. One is to build into the schedule a set of "programming only" sessions. We did this a couple of years ago, with the programming group having absolute priority on the robot a couple of evenings a week starting in Week 3 of the build. The mechanical and electrical groups were denied permission to work on the robot during those times (though they were encouraged to be present in case something broke). This worked out great because we built a practice 'bot at the same time, so "the robot" was actually able to be used by two groups simultaneously.

The other way is to finish the robot well in advance of ship date so that the programmers have plenty of time with it. This also has benefits for the drivers, giving them plenty of practice time. And probably the best thing about being done early is that there's plenty of time to break the robot.
  #308   Spotlight this post!  
Unread 23-05-2010, 22:38
Chris is me's Avatar
Chris is me Chris is me is online now
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,767
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Programmers: I Have A Challenge For You

Quote:
Originally Posted by davidthefat View Post
You know what, I will just be the team leader and have a "software first" mentality. Just recruit more programmers. I would have an army of programmers, plus, I am the biggest and strongest on the team
That should help, but by now I bet you realize the constraint here isn't whether or not you can get people typing fast enough. It's not work that just needs to be chugged through.
__________________
Mentor / Drive Coach: 228 (2016-?)
--2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
.
College Mentor: 2791 (2010-2015)
-- 2015 TVR Motorola Quality, FLR GM Industrial Design -- 2014 FLR Motorola Quality / SFs (with 341, 4930)
-- 2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
-- 2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 MN 10K Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
  #309   Spotlight this post!  
Unread 24-05-2010, 08:32
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: Programmers: I Have A Challenge For You

Quote:
Originally Posted by davidthefat View Post
You know what, I will just be the team leader and have a "software first" mentality. Just recruit more programmers. I would have an army of programmers, plus, I am the biggest and strongest on the team
If you had an army of hardware guys would the robot be buildt faster? Usually not in fact it can slow the process.

I agree usually the robot hardware is not ready in time to do 15 seconds of a game much less 2 minutes.
__________________
Doug Leppard
  #310   Spotlight this post!  
Unread 24-05-2010, 08:35
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: Programmers: I Have A Challenge For You

Maybe this has been already suggested I haven't read all the posts.

How about having a post championships competition, like IRI where the robots are totally autonomous. Maybe have it at IRI as one of the vents.

This way there is more time to work on the robot post season.
__________________
Doug Leppard
  #311   Spotlight this post!  
Unread 24-05-2010, 09:18
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,074
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Programmers: I Have A Challenge For You

Quote:
Originally Posted by Doug Leppard View Post
If you had an army of hardware guys would the robot be buildt faster? Usually not in fact it can slow the process.
Yes, adding workers can slow a process. http://en.wikipedia.org/wiki/The_Mythical_Man-Month may be of some interest to you.
__________________




.
  #312   Spotlight this post!  
Unread 28-11-2010, 00:44
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Programmers: I Have A Challenge For You

I am bumping this one up cause I honestly did not want to start another thread and as the kickoff gets closer, I thought people should see this.

I found a solution to the image processing problem.
http://microcontrollershop.com/produ...ucts_id=352 9

No battery: Legal
4 USB ports = Good
Runs Linux (The Arm 9 Linux uses 32 mb of ram, and this has 32 mb ram... So IDK...)


I realized I can not use the PS3 or a PC due to lack of voltage generated form the batteries... Don't they need a minimum of 110v? and the battery is 12 v.

It says it supports up to 4 webcams, but I do not know how well it can perform while processing images.
I can either just process the data and send the raw data obtained from the camera to the cRio and process the logic there or process the logic on the board. Thats a minor detail that can be experimented with.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #313   Spotlight this post!  
Unread 28-11-2010, 10:46
Chris is me's Avatar
Chris is me Chris is me is online now
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,767
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Programmers: I Have A Challenge For You

Quote:
Originally Posted by davidthefat View Post
I realized I can not use the PS3 or a PC due to lack of voltage generated form the batteries... Don't they need a minimum of 110v? and the battery is 12 v.
That's not exactly true. They need 110V of AC power, and the battery supplies 12 V of DC power. It's not really a matter of simply "oh, 110 is bigger than 12, guess I'm screwed". You could use a power inverter, though I don't think power inverters are FIRST legal...

Have you written any successful programming logic since your last post?
__________________
Mentor / Drive Coach: 228 (2016-?)
--2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
.
College Mentor: 2791 (2010-2015)
-- 2015 TVR Motorola Quality, FLR GM Industrial Design -- 2014 FLR Motorola Quality / SFs (with 341, 4930)
-- 2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
-- 2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 MN 10K Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
  #314   Spotlight this post!  
Unread 28-11-2010, 11:26
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Programmers: I Have A Challenge For You

Quote:
Originally Posted by Chris is me View Post
That's not exactly true. They need 110V of AC power, and the battery supplies 12 V of DC power. It's not really a matter of simply "oh, 110 is bigger than 12, guess I'm screwed". You could use a power inverter, though I don't think power inverters are FIRST legal...

Have you written any successful programming logic since your last post?
I honestly have not done any programming since summer.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #315   Spotlight this post!  
Unread 28-11-2010, 13:17
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Programmers: I Have A Challenge For You

Quote:
Originally Posted by davidthefat View Post
I am bumping this one up cause I honestly did not want to start another thread and as the kickoff gets closer, I thought people should see this.

I found a solution to the image processing problem.
http://microcontrollershop.com/produ...ucts_id=352 9

No battery: Legal
4 USB ports = Good
Runs Linux (The Arm 9 Linux uses 32 mb of ram, and this has 32 mb ram... So IDK...)


I realized I can not use the PS3 or a PC due to lack of voltage generated form the batteries... Don't they need a minimum of 110v? and the battery is 12 v.

It says it supports up to 4 webcams, but I do not know how well it can perform while processing images.
I can either just process the data and send the raw data obtained from the camera to the cRio and process the logic there or process the logic on the board. Thats a minor detail that can be experimented with.
Another option would be a mini-ITX motherboard. Some of them have a 12VDC jack for power input. I know a number of jetway boards in particular use this form of power input. If you use the default BIOS settings I believe you can run without a CMOS battery, but I'm not positive about that. Using a small SSD for storage you may be able to get an FRC legal computer running.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
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
For those of you that have seen a field goldenglove002 General Forum 1 13-02-2010 21:56
SE MI Teams - I have pool noodles for you! kmcclary General Forum 1 05-02-2010 20:29
Any Programmers Have The Same Feeling As Me? davidthefat Programming 23 16-01-2010 22:07
What have you given up for FIRST? Michael Leicht General Forum 138 11-01-2008 10:47


All times are GMT -5. The time now is 23: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