View Single Post
  #4   Spotlight this post!  
Unread 03-12-2014, 14:54
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Running two commands at once, but both commands use the same motors.

Quote:
Originally Posted by jreneew2 View Post
For example, if the rotate to angle command said the front right wheel should have a speed of -1 it sets the speed. But, what if the drive command tells the same wheel to have a speed of 1 at the same time? Which one has priority?
Both will attempt to tell it to drive at the different speeds and you will get erratic behavior from the motor, that is why it is a bad idea to have multiple commands attempting the run the same motors.
Reply With Quote