001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.hal;
006
007public class AnalogGyroJNI extends JNIWrapper {
008  public static native int initializeAnalogGyro(int halAnalogInputHandle);
009
010  public static native void setupAnalogGyro(int handle);
011
012  public static native void freeAnalogGyro(int handle);
013
014  public static native void setAnalogGyroParameters(
015      int handle, double voltsPerDegreePerSecond, double offset, int center);
016
017  public static native void setAnalogGyroVoltsPerDegreePerSecond(
018      int handle, double voltsPerDegreePerSecond);
019
020  public static native void resetAnalogGyro(int handle);
021
022  public static native void calibrateAnalogGyro(int handle);
023
024  public static native void setAnalogGyroDeadband(int handle, double volts);
025
026  public static native double getAnalogGyroAngle(int handle);
027
028  public static native double getAnalogGyroRate(int handle);
029
030  public static native double getAnalogGyroOffset(int handle);
031
032  public static native int getAnalogGyroCenter(int handle);
033}