![]() |
Still problem with classes...+img
I just can make that thing work.... :(
image: ![]() |
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. |
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 :( |
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.
|
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). |
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:
|
Re: Still problem with classes...+img
Quote:
Functions PHP Code:
|
Re: Still problem with classes...+img
Still not working..
|
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). |
| All times are GMT -5. The time now is 02:30. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi