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

前端 未结 10 1783
情话喂你
情话喂你 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:34

    It's not a matter of force - it depends on the difference in velocity between the 2 sides, and how long that difference holds (also the tank's width, but that's just a constant parameter).

    Basically, you should calculate it along these lines:

    • The velocity ratio between the 2 sides is the same as the radius ratio.
    • The tank's width is the actual difference between the 2 rasiuses (sp?).
    • Using those 2 numbers, find the actual values for the radius.
    • Multiply the velocity of one of the sides by the time it was moving to get the distance it traveled.
    • Calculate what part of a full circle it traveled by dividing that into that circle's perimeter.

提交回复
热议问题