SDP Hardware
Please note that the SDP hardware is not yet fully integrated with the DevBot hardware abstraction architecture. Where devices are not integrated with the hardware abstraction layer, they can be accessed via driver internal functions as described in Accessing a non-standard sensor.Contents
Motors
The motors can be accessed using the standard motor interface i.e.
bot_servomotor_set_velocity(motor_device, velocity)
Rotation sensor
The rotation sensor can be accessed using an internal function of the sdp_aboard driver.
sdp_aboard_get_rotation(aboard_device, port_index)
Light sensor
The light sensor can be accessed using an internal function of the sdp_light driver.
sdp_light_get_value(light_device)
Sensor interface boards
The aboard and pboard sensor ports can be accessed using internal functions of their respective drivers.
sdp_pboard_get_sensor(aboard, port_index) sdp_aboard_get_sensor(aboard, port_index)
Sample configuration file
For reference, here is a standard configuration file
[aboard] Driver=sdp_aboard [pboard] Driver=sdp_pboard [motor1] Driver=sdp_motors Index=1 [motor2] Driver=sdp_motors Index=3 [motor3] Driver=sdp_motors Index=5 [motor4] Driver=sdp_motors Index=7 [light] Driver=sdp_light
(c) 2006 Edinburgh Robotics Ltd.
Generated on Fri Feb 2 11:24:07 2007 for libbot by doxygen 1.5.1