![]() |
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! |
Re: Do we have to program our robot in C++?
Quote:
|
Re: Do we have to program our robot in C++?
Quote:
The bigger issue I see is the headache at events for FIRST. Right now, there is the same controller/radio setup on every robot. Even with everyone using the same RC setup, teams still botch it in many creative ways. :rolleyes: FIRST knows the current setup so they can help debug it when the match was suppost to start 2 minutes ago. If teams were allowed to use any controller, they wouldn't be able to help, and I think the number of teams having comms problems would increase with a decrease in the quality of help available. Wetzel |
Re: Do we have to program our robot in C++?
Is there a rule saying we can't use any type of controller? What if someone can modify an N64 controller and use that? Would that be against the rules?
|
Re: Do we have to program our robot in C++?
I think you've got joysticks and controllers mixed up.
Innovation First makes the control system that tells the robot to do stuff. Yes, you have to use it. Joysticks (and anything else that connects to the operator interface, for that matter) have been functionally wide open. Go wild on that, if you prefer. And if you get an N64 controller to work with it, we want pictures. :D (note, however, that everything is subject to change without notice or reason) |
Re: Do we have to program our robot in C++?
Quote:
Wetzel |
Re: Stupid question that should be easy to answer...
Quote:
There are a whole load of great pages out there for learning C. A couple good ones: http://www.eskimo.com/~scs/cclass/ http://www.cprogramming.com/ And, of coarse, here! If you are like me thou, and prefer a book (I actually posted a thread about this a while ago), a very good one is "The C Programming Language" by Brian W. Kernighan and Dennis M. Ritchie. If you are totally new to programming, you may find it goes a little fast, but it is still a very good read. |
Re: Stupid question that should be easy to answer...
Quote:
I was just wondering what the difference was between ANSI C and C that is used for Microsoft Visual Studio? |
Re: Stupid question that should be easy to answer...
Quote:
If you already have some background in programming you shouldn't have much of a problem with the robot. The first time I ever touched C was a week before the competition, and I had no problem with the robot. |
| All times are GMT -5. The time now is 01:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi