by FabinovX » Mon Apr 26, 2010 8:37 pm
by FabinovX
Mon Apr 26, 2010 8:37 pm
you can check every cm510 feature and each sensor port too with roboplus manager.
you can verifiy the code you use get values from the port you have connected your sensors.
in original Korean and english type A code, the check for IR sensor is at line 301.
Port5 is the one you have to connect the IR DMS sensor.
the code checks if value of port5 exceeds 200 to make the robot turn left.
as you know, the neutral value for gyro x or y axis is about 250 and if you have nothing connected, values are about 570 in my cm510 (except the one close to the DMS sensor (port6) which as aproximatly the same value of port5) .
So if your robot is always turning left, maybe you have connected one of the gyro axis to port5 or maybe you have nothing connected too.
to check if your gyro is well connected (port3 and 4 (line 879/880 in korean code and 879/880 in english code), you can shake the robot when it executes balance page motion).
then run the autonmous mode and make it fall front or back.
if the robot does'nt stand up alone, then X and Y axis are inverted and you have to swich the connection to cm510 or ports in the code.
Hope it will help.
Cheers
FabinovX
you can check every cm510 feature and each sensor port too with roboplus manager.
you can verifiy the code you use get values from the port you have connected your sensors.
in original Korean and english type A code, the check for IR sensor is at line 301.
Port5 is the one you have to connect the IR DMS sensor.
the code checks if value of port5 exceeds 200 to make the robot turn left.
as you know, the neutral value for gyro x or y axis is about 250 and if you have nothing connected, values are about 570 in my cm510 (except the one close to the DMS sensor (port6) which as aproximatly the same value of port5) .
So if your robot is always turning left, maybe you have connected one of the gyro axis to port5 or maybe you have nothing connected too.
to check if your gyro is well connected (port3 and 4 (line 879/880 in korean code and 879/880 in english code), you can shake the robot when it executes balance page motion).
then run the autonmous mode and make it fall front or back.
if the robot does'nt stand up alone, then X and Y axis are inverted and you have to swich the connection to cm510 or ports in the code.
Hope it will help.
Cheers
FabinovX