View Single Post
  #6   Spotlight this post!  
Unread 03-02-2012, 23:53
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PID drive paramiters?

Quote:
Originally Posted by techkid86 View Post
what's the motor connected to?
black Jag PWM
what's the business end of the motor connected to?


Quote:
is the encoder signal going to the Jag or the DS?
Digital Sidecar
are you getting a proper signal from the encoder? e.g. if you run the motor open loop and just read the encoder value, does it change linearly with the open-loop voltage supplied to the motor?

Quote:
what PID are you using?
PIDController
I assume you mean from from WPIlib?


Quote:
what value of setpoint are you using?
every few seconds, it alternates between 0, and 0.3
0 and .3 what? fraction of 100% command?


Quote:
how did you scale the value of the encoder?
what ever the default is. that there could be the problem, but i am unsure.
you need to scale the encoder signal so that it corresponds to the setpoint. otherwise the PID cannot form a proper error signal.

Reply With Quote