TestGyro

class TestGyro(retYaw: Double = 0.0, retPitch: Double = 0.0, retRoll: Double = 0.0) : GenericGyro

Constructors

Link copied to clipboard
constructor(retYaw: Double = 0.0, retPitch: Double = 0.0, retRoll: Double = 0.0)

Functions

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

Gets the angle the gyro is currently facing.

Link copied to clipboard
open override fun getYawRotation2d(): Rotation2d
Link copied to clipboard
open override fun mergePitchRoll(): Vector2
Link copied to clipboard
open override fun setYawOffset(currentPos: Double)

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