Go to Post Did Dean by any chance mention red herrings? ;) - Cory [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 24-09-2004, 14:35
Alaina's Avatar
Alaina Alaina is offline
J = Pf - Po
FRC #0814 (Megaforce Squadron)
Team Role: College Student
 
Join Date: Mar 2003
Rookie Year: 2003
Location: Napa, CA
Posts: 715
Alaina is a splendid one to beholdAlaina is a splendid one to beholdAlaina is a splendid one to beholdAlaina is a splendid one to beholdAlaina is a splendid one to beholdAlaina is a splendid one to beholdAlaina is a splendid one to behold
Send a message via AIM to Alaina
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++?
__________________
"It's cool to be a geek!" -- Dave Lavery
"It's all about the math." -- Mark Leon
  #2   Spotlight this post!  
Unread 24-09-2004, 14:51
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: 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.
__________________
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
  #3   Spotlight this post!  
Unread 24-09-2004, 14:56
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,550
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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.
  #4   Spotlight this post!  
Unread 24-09-2004, 17:21
Alaina's Avatar
Alaina Alaina is offline
J = Pf - Po
FRC #0814 (Megaforce Squadron)
Team Role: College Student
 
Join Date: Mar 2003
Rookie Year: 2003
Location: Napa, CA
Posts: 715
Alaina is a splendid one to beholdAlaina is a splendid one to beholdAlaina is a splendid one to beholdAlaina is a splendid one to beholdAlaina is a splendid one to beholdAlaina is a splendid one to beholdAlaina is a splendid one to behold
Send a message via AIM to Alaina
Re: Stupid question that should be easy to answer...

Okay, thanks guys. Sorry for being so oblivious. =P
__________________
"It's cool to be a geek!" -- Dave Lavery
"It's all about the math." -- Mark Leon
  #5   Spotlight this post!  
Unread 24-09-2004, 17:23
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: 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.
__________________

  #6   Spotlight this post!  
Unread 24-09-2004, 21:42
Robot Dude 0101's Avatar
Robot Dude 0101 Robot Dude 0101 is offline
Registered User
no team
 
Join Date: Sep 2004
Location: France
Posts: 29
Robot Dude 0101 is an unknown quantity at this point
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.
__________________
  #7   Spotlight this post!  
Unread 24-09-2004, 22:20
Billfred's Avatar
Billfred Billfred is offline
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,476
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: Do we have to program our robot in C++?

Quote:
Originally Posted by Robot Dude 0101
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.
That's the thing--some folks have enough fun (ahem) trying to program the robots as they are. Adding in more powerful/complex processors only makes it harder for us (and rookies, don't forget the rookies) to learn.

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.
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

93 events (more than will fit in a ChiefDelphi signature), 13 seasons, over 60,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
  #8   Spotlight this post!  
Unread 24-09-2004, 22:22
Greg McCoy's Avatar
Greg McCoy Greg McCoy is offline
boiler up!
FRC #3940 (CyberTooth)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Kokomo, IN
Posts: 484
Greg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond repute
Send a message via AIM to Greg McCoy
Re: Do we have to program our robot in C++?

Quote:
Originally Posted by Robot Dude 0101
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.
Programming is, for many teams, one of the aspects of making their machine they find most difficult. In recent years, FIRST has worked hard to make building a robot easier, but at the same time providing the headroom for more experienced teams to innovate. The new control system provides a pretty good balance. I think Microchip PIC Processors are used a lot in industry, so this also may be part of their choice.

(Also, if I'm not mistaken, the PIC uses a Motorola processor...)
  #9   Spotlight this post!  
Unread 25-09-2004, 11:51
Robot Dude 0101's Avatar
Robot Dude 0101 Robot Dude 0101 is offline
Registered User
no team
 
Join Date: Sep 2004
Location: France
Posts: 29
Robot Dude 0101 is an unknown quantity at this point
Re: Do we have to program our robot in C++?

Quote:
Originally Posted by Billfred
That's the thing--some folks have enough fun (ahem) trying to program the robots as they are. Adding in more powerful/complex processors only makes it harder for us (and rookies, don't forget the rookies) to learn.

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.
Even though it would be hard for teams to help each other, it would be an interesting idea to let teams use whatever processors they want. But this would only be useful if there was no $300 sensor limit. Since there is, I agree with you that the same processor is a good idea.
__________________
  #10   Spotlight this post!  
Unread 26-09-2004, 09:03
Mike Martus's Avatar Unsung FIRST Hero
Mike Martus Mike Martus is offline
Registered User
FRC #0051 (Wings of Fire)
Team Role: Coach
 
Join Date: May 2001
Rookie Year: 1996
Location: Pontiac Michigan
Posts: 1,187
Mike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond repute
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.
__________________
Mike Martus
  #11   Spotlight this post!  
Unread 26-09-2004, 11:23
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: Do we have to program our robot in C++?

Quote:
Originally Posted by Mike Martus
I am sure the controller will not operate on any other language other than "C".
It should be possible to program the RC in a different language, like PIC assembler (because it's the job of the compiler to write a .hex file, which contains generic PIC instructions, rather than C code or some other language). However, there's absolutely no support for this, and it would be a miracle if someone got a re-coded version of the firmware to actually work with itself, much less the field controllers.
  #12   Spotlight this post!  
Unread 26-09-2004, 12:16
suneel112 suneel112 is offline
Registered User
AKA: the angry designer on 461
#0461 (Westside Boiler Invasion)
Team Role: Student
 
Join Date: Mar 2003
Location: West Lafayette, IN
Posts: 229
suneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud ofsuneel112 has much to be proud of
Send a message via AIM to suneel112
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.
__________________
I'm back like the greatest, from a four year hiatus,
Haters cry later, I'm just getting my paper.
  #13   Spotlight this post!  
Unread 29-09-2004, 21:59
Dekker Avesque's Avatar
Dekker Avesque Dekker Avesque is offline
Registered User
None #0173
 
Join Date: Sep 2004
Location: Vernon, CT
Posts: 6
Dekker Avesque is an unknown quantity at this point
Send a message via AIM to Dekker Avesque Send a message via MSN to Dekker Avesque Send a message via Yahoo to Dekker Avesque
Re: Stupid question that should be easy to answer...

Quote:
Originally Posted by Joe Ross
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 make it sound as if C++ is for programming on a PC and C is only for embedded control systems, when this is not the case. C and C++ were both originally for PC programming; C is merely the predecessor language to C++. C and C++ are nearly identical; C++ is C with object orientation. (C++ was originally described as "C++: Object Oriented C".)

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.
  #14   Spotlight this post!  
Unread 02-10-2004, 22:03
Robot Dude 0101's Avatar
Robot Dude 0101 Robot Dude 0101 is offline
Registered User
no team
 
Join Date: Sep 2004
Location: France
Posts: 29
Robot Dude 0101 is an unknown quantity at this point
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?
__________________
  #15   Spotlight this post!  
Unread 02-10-2004, 22:41
av11d's Avatar
av11d av11d is offline
College Bum
no team ((Team 75 Alum -- Capt 05 & 06))
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Hillsborough, NJ
Posts: 158
av11d is a splendid one to beholdav11d is a splendid one to beholdav11d is a splendid one to beholdav11d is a splendid one to beholdav11d is a splendid one to beholdav11d is a splendid one to beholdav11d is a splendid one to behold
Re: Stupid question that should be easy to answer...

Quote:
Originally Posted by Dekker Avesque
You make it sound as if C++ is for programming on a PC and C is only for embedded control systems, when this is not the case. C and C++ were both originally for PC programming; C is merely the predecessor language to C++. C and C++ are nearly identical; C++ is C with object orientation. (C++ was originally described as "C++: Object Oriented C".)

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.
Almost. C with an object-oriented extension is ObjectiveC. ObjC is what NeXTStep and Mac OS X use as the default programming language. C++ is rather a completely rewritten programming language that originates from C. I still like Java

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!
__________________
2003 Animator and FIRST newbie
2004 HP, Animator & Programmer
2005 Team Captain, Arm Operator & Animator
2006 Team Captain



2006 BOSTON ENGINEERING INSPIRATION WINNERS
2006 NJ ENGINEERING INSPIRATION WINNERS
2006 BOSTON AVA WINNERS
2005 DUEL ON THE DELAWARE CHAMPS w/ 222 & 1721
2005 BRUNSWICK ERUPTION IV CHAMPS w/ 358 & 369
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
A Question on Sportsmanship Steve M General Forum 31 25-05-2004 23:52
Robot Collaboration Karthik General Forum 153 18-02-2004 03:40
2003 EDU robot Program nragod Programming 3 15-02-2004 22:35
Image Discuss: 810 - Minotaur: Coming to a regional near you. CD47-Bot Robot Showcase 47 25-02-2003 16:19
Kamikaze Robot Strategy... Joe Johnson Rules/Strategy 30 07-04-2002 21:42


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

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