|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: PID Inputs and Outputs
Quote:
I did make the setpoint and the process variable the same scale by having the second Encoder Get wired to the shift register, but the main concern is whether it is a problem having the PID control a speed based on an error in angle. My process value and outputs are angle so they can by as high as 90 degrees or more. Its the output range that I've limited to -1 to 1 in order to match motor speed. |
|
#2
|
|||||
|
|||||
|
Re: PID Inputs and Outputs
Not a problem at all. As you've observed it will simply effect the magnitude of the gains.
|
|
#3
|
|||
|
|||
|
Re: PID Inputs and Outputs
Thank you for the responses. The method works -- just needed to be careful of the integral gain that caused a periodic motion.
|
|
#4
|
|||
|
|||
|
Re: PID Inputs and Outputs
I recommend removing the error wire between the Motor SetOutput and the Encoder Get. This will allow those two independent operations to run in parallel.
-Joe |
|
#5
|
|||
|
|||
|
Re: PID Inputs and Outputs
Quote:
Also in the image, the encoder should be started |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|