mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Allowed sharing of common C++ code between RoboRIO and Simulation.
Change-Id: I8bf2bda9df389c13ae0567a62dbf0ca931ceb6f8
This commit is contained in:
committed by
Thomas Clark
parent
b371600f0f
commit
7c8124d76c
@@ -61,10 +61,6 @@ void PIDController::Initialize(float Kp, float Ki, float Kd, float Kf,
|
||||
float period)
|
||||
{
|
||||
m_table = NULL;
|
||||
|
||||
m_semaphore = initializeMutexRecursive();
|
||||
|
||||
m_controlLoop = new Notifier(PIDController::CallCalculate, this);
|
||||
|
||||
m_P = Kp;
|
||||
m_I = Ki;
|
||||
@@ -91,6 +87,9 @@ void PIDController::Initialize(float Kp, float Ki, float Kd, float Kf,
|
||||
m_pidOutput = output;
|
||||
m_period = period;
|
||||
|
||||
|
||||
m_semaphore = initializeMutexRecursive();
|
||||
m_controlLoop = new Notifier(PIDController::CallCalculate, this);
|
||||
m_controlLoop->StartPeriodic(m_period);
|
||||
|
||||
static int32_t instances = 0;
|
||||
|
||||
Reference in New Issue
Block a user