|
Re: Adding more motors for tank drive
Not familiar with Python, but it should be as simple as either adding 2 new speed controller objects to your RobotDrive object, or if you aren't using a robotdrive object, just add 2 more motor controllers and address them like you do the other 2.
Edit: You might need to add a constructor inside of the robotdrive class that accepts 4 speed controllers, and assigns them to each side of the robot correctly.
Post your code?
__________________
1771- Programmer, Captain, Drive Team (2009-2012)
4509- Mentor (2013-2015)
1771- Mentor (2015)
Last edited by nighterfighter : 23-02-2016 at 13:10.
|