Teleop Command Error

I’m following the command based documentation on wpilib, trying to run our drivebase during teleop. However I get this error in my terminal when I try to build and deploy.

1 Like

The compiler error is due to this line in Teleop.h:

class Teleop 
    : public frc2::CommandHelper<frc2::CommandBase, Drive> {

Drive needs to be Teleop here (matching the name of the class).

The other problem you’ll run into is that ExampleCommand::Execute() is never defined, which unfortunately also leads to a not-straightforward error message.

1 Like

I will update back on Monday, Thank you so much.

I made the edit, got rid of the example command and it deploys successfully! Thank you!