Auto not working (command based)

So when we try to run auto we get the following error and our code quits after 3 seconds in autonomous:

This is our code: https://github.com/betshaidaj/2020auton/tree/master/src/main/java/frc/robot

I’ve never encountered this error before. Any help would be appreciated! Thanks :slight_smile:

You never instantiate m_timer. You can add this line in robotInit(): m_timer = new Timer();.

Furthermore, because your autonomous command is null, the timer will never start in autonomousInit().

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.