Package lib.custom.sensors
Class CustomNavx
java.lang.Object
lib.custom.sensors.CustomNavx
- All Implemented Interfaces:
IMU
NavX should be mounted to robot according to WPILib coordinates:
+X is forward, +Y is left, +Z is up
-
Field Details
-
Constructor Details
-
CustomNavx
public CustomNavx(int id) Creates a new NavX- Parameters:
id- the CAN id of the navx. For whatever reason, this must be 0. Don't ask why.
-
-
Method Details
-
getYaw
public double getYaw() -
getPitch
public double getPitch() -
getRoll
public double getRoll() -
zeroYaw
public void zeroYaw(double offset) Description copied from interface:IMUSet the current yaw to the provided rotation -
getTemperature
public double getTemperature()Description copied from interface:IMUGet current hardware temperature in freedom units (°F)- Specified by:
getTemperaturein interfaceIMU
-