|
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
|