|
Re: Accelerometer
yes, to initialize a variable you can do this:
Type name(params);
RobotDrive myRobot(1,2);
myRobot.Drive(1,0):
or
Type* name = new Type(poarams);
RobotDrive* myRobot = new RobotDrive(1,2);
myRobot->Drive(1,0);
and in the destructor
delete myRobot;
I reccomend the first way
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
|