RobotCasserole1736 / RobotCasserole2020

Software for Robot Casserole's 2020 FIRST Infinite Recharge competition season
MIT License
1 stars 0 forks source link

Integrate LoopTiming class from 2019 #12

Closed gerth2 closed 4 years ago

gerth2 commented 4 years ago

Pull the old loop timing class in - add start/end of loop markers.

gerth2 commented 4 years ago

Here's last year's class: https://github.com/RobotCasserole1736/RobotCasserole2019/blob/master/Robotcode/RobotCode2019/src/main/java/frc/robot/LoopTiming.java

And here's a quick set of lines of code from Robot.java where it got used:

https://github.com/RobotCasserole1736/RobotCasserole2019/blob/master/Robotcode/RobotCode2019/src/main/java/frc/robot/Robot.java#L304

https://github.com/RobotCasserole1736/RobotCasserole2019/blob/master/Robotcode/RobotCode2019/src/main/java/frc/robot/Robot.java#L396

gerth2 commented 4 years ago

Teleop, auto, and disabled periodic should each have that loop start/end marker calls.

alisonmacwong commented 4 years ago

Put the old loop timing class in at start and end of loop markers!