View Single Post
  #2   Spotlight this post!  
Unread 23-02-2016, 13:08
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
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.