Class WsAnalogGyro


  • public class WsAnalogGyro
    extends AnalogInput
    Reads an analog gyro.
    • Constructor Detail

      • WsAnalogGyro

        public WsAnalogGyro​(java.lang.String p_name,
                            int p_channel,
                            boolean p_driftCompensation)
        Construct the analog gyro.
        Parameters:
        p_name - Descriptive name for the input.
        p_channel - Hardware port the gyro is connected to.
        p_driftCompensation - Drift compensation factor.
    • Method Detail

      • readRawValue

        public double readRawValue()
        Reads the value from the gyro.
        Specified by:
        readRawValue in class AnalogInput
        Returns:
        Raw value from the gyro.
      • calibrate

        public void calibrate()
        Re-calibrate the gyro.