WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
AnalogGyro.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2016-2017. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <stdint.h>
11 
12 #include "HAL/Types.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 HAL_GyroHandle HAL_InitializeAnalogGyro(HAL_AnalogInputHandle handle,
19  int32_t* status);
20 void HAL_SetupAnalogGyro(HAL_GyroHandle handle, int32_t* status);
21 void HAL_FreeAnalogGyro(HAL_GyroHandle handle);
22 void HAL_SetAnalogGyroParameters(HAL_GyroHandle handle,
23  double voltsPerDegreePerSecond, double offset,
24  int32_t center, int32_t* status);
25 void HAL_SetAnalogGyroVoltsPerDegreePerSecond(HAL_GyroHandle handle,
26  double voltsPerDegreePerSecond,
27  int32_t* status);
28 void HAL_ResetAnalogGyro(HAL_GyroHandle handle, int32_t* status);
29 void HAL_CalibrateAnalogGyro(HAL_GyroHandle handle, int32_t* status);
30 void HAL_SetAnalogGyroDeadband(HAL_GyroHandle handle, double volts,
31  int32_t* status);
32 double HAL_GetAnalogGyroAngle(HAL_GyroHandle handle, int32_t* status);
33 double HAL_GetAnalogGyroRate(HAL_GyroHandle handle, int32_t* status);
34 double HAL_GetAnalogGyroOffset(HAL_GyroHandle handle, int32_t* status);
35 int32_t HAL_GetAnalogGyroCenter(HAL_GyroHandle handle, int32_t* status);
36 #ifdef __cplusplus
37 }
38 #endif