Go to Post Surely any group of rational human beings (which FIRST seems to attract) can work this out. - Billfred [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 15-11-2006, 08:30
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: C or C++

Quote:
Originally Posted by Gdeaver
I always thought the problem with object oriented languages and microcontrolers was the async nature of OO. In other words OO is terrible for RTOS's.
Actually C++ is quickly gaining in popularity in the embedded world. The last project I worked on at Motorola was almost entirely C++ code running on an embedded control board under the pSOS and OSE RTOSes.
  #2   Spotlight this post!  
Unread 15-11-2006, 12:48
TimCraig TimCraig is offline
Registered User
AKA: Tim Craig
no team
 
Join Date: Aug 2004
Rookie Year: 2003
Location: San Jose, CA
Posts: 221
TimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to behold
Re: C or C++

Quote:
Originally Posted by Gdeaver
I always thought the problem with object oriented languages and microcontrolers was the async nature of OO. In other words OO is terrible for RTOS's.
Object oriented languages aren't any more asynchronous than purely procedural languages. If you're talking about the message passing paradigm, that's just OO speak for function calls.

That said, however, most microcontroller programs have to deal with asynchronous events.
  #3   Spotlight this post!  
Unread 15-11-2006, 15:40
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: C or C++

http://www.virginiafirst.org/workshop_info.shtml

I figure it just a typo but look at "Beginning Programming - part 1". Maybe they know something we dont know. Im pretty sure its a typo though.
  #4   Spotlight this post!  
Unread 15-11-2006, 15:46
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: C or C++

I screw it all. Let's go back to the PBASIC boards from a few years ago.
__________________
My Blog!
  #5   Spotlight this post!  
Unread 15-11-2006, 10:09
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: C or C++

Quote:
Originally Posted by efoote868
Too bad its not so easy to describe #define, or any other preprocessors to them .
For #define, I told the kids on my team it is essentially the same as a find-replace on your code before it actually gets compiled. That explanation is good enough for what we used it for (#define leftMotor1 pwm01).
  #6   Spotlight this post!  
Unread 14-11-2006, 02:35
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,277
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: C or C++

Quote:
Originally Posted by thegathering
We use C with an IDE called MPLab by Microchip.


*edit* I wish we could use C++ though, then maybe we'd get some more programmers on our team. C tends to scare them off. (maybe that's MPLab's icky-sticky interface rather than the language itself )
Use eclipse, it is much nicer than MPLAB

Also I think C is the easier of the two languages, the things that c++ simplified (Classes Structs etc) are really not important for what we are doing.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #7   Spotlight this post!  
Unread 14-11-2006, 06:52
RoboMadi's Avatar
RoboMadi RoboMadi is offline
3 Fs..... Fun Friends FIRST!!
AKA: Imad
FRC #0612
Team Role: College Student
 
Join Date: Oct 2005
Rookie Year: 2005
Location: Sterling VA
Posts: 452
RoboMadi has a brilliant futureRoboMadi has a brilliant futureRoboMadi has a brilliant futureRoboMadi has a brilliant futureRoboMadi has a brilliant futureRoboMadi has a brilliant futureRoboMadi has a brilliant futureRoboMadi has a brilliant futureRoboMadi has a brilliant futureRoboMadi has a brilliant futureRoboMadi has a brilliant future
Re: C or C++

Quote:
Originally Posted by JamesBrown
Use eclipse, it is much nicer than MPLAB
Last year, one of our programmers was used to Eclipse, and he pretty much hooked up everyone to use it. Its really nice, especially the way it breaks down the code.
C or C++, as far as writing the code, theres not much of a difference. I'm just waiting when FIRST will upgrade their systems, and we'll have some other language to play with...
But on a bright note, responsive time for C is much faster than any other language.
  #8   Spotlight this post!  
Unread 14-11-2006, 08:24
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: C or C++

Quote:
Originally Posted by RoboMadi
I'm just waiting when FIRST will upgrade their systems, and we'll have some other language to play with...
I hope this never happens. C is a de facto standard in embedded software. In FIRST a good application of C++ is creating a dashboard program.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
  #9   Spotlight this post!  
Unread 14-11-2006, 10:31
Stuart's Avatar
Stuart Stuart is offline
#include coffee.h
FRC #1745 (P51- Mustangs)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Dallas, TX
Posts: 414
Stuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond repute
Send a message via AIM to Stuart
Re: C or C++

I personaly would like to see a move to C++ . .mainly because I think its easier to think of a robot in terms of objects than not. and for the most part any thing you write in C can be put directly in to C++ with out any changes.

not saying that we take the jump all the way to java, (java.eguals(the.suck())) , but saying that a move to OO would be nice.
__________________
Proud mentor of Team #1745 the P-51 Mustangs

If at first it doesn't work, use a hammer.
If that doesn't work, use a bigger hammer.
  #10   Spotlight this post!  
Unread 14-11-2006, 14:25
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: C or C++

Quote:
Originally Posted by Stuart
I personaly would like to see a move to C++ . .mainly because I think its easier to think of a robot in terms of objects than not. and for the most part any thing you write in C can be put directly in to C++ with out any changes.

not saying that we take the jump all the way to java, (java.eguals(the.suck())) , but saying that a move to OO would be nice.
C++ would be a pretty hefty extra load on the processor, and for minimal gain. As far as objects go, I've found structs are pretty good, I'm working in my spare time on an object based robot API using all structs, its very doable.

Last year I used very modular code utilizing the same method, well enough I could pick up and move parts of my code in to another teams to help them, with the only change being adding the interface code to theirs. Once they had it, we were able to "plug" code modules in, it was very effective.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
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


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

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