Uhh, I guess it doesn't really...you're the first to notice!
That's an oversight on my behalf as far as the example goes. However, if you clamp the output to +/-255 using pid_Out_Clamp=255 I think it'll work as shown. I think PBP is smart enough to only get the low byte of the word in this case.
All internal calculations in the PID filter are based on word-sized variables so pid_Out should and must be a WORD.
/Henrik.
Bookmarks