|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Still problem with classes...+img
I just can make that thing work....
![]() image: ![]() |
|
#2
|
||||
|
||||
|
Re: Still problem with classes...+img
It looks like you are trying to create an object for the "Drive" class....right??
I think you were trying to write: RobotDrive *bba; ?? Maybe I'm missing something? Please elaborate. |
|
#3
|
|||
|
|||
|
Re: Still problem with classes...+img
Yes, im trying to creat a new object "Drive" (!!)
I defined a new object at the class "Drive" and i want to make a new object in my code. Like "PWM" or "Jaguar" but from class that i created! help ![]() |
|
#4
|
||||
|
||||
|
Re: Still problem with classes...+img
Mind showing us more of that MyRobot.cpp file you're using? If you could post that, along with your Drive.cpp and Drive.h files, then it'll be easier to figure out than working from just a screenshot.
|
|
#5
|
||||
|
||||
|
Re: Still problem with classes...+img
You want something like
RobotDrive *bba = new RobotDrive(1, 2); There is no class Drive in the WPI libraries (I think). |
|
#6
|
|||
|
|||
|
Re: Still problem with classes...+img
Im trying to creat one....
I succeid to creat a new class but now when im trying to put the code on the cRio the DS tells me "No Code". why is that? here is my code: MainClass PHP Code:
Functions.h: PHP Code:
Functions.cpp: PHP Code:
|
|
#7
|
||||
|
||||
|
Re: Still problem with classes...+img
Quote:
Functions PHP Code:
|
|
#8
|
|||
|
|||
|
Re: Still problem with classes...+img
Still not working..
|
|
#9
|
||||
|
||||
|
Re: Still problem with classes...+img
Does it compile? It looks like it should work (of course it does nothing).
Try downloading into RAM with the target console window up. Does it print any messages about undefined symbols? When you run it can you see the FRC_RobotTask running (type 'i' to see the running tasks). |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FTC]: Problem with Code or Problem with Bluetooth? | VeedotJaydot | FIRST Tech Challenge | 3 | 27-01-2009 18:22 |
| Help!!! Question With Robotics Classes At School..? | Cactus_Robotics | Robotics Education and Curriculum | 11 | 22-02-2008 10:53 |
| Help!!! Question With Robotics Classes At School..? | Cactus_Robotics | Robotics Education and Curriculum | 1 | 19-02-2008 20:56 |
| Houston, we still have a weight problem. | Elgin Clock | Chit-Chat | 0 | 03-01-2003 15:57 |
| What keeps you off a team but still with FIRST? | Jessica Boucher | General Forum | 14 | 13-06-2001 21:37 |