|
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 |
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.
Definition in file hitechnic-accelerometer.h.