Class WsAnalogGyro


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

    • WsAnalogGyro

      public WsAnalogGyro(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 Details

    • 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.