Allowed sharing of common C++ code between RoboRIO and Simulation.

Change-Id: I8bf2bda9df389c13ae0567a62dbf0ca931ceb6f8
This commit is contained in:
Alex Henning
2014-08-08 17:05:49 -04:00
committed by Thomas Clark
parent b371600f0f
commit 7c8124d76c
242 changed files with 536 additions and 4710 deletions

View File

@@ -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;