On Sunday 10 January 2021 20:24:20 Jon Elson wrote: > On 01/10/2021 01:49 PM, Gene Heskett wrote: > > And I find when trying to add it, that the mesa version doesn't have > > that. So I need a way to set the pid.n.maxoutput to do the same > > thing but subtract the amount idb uses. How does that math work > > with as pwmgen scale of 46, and I can't recall the reason for that 7 > > years later. > > PID has a MAXOUTPUT parameter. (I thought there was also a > MINOUTPUT, but don't see that.) > > Jon
So I set it at 43, and because that limits the windup too, it made it slightly more accurate. But I think I've seen some fleeting time at 100% too. And I have to restrict the accel's to stay inside of a .05 error. So while its not perfect yet, it is some better. Thanks Jon. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
