Closed rsantos88 closed 6 years ago
There was a reason for sending more than 3 different values: being able to control the grip torque.
Obviating that fact (it has passive compliance anyway), some of the minimum requirements would be the following:
uint8_t msg_position_target[]= {0x00}
(remove comment on 8 bytes): https://github.com/roboticslab-uc3m/yarp-devices/blob/a101bc52e883dd4f84788212b6104dc28b0e6d4e/libraries/YarpPlugins/LacqueyFetch/IPositionControl2RawImpl.cpp#L36-1
to 2
and use unsigned chars (only 8-bit assured by C) on both ends.In views of the legacy-PIC code, protocol will be:
0xA0 -> Mantener abriendo
0xC0 -> Mantener cerrando
0xF0 -> Parar (dejar de actuar, enable a 0)
Now, the mbed firmware of lacqueyFetch
is compatible with the code of the old hand PIC. Therefore, tt's not necessary to do this PR.
See the changes here: https://os.mbed.com/users/raulsr988/code/LacqueyFetch/rev/8ebb11ba21be/
It works fine.
Okay, perfect! Thanks, closing!!
Only one byte to send the order of the hand movement. Hand values sended to mbed: