DexterInd / GoPiGo3

The GoPiGo3 is a Raspberry Pi Robot!
https://gopigo.io
Other
96 stars 85 forks source link

new methods: spin_left, spin_right, steer and orbit #201

Closed CleoQc closed 6 years ago

CleoQc commented 6 years ago

spin_left() and spin_right() make the GoPiGo3 pivot around its central axis.

steer() lets you control each motor independently - which you could already do, this is just a wrapper.

orbit() will let you have the GoPiGo3 drive around an object for a certain arc length. You need to supply the radius in cm, and the arc length in degrees. A radius of 0 will yield the same behaviour as either spin_left or spin_right.

RobertLucian commented 6 years ago

Approved this PR because the problem with the orbit method actually comes from my own robot. And the documentation can always be updated on a subsequent PR in the dev branch.