frc1418 / 2018-robot

:robot: Code for our 2018 competition robot, Panthera.
MIT License
3 stars 2 forks source link

Disable LiveWindow #160

Open virtuald opened 6 years ago

virtuald commented 6 years ago

I've noticed issues this year with keeping a consistent loop period. Should figure out how to disable LiveWindow processing, I suspect it causes lots of potential overhead. Haven't actually tried to measure it yet.

This might be something that has to be fixed at the magicbot/RobotPy level... but if you have free time maybe you can look into it and make a recommendation?

ErikBoesen commented 6 years ago

We've had a couple issues with the loop period, some packet dropping too. I will make the necessary changes try this out if I get a chance when we can open our robot at worlds.

virtuald commented 6 years ago

If you have a practice roborio you can play with, I'd recommend trying it out there. A robot with a similar number of wpilib objects (they don't even have to be connected to anything) should be good enough to duplicate the loop timing issues.

https://github.com/robotpy/robotpy-wpilib-utilities/blob/master/magicbot/magicrobot.py#L170 ... I think what you want to do is override robotPeriodic and NOT call either of those functions. It would be interesting to know the difference between calling them and not calling them (using the loop timer).