br3ttb / Arduino-PID-AutoTune-Library

416 stars 225 forks source link

use sampleTime from PID #3

Closed t0mpr1c3 closed 12 years ago

t0mpr1c3 commented 12 years ago

Wouldn't it make sense to have sampleTime in the auto tuner as some multiple (>=1) of the sampleTime used in the PID.

br3ttb commented 12 years ago

I had thought to do this originally, but that would require passing a reference to a PID object. I kind of like the idea that this Library is a completely separate entity, more easily modded to fit the needs of others.

t0mpr1c3 commented 12 years ago

That figures, it is more flexible that way. I had envisaged attributes of the PID class being inherited by the Auto Tuner.