blob: ea62d8576a5ba54165908cbf34edaa233cdffed3 [file] [log] [blame]
#include "aos/common/control_loop/ControlLoop.h"
namespace aos {
namespace control_loops {
time::Time NextLoopTime(time::Time start) {
return (start / static_cast<int32_t>(kLoopFrequency.ToNSec())) *
static_cast<int32_t>(kLoopFrequency.ToNSec()) +
kLoopFrequency;
}
} // namespace control_loops
} // namespace aos