Formula for controlling the movement of a tank-like vehicle?

前端 未结 10 1766
情话喂你
情话喂你 2021-01-05 18:13

Anyone know the formula used to control the movement of a simple tank-like vehicle?

To \'steer\' it, you need to alter the force applied the left and right \"wheels\

10条回答
  •  独厮守ぢ
    2021-01-05 18:14

    Change in angle (in radians/sec) = (l-r)/(radius between treads)
    Velocity = l+r
    

    For the dtheta, imagine you had a wooden pole between your two hands, and you want to calculate how much it rotates depending on how hard and which way your hands are pressing - you want to figure out:

    how much surface distance on the pole you cover per sec -> how many rotations/sec that is -> how many radians/sec (i.e. mult by 2pi)

提交回复
热议问题