![]() |
Help! Timer Function in WPIlib.h
I found this inside of the WPI libary
PHP Code:
Code:
Timer::Timer();Timer::Timer() means PHP Code:
Code:
error: cannot declare member function 'frc::Timer::Timer' within 'Robot'Thx. |
Re: Help! Timer Function in WPIlib.h
Try using this instead: frc::Timer()
|
Re: Help! Timer Function in WPIlib.h
Quote:
PHP Code:
|
Re: Help! Timer Function in WPIlib.h
Timer is not a function. It is an object. This should work:
Code:
#include <IterativeRobot.h>https://github.com/wpilibsuite/Eclip.../src/Robot.cpp |
Re: Help! Timer Function in WPIlib.h
PHP Code:
Thx. |
Re: Help! Timer Function in WPIlib.h
If you have a timer defined, you can Get() what its time is. For example,
Code:
timer = new frc::Timer(); |
| All times are GMT -5. The time now is 19:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi