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

dexterind-gps.h File Reference

Dexter Industries GPS Sensor driver. More...

#include "common.h"

Go to the source code of this file.

Defines

#define DGPS_I2C_ADDR   0x06
#define DGPS_CMD_UTC   0x00
#define DGPS_CMD_STATUS   0x01
#define DGPS_CMD_LAT   0x02
#define DGPS_CMD_LONG   0x04
#define DGPS_CMD_VELO   0x06
#define DGPS_CMD_HEAD   0x07
#define DGPS_CMD_DIST   0x08
#define DGPS_CMD_ANGD   0x09
#define DGPS_CMD_ANGR   0x0A
#define DGPS_CMD_SLAT   0x0B
#define DGPS_CMD_SLONG   0x0C

Functions

bool DGPSreadStatus (tSensors link)
long DGPSreadUTC (tSensors link)
long DGPSreadLatitude (tSensors link)
long DGPSreadLongitude (tSensors link)
int DGPSreadVelocity (tSensors link)
int DGPSreadHeading (tSensors link)
int DGPSreadRelHeading (tSensors link)
int DGPSreadTravHeading (tSensors link)
bool DGPSsetDestination (tSensors link, long latitude, long longitude)
int DGPSreadDistToDestination (tSensors link)
long _DGPSreadRegister (tSensors link, unsigned byte command, int replysize)

Variables

tByteArray DGPS_I2CRequest
tByteArray DGPS_I2CReply

Detailed Description

Dexter Industries GPS Sensor driver.

DGPS-driver.h provides an API for the Dexter Industries GPS 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.3

Definition in file dexterind-gps.h.