Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Defines | Functions | Variables

hitechnic-accelerometer.h File Reference

HiTechnic Acceleration Sensor driver. More...

#include "common.h"

Go to the source code of this file.

Defines

#define HTAC_I2C_ADDR   0x02
#define HTAC_OFFSET   0x42
#define HTAC_X_UP   0x00
#define HTAC_Y_UP   0x01
#define HTAC_Z_UP   0x02
#define HTAC_X_LOW   0x03
#define HTAC_Y_LOW   0x04
#define HTAC_Z_LOW   0x05

Functions

bool HTACreadAllAxes (tSensors link, int &x, int &y, int &z)
bool HTACreadAllAxes (tMUXSensor muxsensor, int &x, int &y, int &z)

Variables

tConfigParams HTAC_config = {HTSMUX_CHAN_I2C, 6, 0x02, 0x42}
tByteArray HTAC_I2CRequest
tByteArray HTAC_I2CReply

Detailed Description

HiTechnic Acceleration Sensor driver.

hitechnic-accelerometer.h provides an API for the HiTechnic Acceleration Sensor.

Changelog:

Credits:

License: You may use this code as you wish, provided you give credit where its due.

THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.

Author:
Xander Soldaat (xander_at_botbench.com)
Date:
20 February 2011
Version:
0.7

Definition in file hitechnic-accelerometer.h.