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