Skip to main content Link Menu Expand (external link) Document Search Copy Copied

double Input::currentAngle

This is the current angle of the robot in degrees.

Example

class DoNothingController : public SpeedController {
public: 
    followToRet followTo(Input& input) override {
        //Kinda a bad p controller
        double dist = input.position.dist(input.target);
        return { {dist, forwardVel::pct}, {input.angleTarget - input.currentAngle, angularVel::pctDiff} };
    }
};