nfaction / ua-ros-pkg-nfaction

Automatically exported from code.google.com/p/ua-ros-pkg
0 stars 0 forks source link

ax12_controller_core not importing PUNCH constants #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When specifying the PUNCH values for servos, the ax12_controller_core dies, 
saying it can not find the appropriate constants. 

I added the lines to joint_controller.py: 

from ax12_driver_core.ax12_const import DMXL_MIN_PUNCH
from ax12_driver_core.ax12_const import DMXL_MAX_PUNCH

(you could also just import * rather than enumerating these out...)
and it now works. If you could make these changes in your svn repository that 
would be excellent. 

Thanks, 
John 

Original issue reported on code.google.com by haro...@gmail.com on 16 Jun 2011 at 7:33

GoogleCodeExporter commented 9 years ago
Thanks for the report, fixed in r1370. I prefer to list out all my imports so 
that I know what's coming from where... that preference comes with mishaps like 
that :)

Original comment by areb...@gmail.com on 16 Jun 2011 at 7:44