It's not very obvious for the user to know when the gripper accelerometer has gotten in a bad state (and thus tries to send data at 40 Khz).
Refer to ethercat_hardware/src/wg0x.cpp L663:
{{{
int count = min(uint8_t(4), uint8_t(status->accelcount - last_status->accelcount));
}}}
pr2_ethercat should generate diagnostics errors when it detects more than 4 accel samples per realtime update. The logic could get a little tricky because of wrap-around. Nonetheless, this would be a very helpful addition.
It's not very obvious for the user to know when the gripper accelerometer has gotten in a bad state (and thus tries to send data at 40 Khz).
Refer to ethercat_hardware/src/wg0x.cpp L663: {{{ int count = min(uint8_t(4), uint8_t(status->accelcount - last_status->accelcount)); }}}
pr2_ethercat should generate diagnostics errors when it detects more than 4 accel samples per realtime update. The logic could get a little tricky because of wrap-around. Nonetheless, this would be a very helpful addition.
trac data: