Exemplo n.º 1
0
        public int GetChWidth(int n)
        {
            int ans;

            lock (this.pidMutex)
            {
                PID ch = this.pids[n - 1];
                ans = (int)Math.Round(ch.GetValue() * ch.GetSpan() + ch.GetOffset());
            }
            return(ans);
        }
Exemplo n.º 2
0
        public byte GetCh(int n)
        {
            byte ans;

            lock (this.pidMutex)
            {
                PID ch = this.pids[n - 1];
                ans = ch.GetValue();
            }
            return(ans);
        }