timer is an instance variable of Fenrir, which is our main robot class that inherits from IterativeRobot. When we run the above code, it constantly prints 0 and never changes. We’ve also tried using the HasPeriodPassed() and GetFPGATimestamp() methods, but they don’t work either. What could the problem be?
This seems odd to me. But the one missing item would be timer.Reset() in AutonomousInit() … OH and another thing comes to mind… put a printf in AutonomousInit() to ensure you’ve really gotten in there. If you never get the .Start…then you’ll always get zero.