View Single Post
  #4   Spotlight this post!  
Unread 19-09-2011, 08:13
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: How to set up a 3rd (non drive) motor in C++ Windriver

From my fuzzy memory...

Among your member variables:
Jaguar* pMotor;

In the body of your constructor
pMotor = new Jaguar(...); // I don't remember the specific parameters. One will be the slot your sidecar comes out of, one will be the PWM output the motor is connected on

In your operator-control code:
pMotor->Set(0.5); // partial forward. I may have gotten the function name wrong. Check out the .h file for details.