WPILib 2012
WPILibRoboticsLibraryforFRC
CInterfaces/CAccelerometer.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2008. All Rights Reserved.                                                         */
00003 /* Open Source Software - may be modified and shared by FRC teams. The code   */
00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
00005 /*----------------------------------------------------------------------------*/
00006 
00007 #ifndef _C_ACCELEROMETER_H
00008 #define _C_ACCELEROMETER_H
00009 
00010 float GetAcceleration(UINT32 channel);
00011 float GetAcceleration(UINT8 moduleNumber, UINT32 channel);
00012 void SetAccelerometerSensitivity(UINT32 channel, float sensitivity);
00013 void SetAccelerometerSensitivity(UINT8 moduleNumber, UINT32 channel, float sensitivity);
00014 void SetAccelerometerZero(UINT32 channel, float zero);
00015 void SetAccelerometerZero(UINT8 moduleNumber, UINT32 channel, float zero);
00016 void DeleteAccelerometer(UINT32 channel);
00017 void DeleteAccelerometer(UINT8 moduleNumber, UINT32 channel);
00018 
00019 typedef void *AccelerometerObject;
00020 
00021 AccelerometerObject CreateAccelerometer(UINT32 channel);
00022 AccelerometerObject CreateAccelerometer(UINT8 moduleNumber, UINT32 channel);
00023 float GetAcceleration(AccelerometerObject o);
00024 void SetAccelerometerSensitivity(AccelerometerObject o, float sensitivity);
00025 void SetAccelerometerZero(AccelerometerObject o, float zero);
00026 void DeleteAccelerometer(AccelerometerObject o);
00027 
00028 #endif
00029 
 All Classes Functions Variables