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

mindsensors-pfmate.h File Reference

Mindsensors PFMate Sensor driver. More...

#include "common.h"

Go to the source code of this file.

Defines

#define MSPFM_I2C_ADDR   0x48
#define MSPFM_CMD   0x41
#define MSPFM_IRCHAN   0x42
#define MSPFM_MSELECT   0x43
#define MSPFM_MOTOPA   0x44
#define MSPFM_MOTSPA   0x45
#define MSPFM_MOTOPB   0x46
#define MSPFM_MOTSPB   0x47
#define MSPFM_GOCMD   0x47
#define MSPFM_MOTORAB   0x00
#define MSPFM_MOTORA   0x01
#define MSPFM_MOTORB   0x02
#define MSPFM_FLOAT   0x00
#define MSPFM_FORWARD   0x01
#define MSPFM_REVERSE   0x02
#define MSPFM_BRAKE   0x03
#define MSPFM_NOOP   0x0F

Functions

bool MSPFMcontrolMotorA (tSensors link, byte chan, byte motor_op, byte motor_speed, ubyte address=MSPFM_I2C_ADDR)
bool MSPFMcontrolMotorB (tSensors link, byte chan, byte motor_op, byte motor_speed, ubyte address=MSPFM_I2C_ADDR)
bool MSPFMcontrolMotorAB (tSensors link, byte chan, byte motorA_op, byte motorA_speed, byte motorB_op, byte motorB_speed, ubyte address=MSPFM_I2C_ADDR)

Variables

tByteArray MSPFM_I2CRequest

Detailed Description

Mindsensors PFMate Sensor driver.

mindsensors-pfmate.h provides an API for the Mindsensors PFMate Sensor driver

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:
22 July 2009
Version:
0.1

Definition in file mindsensors-pfmate.h.