Hier ook al gekeken? In de file asuro.c zit een routine die phototransistors aanstuurt, misschien is dat wat...
En
hier een handleiding van 10MB op pdf-formaat. Het gaat om T9 en T10 zo te zien...
Volgens die handleiding zouden met onderstaande code de transistors gedurende 1 seconde moeten worden uitgelezen:
// D13D14.cpp
#include <time.h>
#include <asuro.h>
void ReadTransistors( clock_t delay );
int main( int argc, char * argv ) {
// 1 second
ReadTransistors( ( clock_t )1 * CLOCKS_PER_SEC );
return 0;
}
void ReadTransistors( clock_t delay ) {
clock_t c;
// Allocate storage
unsigned int data[2];
Init();
// Switch ON line trace illumination
FrontLED( ON );
// Switch ON line trace illumination
MotorDir( FWD, FWD );
c = delay + clock();
// 1 second loop, ASURO should follow
while( c > clock() ) {
// Scanning the refl ected light-sensors.
OdometrieData( data );
// left brighter than right
if( data[0] > data[1] ) {
// ... speed up left motor
MotorSpeed( 200, 150 );
} else {
// ... speed up right motor
MotorSpeed( 150, 200 );
}
}
}