/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2016-2017. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ /*----------------------------------------------------------------------------*/ #pragma once #include #include "HAL/Types.h" #ifdef __cplusplus extern "C" { #endif HAL_GyroHandle HAL_InitializeAnalogGyro(HAL_AnalogInputHandle handle, int32_t* status); void HAL_SetupAnalogGyro(HAL_GyroHandle handle, int32_t* status); void HAL_FreeAnalogGyro(HAL_GyroHandle handle); void HAL_SetAnalogGyroParameters(HAL_GyroHandle handle, double voltsPerDegreePerSecond, double offset, int32_t center, int32_t* status); void HAL_SetAnalogGyroVoltsPerDegreePerSecond(HAL_GyroHandle handle, double voltsPerDegreePerSecond, int32_t* status); void HAL_ResetAnalogGyro(HAL_GyroHandle handle, int32_t* status); void HAL_CalibrateAnalogGyro(HAL_GyroHandle handle, int32_t* status); void HAL_SetAnalogGyroDeadband(HAL_GyroHandle handle, double volts, int32_t* status); double HAL_GetAnalogGyroAngle(HAL_GyroHandle handle, int32_t* status); double HAL_GetAnalogGyroRate(HAL_GyroHandle handle, int32_t* status); double HAL_GetAnalogGyroOffset(HAL_GyroHandle handle, int32_t* status); int32_t HAL_GetAnalogGyroCenter(HAL_GyroHandle handle, int32_t* status); #ifdef __cplusplus } #endif