|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||
|
||||
|
Re: Help! Timer Function in WPIlib.h
Timer is not a function. It is an object. This should work:
Code:
#include <IterativeRobot.h>
#include <Timer.h>
class Robot: public frc::IterativeRobot {
public:
void RobotInit() {
timer = new frc::Timer();
}
private:
frc::Timer* timer;
};
START_ROBOT_CLASS(Robot)
https://github.com/wpilibsuite/Eclip.../src/Robot.cpp |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|