View Single Post
  #3   Spotlight this post!  
Unread 19-01-2010, 09:38
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Vision tracking: Did they get it right?

Quote:
Originally Posted by rjbarra View Post
It uses RobertDrive class which does not support crab drive
I assume you're referring to the "RobotDrive" class.

It would be easy enough to create your own CrabDrive class which extends the RobotDrive class. This would allow you to pass a CrabDrive to the vision code and have it work properly.

Code:
class CrabDrive : RobotDrive {
 //build your class here. 
}
Yay for inheritance and OOP!
Reply With Quote