by buhochileno » Tue Jun 23, 2009 3:32 pm
by buhochileno
Tue Jun 23, 2009 3:32 pm
RandomMatt wrote:For the AX-S1, I need to write some better documentation(*). In the meantime try something like:
- Code: Select all
uint8_t value = dx_get_IR_data_left(id);
Uhuuu, yeap, I now able to get my IR sensor data, very happy
, if you want I can send you the code to be added as an a example...
One issue still bug me (but is related to the srvos not the sensor), and is that it seems that I can't turn off the torque to allow manual servo manipulation, my code is like this:
...
s.servo[1].id = 101; s.servo[1].position = 0;
dx_set_compliance(101, 30, 1, 0);
dx_set_max_torque(101, TORQUE_MAX);
dx_set_torque_enable(101, 1);
...
//key switch...
case 'e':
dx_set_torque_enable(101, 1);
break;
case 'd':
dx_set_torque_enable(101, 0);
break;
...no matter how many time I press "d", servo is still lock at his position, is that may be becouse the torque is set to max?, what is a proper setting for a manual servo manipulation?
Also as different matter, make a C# test that send the typical "w" or "s" bytes to the serial port to allow control of the CM-5 program from a diferent app (want to control my program from c#) and it seems that not all the "w" are received (or correctly sended), is like I send 100 "w" (to move the servo 100 positions in a direction) and it seems to move like 10..so is not the right way to control the program/robot from outside...I also want to send trough the serial port from c# more complex commands like "m 100" to move the robot at 100 speed...Any suggestions? (all this tested with C# with mono on linux of course)
Cheers,
Mauricio
RandomMatt wrote:For the AX-S1, I need to write some better documentation(*). In the meantime try something like:
- Code: Select all
uint8_t value = dx_get_IR_data_left(id);
Uhuuu, yeap, I now able to get my IR sensor data, very happy
, if you want I can send you the code to be added as an a example...
One issue still bug me (but is related to the srvos not the sensor), and is that it seems that I can't turn off the torque to allow manual servo manipulation, my code is like this:
...
s.servo[1].id = 101; s.servo[1].position = 0;
dx_set_compliance(101, 30, 1, 0);
dx_set_max_torque(101, TORQUE_MAX);
dx_set_torque_enable(101, 1);
...
//key switch...
case 'e':
dx_set_torque_enable(101, 1);
break;
case 'd':
dx_set_torque_enable(101, 0);
break;
...no matter how many time I press "d", servo is still lock at his position, is that may be becouse the torque is set to max?, what is a proper setting for a manual servo manipulation?
Also as different matter, make a C# test that send the typical "w" or "s" bytes to the serial port to allow control of the CM-5 program from a diferent app (want to control my program from c#) and it seems that not all the "w" are received (or correctly sended), is like I send 100 "w" (to move the servo 100 positions in a direction) and it seems to move like 10..so is not the right way to control the program/robot from outside...I also want to send trough the serial port from c# more complex commands like "m 100" to move the robot at 100 speed...Any suggestions? (all this tested with C# with mono on linux of course)
Cheers,
Mauricio