class PidControl
Defined at line 21 of file ../../src/media/audio/lib/clock/pid_control.h
PidControl implements a PID (proportional-integral-derivative) feedback control based on a set of
coefficients and a sequence of TuneForError calls that inform PidControl of measured errors at
certain points in time.
Public Methods
void Start (zx::time start_time)
Set the start time and reset the PID controller
Defined at line 28 of file ../../src/media/audio/lib/clock/pid_control.cc
void PidControl (const Coefficients & vals)
Defined at line 31 of file ../../src/media/audio/lib/clock/pid_control.h
void PidControl ()
Defined at line 35 of file ../../src/media/audio/lib/clock/pid_control.h
void TuneForError (zx::time time, double error)
Calling TuneForError before Start effectively starts (but does not tune) the PidControl.
Only tune_time_ and current_error_ are set, and no feedback response is generated.
Defined at line 36 of file ../../src/media/audio/lib/clock/pid_control.cc
double Read ()
Calling Read on an unstarted or untuned PidControl always returns 0 (no feedback).
Defined at line 33 of file ../../src/media/audio/lib/clock/pid_control.cc
Records
Friends
std::ostream & PidControl (std::ostream & out, const PidControl & pid)
class PidControlTest_DefaultAndReset_Test