Hi, I am working on a command that auto aligns to the center of the goal by rotation and we are getting some overshoot with it so I am implementing a PID control loop. However, the PIDController class takes in a PIDSource and outputs a PIDOutput, so I wrote wrapper classes to write and read raw values (like ints and floats) to a PIDOutput and PIDSource. However, when I call the Enable function on the controller, it instantly crashes. I don't really know why this is happening.
My code is here:
https://github.com/team2053tigertron...lignCenter.cpp
Any help is appreciated,
Drew