![]() |
Do we have to program our robot in C++?
Hi,
The new programmer on my team was wondering, can we switch back to visual basic or do we have to use c++? |
Re: Stupid question that should be easy to answer...
Let me start by giving you a bit of information. Prior to 2004, PBASIC (similar to Visual Basic) was used as the programming language. In 2004, and as far as I know, 2005, the chip will be programmed in C (someone who knows C++ knows C, but they are not the same).
If your programmer knows BASIC, C should not be a very large step. If he starts learning now (practicing with the 2004 equipment) he should be perfectly capable by 2005. |
Re: Stupid question that should be easy to answer...
Well, the robots have never been programmed in either Visual Basic or C++.
In the past, the robots were programmed in PBASIC, which is a dialect of BASIC that only runs on Basic Stamp microprocessors, which were what controlled the robot until last year. Last year, and presumably this year, the robots are programmed in C for a Microchip PIC processor. Even if your programmer knew Visual Basic, PBASIC is quite a bit different. C++ and C are quite a bit closer, but there is still a huge difference between programming a full computer, and an embedded control system. You should suggest that they register on chiefdelphi because I'm sure there will be many more questions. |
Re: Stupid question that should be easy to answer...
Okay, thanks guys. Sorry for being so oblivious. =P
|
Re: Do we have to program our robot in C++?
No problem. "Oblivious" people asking questions are what gives us an excuse to sit around on CD. ;)
|
Re: Do we have to program our robot in C++?
Im new to this FIRST stuff and I was wondering why these robots have to use these processors? We could use more powerful processors like the HandyBoard, Motorolla processors, or K-Team processors. That would make everything more challenging.
|
Re: Do we have to program our robot in C++?
Quote:
Now, if by that you meant being able to use any processor, then there's another issue--as it stands, FIRST teams use pretty common things (mainly since they're in the kit of parts). If 1000 different teams use 1000 different processors, then it's going to be very hard for a programmer to walk to the rookie team next door and offer help, since their setup may be completely foreign to him/her/it. |
Re: Do we have to program our robot in C++?
Quote:
(Also, if I'm not mistaken, the PIC uses a Motorola processor...) |
Re: Do we have to program our robot in C++?
Quote:
|
Re: Do we have to program our robot in C++?
FIRST will publish the "Official Rules" at the kick-off. I am sure there will be restrictions, as in the past, regarding the controller, specifically the software. There is great effort at making all teams even in many respects as well as constraining the technical issues FIRST tech support will have to deal with.
In the past you were NOT allowed to modify the OI or RC in any way other than programming. In addition, usage of additional electronics is specifically controlled each year. I am sure the controller will not operate on any other language other than "C". Read the "Official Rules" when they are published by FIRST. Ask here if you need additional information. The community of Chief Delphi will respond. |
Re: Do we have to program our robot in C++?
Quote:
|
Re: Do we have to program our robot in C++?
We should use Java....not! It will take forever for the virtual machine to load ("it's 45 seconds left and the robot is standing still") and for the navigation system, "Java.lang.Math is loading...." I guess C is a good alternative (even though I am terrible at C programming). Java has great uses as a dash program, though.
|
Re: Stupid question that should be easy to answer...
Quote:
I believe the C used in the Innovation FIRST chips that we run our robots with is a simplified version of the language, specifically suited for said chips. Just making sure there is no confusion... C was not designed for operating robots, however a compiler was released for FIRST allows us to use the C language to operate robots. |
Re: Stupid question that should be easy to answer...
Does anyone know of any good books that would teach you how to program C for robotics?
|
Re: Stupid question that should be easy to answer...
Quote:
Anyway, if you want specific information on using C with the standard FIRST controller, check out: http://www.innovationfirst.com/FIRST...umentation.htm Best of Luck! |
| All times are GMT -5. The time now is 13:03. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi