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

hitechnic-irseeker-v1.h File Reference

HiTechnic IR Seeker driver. More...

#include "common.h"

Go to the source code of this file.

Defines

#define HTIRS_I2C_ADDR   0x02
#define HTIRS_OFFSET   0x42
#define HTIRS_DIR   0x00
#define HTIRS_SSTR1   0x01
#define HTIRS_SSTR2   0x02
#define HTIRS_SSTR3   0x03
#define HTIRS_SSTR4   0x04
#define HTIRS_SSTR5   0x05

Functions

int HTIRSreadDir (tSensors link)
bool HTIRSreadAllStrength (tSensors link, int &dcS1, int &dcS2, int &dcS3, int &dcS4, int &dcS5)
int HTIRSreadDir (tMUXSensor muxsensor)
bool HTIRSreadAllStrength (tMUXSensor muxsensor, int &dcS1, int &dcS2, int &dcS3, int &dcS4, int &dcS5)

Variables

tConfigParams HTIRS_config = {HTSMUX_CHAN_I2C, 7, 0x02, 0x42}
tByteArray HTIRS_I2CRequest
tByteArray HTIRS_I2CReply

Detailed Description

HiTechnic IR Seeker driver.

hitechnic-irseeker-v1.h provides an API for the HiTechnic IR Seeker.

NOTE: THIS DRIVER WILL NOT WORK WITH THE IR SEEKER V2!
Use the HTDIR driver for the V2 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:
25 November 2009
Version:
0.9

Definition in file hitechnic-irseeker-v1.h.