src/main/java/com/kennedyrobotics/hardware/sensors/HeadingProvider.java
package com.kennedyrobotics.hardware.sensors;

import edu.wpi.first.math.geometry.Rotation2d;

public interface HeadingProvider {
    /**
     * Get the current Heading/Yaw angle of the sensor
     * @return current heading of the sensor
     */
    Rotation2d getHeading();

    /**
     * Set the real word heading of the sensor. After this call all calls to getHeading will be adjusted to reflect
     * this new offset
     * @param realWorldHeading current real world heading of the robot.
     */
    void setAngle(Rotation2d realWorldHeading);
}
