Go to Post "Nuclear" is pronounced "nu kli Er." It is NOT pronounced "nu kU ler." When you use this pronunciation, no matter how smart you may actually be, you sound like an illiterate dolt (are you listening, Mr. Bush?). - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 10-02-2017, 20:51
charlier999's Avatar
charlier999 charlier999 is offline
Registered User
FRC #1662 (Raptor Force Engineering)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2013
Location: Lodi, CA
Posts: 19
charlier999 is an unknown quantity at this point
Post Help! Timer Function in WPIlib.h

I found this inside of the WPI libary
PHP Code:
[url="http://first.wpi.edu/FRC/roborio/release/docs/cpp/classfrc_1_1Timer.html#a5f16e8da27d2a5a5242dead46de05d97"]http://first.wpi.edu/FRC/roborio/release/docs/cpp/classfrc_1_1Timer.html#a5f16e8da27d2a5a5242dead46de05d97[/url] 
I put the line
Code:
Timer::Timer();
into the code.
Timer::Timer() means
PHP Code:
Create a new timer object.

Create a new timer object and reset the time to zeroThe timer is initially not running and must be started
When I built the code in eclipse, it came back with this error >
Code:
error: cannot declare member function 'frc::Timer::Timer' within 'Robot'
  Timer::Timer();
               ^
I don't know why its doing this. If you know please tell.

Thx.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:41.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi