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

mindsensors-angle.h File Reference

Mindsensors Angle Sensor driver. More...

#include "common.h"

Go to the source code of this file.

Defines

#define MSANG_I2C_ADDR   0x30
#define MSANG_CMD_REG   0x41
#define MSANG_OFFSET   0x42
#define MSANG_ANG   0x00
#define MSANG_RAW   0x04
#define MSANG_RPM   0x08
#define MSANG_CMD_RST_ANG   0x72

Functions

int MSANGreadAngle (tSensors link)
int MSANGreadRPM (tSensors link)
int MSANGreadRaw (tSensors link)
bool MSANGresetAngle (tSensors link)

Variables

tByteArray MSANG_I2CRequest
tByteArray MSANG_I2CReply

Detailed Description

Mindsensors Angle Sensor driver.

mindsensors-angle.h provides an API for the Mindsensors Angle 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.1

Definition in file mindsensors-angle.h.