Welcome to the EyeBot  Version 7 - RPi1
A Controller For Various Hardware IO
Functions | Variables
psd_sensors.h File Reference

Header file for the PSD sensors functions. More...

#include "serial.h"
#include "types.h"

Go to the source code of this file.

Functions

int PSDInit ()
 Initialises the IO board and sets up tables from hdt.txt. More...
 
int PSDGetRaw (int psd)
 Delivers raw-data measured by the selected PSD. More...
 
int PSDGet (int psd)
 Delivers actual timestamp or distance measured by the selected PSD. More...
 

Variables

HDT_PSDPSDFirst
 
int PSDInitialised
 

Detailed Description

Header file for the PSD sensors functions.

Author
Marcus Pham

Function Documentation

int PSDGet ( int  psd)

Delivers actual timestamp or distance measured by the selected PSD.

Parameters
psdthe number of the psd to read
Returns
the actual distance in mm (converted through internal table)
int PSDGetRaw ( int  psd)

Delivers raw-data measured by the selected PSD.

Parameters
psdthe psd to read
Returns
the actual raw-data (not converted)
int PSDInit ( )

Initialises the IO board and sets up tables from hdt.txt.

Returns
0 on success, 1 otherwise