View Single Post
  #10   Spotlight this post!  
Unread 30-01-2009, 21:06
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Drive code not working; any suggestions?

Some advice - when something isn't compiling and you ask for help, provide the people helping with the compiler error. Most of the time someone with an experience can provide a ton of help just by seeing that output.

I highly suggest that you start to learn how to read the errors that a compiler is giving you. It will save you a ton of time if you can start understanding what it is actually telling you. One hint is to always start at the first error. More than likely, by cleaning up the first error you will inherently fix some of the ones below it.

Now, on to the problems in this revision. Go back and compare your code to that in MattD's above. There are three major things that are different.

1. He has his objects as members of his class, not local variables in his constructor like you do.
2. Your constructor is taking a void argument. That isn't correct syntax. For constructors you need to have empty parenthesis following the classname (i.e RobotDemo())
3. C and C++ are case sensitive languages. Therefore your Start_Robot_Class is not the same as the macro that is actually defined START_ROBOT_CLASS