View Single Post
  #1   Spotlight this post!  
Unread 23-01-2012, 20:00
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Jaguar Direction Control

Hello -

I've got a fan hooked up to a PWM Jaguar speed controller. I'm trying to make the fan turn full speed when I hold button 7, and turn full speed in the opposite direction when I hold button 8.

I've linked case structures to proper buttons (see pictures below).

I've opened the motor (plugged into PWM 7) twice (one to move forward, one to move in reverse) and set the refnum name to Shooter and NegShooter (reverse). The reason I opened the motor twice was because while I could get the motor to accept one case structure (containing the correct value) as a value, I could not get the motor to accept two.


Button 8 works fine, however when I hit button 7, nothing happens. What's wrong here?

Here's some images of code.




Thanks.
Reply With Quote