blob: 4a8ab91c1c9ddfa24892cf886792b33e6ac7a5cb [file] [log] [blame]
#include "aos/common/control_loop/control_loop.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