addRequirements help

How do you use addRequirments, I am trying to add in my subsystem DriveSubsystem but I dont know how.
thank you

Make sure to take a look at the docs (https://docs.wpilib.org/en/latest/docs/software/commandbased/commands.html#creating-commands)

In short, you pass the subsystem into your command’s constructor, then pass that into addRequirements()

I ran into this problem and did not know how to fix it the proper way

I did just what they said in the guide thing and it still didnt work, I typed in addRequirements(subsystem); as it showed and still doesnt work. I am trying to make it require the drive subsystem.

Did you pass the drivetrain object as a parameter to the command’s constructor?

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