Hello! So we already got the vison started. We can detect april tags in 3D but we dont have any commands for the yet. We don’t know how to start or from where to start so that the robot once it detects the april tag it aligns with it
Please help, thanks!
Basically, you want to use your position estimates to generate paths/trajectories for you to follow. You should use the swerve pose estimator in WPILib to combine your Photon Vision pose estimates with odometry. Once you have that, I recommend using Path Planner to generate trajectories to move to places on the field like the AMP autonomously.
If you’re just trying to align to point at the speaker, you don’t need to use Path Planner. Take a look at the auto-aim code that we have here.
I hope this was helpful! Let me know if you have any questions!