Use units in SPI

This commit is contained in:
Peter Johnson
2019-08-24 21:28:20 -07:00
parent 07ac711b31
commit 5dd0d1b7db
4 changed files with 82 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ PIDController::PIDController(double Kp, double Ki, double Kd, double Kf,
double period)
: PIDBase(Kp, Ki, Kd, Kf, source, output) {
m_controlLoop = std::make_unique<Notifier>(&PIDController::Calculate, this);
m_controlLoop->StartPeriodic(period);
m_controlLoop->StartPeriodic(units::second_t(period));
}
PIDController::~PIDController() {