From: Robotics P. u. h. l. <rob...@li...> - 2007-08-25 17:33:16
|
Hello, You are correct, that is a bug. Thanks for the fix. -nate On 8/22/07, Robotics Primer users help list <rob...@li...> wrote: > I downloaded the Wookbook code from the website and I believe there is a bug on the create driver. > At file roboticsprimer-0.1/create/create.c > function set_speed, line 378 > > int16_t rightVel = linear_speed + (angular_speed/1e2) * CR8_HALF_AXLE_LENGTH; > int16_t leftVel = linear_speed - (angular_speed/1e2) * CR8_HALF_AXLE_LENGTH; > > it should be > int16_t rightVel = linear_speed + (angular_speed/1e3) * CR8_HALF_AXLE_LENGTH; > int16_t leftVel = linear_speed - (angular_speed/1e3) * CR8_HALF_AXLE_LENGTH; > > since CR8_HALF_AXLE_LENGTH was defined in mm at create.h. > > Thanks, > Marcos > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Roboticsprimer-users mailing list > Rob...@li... > https://lists.sourceforge.net/lists/listinfo/roboticsprimer-users > |