AngleSensor

public abstract class AngleSensor

A class describing an abstract angle measuring device. This includes the IMU in the Control/Expansion Hub as well as any other similar sensors.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public final static AngleSensor from(Function0<Angle> getRawAngle)
public final static AngleSensor from(Function0<Angle> getRawAngle, Function0<Angle> getAngularVelocity)
Link copied to clipboard
public final Angle getAngle()
Link copied to clipboard
Link copied to clipboard
protected abstract Angle getRawAngle()

The raw angle measurement.

Link copied to clipboard
public final Unit setAngle(Angle angle)

Creates an offset so that getAngle returns angle.