001/*----------------------------------------------------------------------------*/
002/* Copyright (c) FIRST 2016-2017. All Rights Reserved.                        */
003/* Open Source Software - may be modified and shared by FRC teams. The code   */
004/* must be accompanied by the FIRST BSD license file in the root directory of */
005/* the project.                                                               */
006/*----------------------------------------------------------------------------*/
007
008package edu.wpi.first.wpilibj.hal;
009
010public class AnalogGyroJNI extends JNIWrapper {
011  public static native int initializeAnalogGyro(int halAnalogInputHandle);
012
013  public static native void setupAnalogGyro(int handle);
014
015  public static native void freeAnalogGyro(int handle);
016
017  public static native void setAnalogGyroParameters(int handle,
018                                                    double voltsPerDegreePerSecond,
019                                                    double offset, int center);
020
021  public static native void setAnalogGyroVoltsPerDegreePerSecond(int handle,
022                                                                 double voltsPerDegreePerSecond);
023
024  public static native void resetAnalogGyro(int handle);
025
026  public static native void calibrateAnalogGyro(int handle);
027
028  public static native void setAnalogGyroDeadband(int handle, double volts);
029
030  public static native double getAnalogGyroAngle(int handle);
031
032  public static native double getAnalogGyroRate(int handle);
033
034  public static native double getAnalogGyroOffset(int handle);
035
036  public static native int getAnalogGyroCenter(int handle);
037}