Go to Post Everyone's bored, what else do we have to do in the off season? - StephLee [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 07-04-2004, 17:48
K0r34nB0y's Avatar
K0r34nB0y K0r34nB0y is offline
Registered User
AKA: Nate
#0250 (Dynamos)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Capital Region, NY, USA
Posts: 27
K0r34nB0y is an unknown quantity at this point
PIC controllers and c++???

Look at this
I won't even pretend to know what I'm talking about here but wouldn't this compile the same and make it possible to program a robot in c++? Opinions?
__________________
"Joe! Stop answering all the questions! You're too smart."
--later--
"Okay, from now on you have to speak in tertiary."
  #2   Spotlight this post!  
Unread 07-04-2004, 18:09
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: PIC controllers and c++???

Quote:
Originally Posted by K0r34nB0y
Look at this
I won't even pretend to know what I'm talking about here but wouldn't this compile the same and make it possible to program a robot in c++? Opinions?
It would be great if it works. It should, but that requires actual testing of some programs. Great find.
__________________

  #3   Spotlight this post!  
Unread 07-04-2004, 18:22
K0r34nB0y's Avatar
K0r34nB0y K0r34nB0y is offline
Registered User
AKA: Nate
#0250 (Dynamos)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Capital Region, NY, USA
Posts: 27
K0r34nB0y is an unknown quantity at this point
Re: PIC controllers and c++???

I was lookin through, and it looks like it only supports PIC12's and PIC16's. I think the RC is a PIC18 so I'm not sure if it works. Anyone know for sure?
__________________
"Joe! Stop answering all the questions! You're too smart."
--later--
"Okay, from now on you have to speak in tertiary."
  #4   Spotlight this post!  
Unread 24-04-2004, 15:10
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: PIC controllers and c++???

C++ would be much less efficient on such a controller though.
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
  #5   Spotlight this post!  
Unread 24-04-2004, 20:57
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: PIC controllers and c++???

Yes, it's called OOP overhaed. And it really sucks for this sort of thing.
  #6   Spotlight this post!  
Unread 25-04-2004, 07:31
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: PIC controllers and c++???

It isn't necesarilaly less efficient. It depends on the compiler. Plus, if you don't use things like runtime polymorphism, you basically have C with classes. And the classes get reduced to hex code that does pretty much the same as equilivant C code.
__________________

  #7   Spotlight this post!  
Unread 25-04-2004, 10:05
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: PIC controllers and c++???

Quote:
Originally Posted by Texan
It isn't necesarilaly less efficient. It depends on the compiler. Plus, if you don't use things like runtime polymorphism, you basically have C with classes. And the classes get reduced to hex code that does pretty much the same as equilivant C code.

C++ encourages using classes, which in turn encourages use of functions... All I'm saying is that a school-taught C++ programmer would want to encapsulate everything in classes and functions, which adds significant overhead on our little controller...


On the other hand, inline functions are a great feature of C++, would enhance performance.
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
  #8   Spotlight this post!  
Unread 25-04-2004, 10:38
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: PIC controllers and c++???

I have never actually used C++ in too much detail, but I do know a little about it. Could someone give me a run down on whats different between C and C++?
  #9   Spotlight this post!  
Unread 25-04-2004, 14:57
fred's Avatar
fred fred is offline
More Grizzle
None #0341 (Daisy)
Team Role: Programmer
 
Join Date: Jan 2003
Location: Ambler
Posts: 132
fred is on a distinguished road
Re: PIC controllers and c++???

Quote:
Originally Posted by ToMMan b182
I have never actually used C++ in too much detail, but I do know a little about it. Could someone give me a run down on whats different between C and C++?
I am not positive of all the differences since this was my first year using either language for like, 3 years. I talked to a guy from FIRST and he said that they had really looked at using C++, but they decided that using C would be easier for the students in the long run and that C++ was as good for doing the task that we do in FIRST. i.e. programming robots.
__________________
"The distance between genius and insanity is measured only by success."

-Anonymous
  #10   Spotlight this post!  
Unread 26-04-2004, 07:34
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: PIC controllers and c++???

Quote:
Originally Posted by ToMMan b182
I have never actually used C++ in too much detail, but I do know a little about it. Could someone give me a run down on whats different between C and C++?
3 words: Object Oriented Programming.
  #11   Spotlight this post!  
Unread 26-04-2004, 08:34
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: PIC controllers and c++???

Quote:
Originally Posted by ToMMan b182
I have never actually used C++ in too much detail, but I do know a little about it. Could someone give me a run down on whats different between C and C++?
The main feature differences are these:
1. Classes - like structs from C
2. Polymorphism (runtime and compile) - Basically this is the ability to have muptiple functions with the same name
3. Templates - generic classes
4. Exceptions - error handling mechanism
__________________

  #12   Spotlight this post!  
Unread 26-04-2004, 11:40
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: PIC controllers and c++???

Polymorphism and Templates also cover Interfaces and Sub- & Super-classes.
  #13   Spotlight this post!  
Unread 07-04-2004, 18:25
dez250 dez250 is offline
54... What a good number!
no team
 
Join Date: Dec 2002
Rookie Year: 2000
Location: Upstate NY / Manchester, NH
Posts: 1,721
dez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond repute
Send a message via AIM to dez250
Re: PIC controllers and c++???

i just checked out the specs for that program, it shows support for the PIC 12 and 16 series only as of now. I know we use the PIC 18F8520 unit. Though i do have a linux PIC Loader that was designed for the IFI FRC, and i also was told that MPLAB runs in Linux. Heres the Linux IFI PIC-Loader.
__________________
#5

-Michael Dessingue
  #14   Spotlight this post!  
Unread 07-04-2004, 21:26
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
Talking Re: PIC controllers and c++???

Full OOP on an integrated processor? Cool.
I'm not sure if it's really practical or just the engineer impulse.

But what's the diference between the procs?
  #15   Spotlight this post!  
Unread 07-04-2004, 22:12
Kamikaze Kamikaze is offline
Registered User
FRC #0955 (CV Robotics)
Team Role: Leadership
 
Join Date: Apr 2004
Rookie Year: 2004
Location: Corvallis, OR, USA
Posts: 18
Kamikaze will become famous soon enough
Re: PIC controllers and c++???

Quote:
Originally Posted by dez250
and i also was told that MPLAB runs in Linux.
Running MPLAB on Linux is problematic. Wine seems to be okay with the installer up to the point where it checks to see if Internet Explorer is installed. Since Internet Explorer isn't native to *nix and wine doesn't like it, wine doesn't work with MPLAB.

The other option is using a virtual machine like VMWare (currently setting this up), Xen or whatever.
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
initialization program and speed controllers rosebud Programming 15 05-10-2004 03:35
Cheaper speed controllers Max Lobovsky Kit & Additional Hardware 8 09-03-2004 13:18
PIC Programmers seanwitte Electrical 8 18-04-2003 17:04
speed controllers archiver 2000 5 24-06-2002 00:19
Calibrating speed controllers and joysticks thedillybar Technical Discussion 4 11-02-2002 13:24


All times are GMT -5. The time now is 22:47.

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