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

Defines functions to use the PSD sensors. More...

#include "psd_sensors.h"
#include "hdt.h"

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...
 

Detailed Description

Defines functions to use the PSD sensors.

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