commit | 15ca98555b21c803eef4ab3aff8e67dffffc5049 | [log] [tgz] |
---|---|---|
author | Brian Silverman <brians> | Sun Mar 17 18:24:15 2013 -0700 |
committer | Brian Silverman <brians> | Sat Mar 30 16:35:11 2013 -0700 |
tree | 8e38922eef58368cc465624897f68b09a1c23cf0 | |
parent | 9ba2bc432b3f979ac6fa19e8f240b19dca40718e [diff] [blame] |
implemented checking for late sensor packets
diff --git a/aos/common/control_loop/ControlLoop-tmpl.h b/aos/common/control_loop/ControlLoop-tmpl.h index 018a2f5..a5666a9 100644 --- a/aos/common/control_loop/ControlLoop-tmpl.h +++ b/aos/common/control_loop/ControlLoop-tmpl.h
@@ -115,7 +115,7 @@ template <class T, bool has_position> void ControlLoop<T, has_position>::Run() { while (true) { - ::aos::time::PhasedLoopXMS(kLoopFrequency.ToMSec(), 0); + time::SleepUntil(NextLoopTime()); Iterate(); } }