locked
Rare behaviour RRS feed

  • Question

  • I created a VPL program with:
    - A GamePad service
    - A DashBoard
    - A GenericDifferentialDrive

    I connected de UpdateButtons from GamePad to an If: if button 2 is pressed then send command RotateDegress with parameters:
    Degrees: 45
    Power: 20

    If button 4 is pressed then send the same command as before but in opposite direction (Degrees: -45)

    Ran with MobileRobots.P3DX.Simulation.Manifest.xml

    In the simulation:
    If I press 5 times the button 2, the first 4 times it functions Ok, but when I pressed a fifth time the robot became to rotate at high speeds and then fly away...

    If I press 5 times button 4, I get the same behaviour.

    If I alternate button 2 with button 4 trying to make an angle less or equal to 180 (45*4 = 180) It doens't show the problem mentioned above. But as soon as I get 5 times the same button pressed I get the strange behaviour...

    Any ideas?
    Thursday, October 4, 2007 6:01 AM

Answers

  • I think I found the problem, was in this post http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1840779&SiteID=1

    Saying that there's a bug in the implementation of RotateDegrees and also in DriveDistance.
    In other post, reports the same problem when having an angle greater than 180, saying it became to turn forever.
    Friday, October 5, 2007 4:42 AM