Go to Post And then have FIRST throw a copy of the Atkins diet book in with each kit... - dlavery [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 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
  #5   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?
  #6   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.
  #7   Spotlight this post!  
Unread 12-04-2004, 14:05
Marc P. Marc P. is offline
I fix stuff.
AKA: βetamarc
no team
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Watertown, CT
Posts: 997
Marc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond repute
Send a message via AIM to Marc P.
Re: PIC controllers and c++???

Actually, MPLAB IDE does not run under linux via WINE. However, the compiler itself and the linker (c:\mcc18\bin\mcc18.exe) do run perfectly under WINE! I'm using Quanta as the main development suite, and created buttons mapped to scripts to compile and link all files. I've even mapped a button to the linux loader Mike posted above in Quanta, so all development and downloading capability is in one application, rather than having to launch the IFI loader after compiling.

I haven't been able to test yet (since robot is in crate on way to Atlanta), but I'm assured by the documemtation on the sourceforge site that it's operable, and am happy at the prospect of the ability to program under linux

Last edited by Marc P. : 12-04-2004 at 14:07. Reason: added path to compiler
  #8   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
  #9   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.
  #10   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.
__________________

  #11   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
  #12   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++?
  #13   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
  #14   Spotlight this post!  
Unread 25-04-2004, 23:16
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: PIC controllers and c++???

I too do not pretend to know what im saying, but i do know that, at least in the early days, C++ compilers would actually convert the C++ code entirely into C code and then use an already existing C compiler to compile that. The point is that it is entirely possible, and i think likely, that you could find or at least modify a compiler to do this for you.
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award

Last edited by Max Lobovsky : 26-04-2004 at 22:58.
  #15   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.
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