mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
39 lines
1.8 KiB
C
39 lines
1.8 KiB
C
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) FIRST 2016. 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 <stdint.h>
|
|
|
|
#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
|