GenericGyro

Functions

Link copied to clipboard
abstract fun getPitch(): Double
Link copied to clipboard
abstract fun getRoll(): Double
Link copied to clipboard
abstract fun getYaw(): Double

Gets the angle the gyro is currently facing.

Link copied to clipboard
abstract fun getYawRotation2d(): Rotation2d
Link copied to clipboard
abstract fun mergePitchRoll(): Vector2
Link copied to clipboard
abstract fun setYawOffset(currentPos: Double = 0.0)

Sets the angle offset of the gyro to the current direction.