Turret Code Help

Hey! A few days ago i asked if someone could help me to start with the basics for a turret command base code that could move its rotation following an apriltag and they did help me to know basics and make the subsystem, what happens is that i put the ap in front and the turret doesn’t follow it and doesn’t even move, if someone wants and can check it, here’s my code, thnx.

My team and I are using a neo(w/ sparkmax), a throughbore encoder, limelight 3, and the turret has a 270° rotation (135° to the right and to the left).

If you need any more information just tell me, thank you all!

2.5 or 3

I pulled your code down, and I’m not seeing enough there to do what you’re describing.

  1. Your subsystem needs a method to move the turret to a setpoint.
  2. You need to run a command that gets AprilTag data and determines how the turret needs to move, based on the data.
  3. The command should call the subsystem to move the turret.

3, i’ll edit my message, i made a mistake

I see, is there any base code or a documentation that i can see so i know how to do it?

Or could you tell me how do i do the command so that the turret could follow the ap? Tnhx anyway!!

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