Go to Post I'm totally hooked on reffing now and will be volunteering in the future because of [Beach Blitz]. - Ali Ahmed [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 04-01-2008, 22:32
comphappy comphappy is offline
Registered User
AKA: Brennan Ashton
FRC #2605 (A2D_16)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Bellingham, WA
Posts: 157
comphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to behold
Send a message via AIM to comphappy
Programming languages in the embedded enviroment

I really fail to see why so many people are not wanting to use C for embedded systems, 400mhz processors, what are you planning on doing that demands that much processing power it is crazy. Efficiency and overhead is what it boils down to.

I have nothing against python when it is used in an appropriate application, I have plenty of python scripts taking care of all kinds of tasks on my server, but that is because the C equivalents would take far to long to write and not offset the loss in performance. We are not doing anything close to powerful enough to justify co-processors of that magnitude, or a language of that high level. Yes I have considered implementing a co-processor, but it is just another microcontroller from freescale, which would allow me to load a RTOS.

The reality is C and asm are what people use for these applications in the real world, and while using other languages MAY allow you to work more efficiently in the 6-weeks we have, in the end what does it prepare us for?

I recommended that everyone reads this article by jon "madddog" hall, a programming god, http://www.linuxjournal.com/article/9647 he has been around from the beginning and has some very interesting insight.

Hope i did not step on too many toes.

Brennan Ashton
  #2   Spotlight this post!  
Unread 04-01-2008, 22:38
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
Wink Re: Programming languages in the embedded enviroment

Quote:
Originally Posted by comphappy View Post
Hope i did not step on too many toes.
If you are not stepping on toes then you are not making progress
__________________
Ed Barker
  #3   Spotlight this post!  
Unread 04-01-2008, 22:53
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Programming languages in the embedded enviroment

The reason the team I help mentor (1646) is considering a co-processor is not the added processing power but the added flexibility. Such as being able to load MMC cards for different autonomous modes.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
  #4   Spotlight this post!  
Unread 04-01-2008, 23:10
Guy Davidson Guy Davidson is offline
Registered User
AKA: formerly sumadin
FRC #0008 (Paly Robotics)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Ra'anana, Israel
Posts: 660
Guy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to behold
Send a message via ICQ to Guy Davidson Send a message via AIM to Guy Davidson Send a message via MSN to Guy Davidson
Re: Programming languages in the embedded enviroment

Have you looked into using the eeprom? Or just a switch connected to a few digital inputs and a few saved on the robot?
  #5   Spotlight this post!  
Unread 04-01-2008, 23:14
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Programming languages in the embedded enviroment

Quote:
Originally Posted by sumadin View Post
Have you looked into using the eeprom? Or just a switch connected to a few digital inputs and a few saved on the robot?
Auton modes was just an example. We really just wanted a solid platform we could extend and build on quickly.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
  #6   Spotlight this post!  
Unread 04-01-2008, 23:20
Guy Davidson Guy Davidson is offline
Registered User
AKA: formerly sumadin
FRC #0008 (Paly Robotics)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Ra'anana, Israel
Posts: 660
Guy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to beholdGuy Davidson is a splendid one to behold
Send a message via ICQ to Guy Davidson Send a message via AIM to Guy Davidson Send a message via MSN to Guy Davidson
Re: Programming languages in the embedded enviroment

Quote:
Originally Posted by jtdowney View Post
Auton modes was just an example. We really just wanted a solid platform we could extend and build on quickly.
Fair enough. I and the other programmers on team 8 (after trying to work with a coprocessor for the past few weeks) decided that it's more worth it to just program in regular C. We haven't been able to prove that the extra power is needed, while a coprocessor is much more complicated to run and maintain than regular C code.
  #7   Spotlight this post!  
Unread 05-01-2008, 02:02
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Programming languages in the embedded enviroment

Python is often used on cellphones... which you could call an embedded system.

I think there are plenty of interesting things that could be done on a FIRST robot given a higher level programming language.

I don't think that first robots have anything interesting processing wise *yet* but there are MANY MANY things that can be done with that processing power, real time path planning with dynamics is one such thing:
http://scholar.google.com/scholar?q=...&b tnG=Search

We may need better sensing to make this stuff useful, but I can definitely see that happening in 2-3 years.
the 'real-world' also uses these high level languages for prototyping purposes and sometimes even for development because they are easier and more flexible.
I think it's better to develop algorithmic thought than to get better at writing C code. High level languages let you do that without worrying about minuscule details

I disagree with the article, understanding system level details is very low on the list of things that are important for computer scientists...programmers maybe, but not serious researchers.
__________________
Team 701

Last edited by Salik Syed : 05-01-2008 at 02:12.
  #8   Spotlight this post!  
Unread 05-01-2008, 02:58
comphappy comphappy is offline
Registered User
AKA: Brennan Ashton
FRC #2605 (A2D_16)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Bellingham, WA
Posts: 157
comphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to behold
Send a message via AIM to comphappy
Re: Programming languages in the embedded enviroment

Personally i dont like how long it takes some of the apps on my phone to load.

Python is certainly better then Java (hello memory management). I guess the question becomes do we want to develop embedded systems or algorithms. I think we need to keep it low level like it is or step it up (in hardware too) to a hight level such as RTLinux or vxworks, then we can put databases and all kinds of other cool tool on it, which can be just as fun and not that hard with a little basic documentation (i would shy away from windows CE that some have mentioned, there is almost no ability for hardware interaction). I think FIRST has hit a split, and need to pick a path and not split the difference.
  #9   Spotlight this post!  
Unread 05-01-2008, 09:10
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Programming languages in the embedded enviroment

For what FIRSTers do, C is fine. As soon as you remove pointers & dynamic memory, C and Python become essentially equivalent.

Where interpreted languages shine is when you use things like objects/classes, dynamic memory, etc. It's hard enough to debug a memleak on a PC, much less on an embedded system.

When many teams struggle with programming at all, keeping programming simple should be a priority. Be it Python, C, Ruby, Perl, or another language, make easy to pick up.

The point of FIRST is to not train students for the workforce. FIRST does not replace school. No matter what language you use, some fundamental concepts (eg sensor feedback, control loops, autonomous programming) still apply.
  #10   Spotlight this post!  
Unread 05-01-2008, 10:10
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,393
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: Programming languages in the embedded enviroment

I agree with the comment that none of the FIRST robots have pushed what could be done from a computing standpoint. But I applaud the people that are trying to push the edge with other languages, co-processors, other sensors, etc. From everything they learn pushes all of us along.

I'm working on a Vex based robot for a mini-DARPA road like challenge. One thing we want to use is a GPS to figure out where we are and where to go next. Rather than tying the main processor up talking to the GPS and doing the calculations, we are going to move it to a second Vex controller. The two controllers will talk across a serial connection. This knowledge will help other teams that want to do co-processors.

So don't discard the efforts in Python or OOCobol or additional hardware, next year YOU might be using that neural net interface to find the IR beacon.
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
Embedded Microcontroller major? John Gutmann Career 5 27-07-2006 23:49
Embedded Ethernet? Andrew Blair Technical Discussion 6 22-06-2006 21:12
Other languages tchescow Website Design/Showcase 2 25-02-2003 11:28
Programming Languages Hailfire Programming 7 29-01-2003 21:10
Learning New Languages Gadget470 Programming 20 07-12-2002 07:43


All times are GMT -5. The time now is 18:38.

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