Revision: 7302 http://playerstage.svn.sourceforge.net/playerstage/?rev=7302&view=rev Author: thjc Date: 2009-01-26 00:45:25 +0000 (Mon, 26 Jan 2009)
Log Message: ----------- fix incorrect use of max_speed Modified Paths: -------------- code/stage/branches/release-2-1-patches/src/model_position.c Modified: code/stage/branches/release-2-1-patches/src/model_position.c =================================================================== --- code/stage/branches/release-2-1-patches/src/model_position.c 2009-01-25 23:01:28 UTC (rev 7301) +++ code/stage/branches/release-2-1-patches/src/model_position.c 2009-01-26 00:45:25 UTC (rev 7302) @@ -401,21 +401,21 @@ // differential-steering model, like a Pioneer vel->x = cmd->x; vel->y = 0; - vel->a = MIN( a_error, max_speed.a ); + vel->a = MIN( a_error, data->max_speed.a ); break; case STG_POSITION_DRIVE_OMNI: // direct steering model, like an omnidirectional robot vel->x = cmd->x; vel->y = cmd->y; - vel->a = MIN( a_error, max_speed.a ); + vel->a = MIN( a_error, data->max_speed.a ); break; case STG_POSITION_DRIVE_CAR: // car like steering model, same as differential here vel->x = cmd->x * cos(cmd->a); vel->y = 0; - vel->a = MIN( a_error, max_speed.a ); + vel->a = MIN( a_error, data->max_speed.a ); break; default: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit