View Single Post
  #5   Spotlight this post!  
Unread 01-02-2003, 18:17
GrahamS314's Avatar
GrahamS314 GrahamS314 is offline
Registered User
FRC #0314 (Megatron Oracles)
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2002
Location: Flint, MI
Posts: 8
GrahamS314 is an unknown quantity at this point
Send a message via AIM to GrahamS314
Believe it or not, the lack of parens was actually a copying error. I overlooked one.

Pertaining to negative numbers, I believe switching the sensor value and target value takes care of that problem.

The sensor pot is hooked up to the analog inputs, aliased to sensor1. The pot controlling the motor is on port 4, aliased to p4_x. All wires are 24 gauge.

stack_pos -- sensor potentiometer
sw_stacker -- OI input pot