Class Hierarchy   Compound List   File List   Compound Members   File Members  

direct-sensor.c File Reference

direct sensor access. More...

Defines

Enumerations

Functions

Variables


Detailed Description

direct sensor access.

Author(s):
Markus L. Noga <noga@inrialpes.fr>


Function Documentation

void ds_rotation_set (unsigned * const sensor, int pos)

set rotation to an absolute value.

Parameters:
sensor - the sensor address, can be &SENSOR_1, &SENSOR_2 or &SENSOR_3
pos - desired absolute position

axis should be inert during the function call

void ds_rotation_handler ()

process rotation sensor on current A/D channel.

See also:
ds_channel current channel (global input value)

void ds_init (void)

initialize sensor a/d conversion.

all sensors set to passive mode rotation tracking disabled

void ds_shutdown (void)

shutdown sensor a/d conversion.

all sensors set to passive mode


legOS-0.1.7 is released under Mozilla Public License. Original code © 1998-1999 by Markus L. Noga.