| ||||||
MicroInfinity CruizCore XG1300L driver. More...
#include "common.h"Go to the source code of this file.
Defines | |
| #define | MICC_I2C_ADDR 0x02 |
| #define | MICC_ACC_ANG 0x42 |
| #define | MICC_TURN_RATE 0x44 |
| #define | MICC_X_ACCEL 0x46 |
| #define | MICC_Y_ACCEL 0x48 |
| #define | MICC_Z_ACCEL 0x4A |
| #define | MICC_CMD_RESET 0x60 |
| #define | MICC_CMD_RANGE_2G 0x61 |
| #define | MICC_CMD_RANGE_4G 0x62 |
| #define | MICC_CMD_RANGE_8G 0x63 |
| #define | MICCsetRange2G(x) MICCsendCmd(x, MICC_CMD_RANGE_2G) |
| #define | MICCsetRange4G(x) MICCsendCmd(x, MICC_CMD_RANGE_4G) |
| #define | MICCsetRange8G(x) MICCsendCmd(x, MICC_CMD_RANGE_8G) |
| #define | MICCreset(x) MICCsendCmd(x, MICC_CMD_RESET) |
Functions | |
| int | MICCreadRelativeHeading (tSensors link) |
| int | MICCreadTurnRate (tSensors link) |
| bool | MICCreadAccel (tSensors link, int &x_accel, int &y_accel, int &z_accel) |
| bool | MICCsendCmd (tSensors link, ubyte command) |
Variables | |
| tByteArray | MICC_I2CRequest |
| tByteArray | MICC_I2CReply |
MicroInfinity CruizCore XG1300L driver.
microinfinity-cruizcore.h provides an API for the MicroInfinity CruizCore XG1300L 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 microinfinity-cruizcore.h.
1.7.2