PR2 / pr2_ethercat_drivers

Drivers for the ethercat system and the peripherals on the PR2.
14 stars 13 forks source link

pr2_ethercat should produce diagnostic errors when accelerometer is in a bad state (ros ticket #3882) #16

Closed ahendrix closed 11 years ago

ahendrix commented 11 years ago

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:

ahendrix commented 11 years ago

[dking] Already in Cturtle/Unstable