Commit 67cd4122 authored by legoc's avatar legoc
Browse files

Minor improvements for VEXPController

parent db0d8641
......@@ -138,6 +138,12 @@ void VEXPController::refreshFloat64Property(SimpleProperty<float64>& property, f
// Update the value.
property = value;
}
void VEXPController::refreshFloat64PropertyWithCalculate(SimpleProperty<float64>& property, float64 value) {
// Update the value.
property = value;
// Get the mutex and notify the condition.
{
......@@ -228,6 +234,12 @@ void VEXPController::postConfiguration() {
// registerRefresher(ki, &VEXPController::refreshFloat64Property, this, incidentBeam->ki.setpoint);
// registerRefresher(kf, &VEXPController::refreshFloat64Property, this, scatteredBeam->kf.setpoint);
registerRefresher(ax, &VEXPController::refreshFloat64Property, this, tasSettings->ax);
registerRefresher(ay, &VEXPController::refreshFloat64Property, this, tasSettings->ay);
registerRefresher(az, &VEXPController::refreshFloat64Property, this, tasSettings->az);
registerRefresher(bx, &VEXPController::refreshFloat64Property, this, tasSettings->bx);
registerRefresher(by, &VEXPController::refreshFloat64Property, this, tasSettings->by);
registerRefresher(bz, &VEXPController::refreshFloat64Property, this, tasSettings->bz);
registerRefresher(ki, &VEXPController::refreshKi, this);
registerRefresher(kf, &VEXPController::refreshKf, this);
......
......@@ -46,9 +46,10 @@ public:
void refreshKi(float64 value);
void refreshKf(float64 value);
void refreshFloat64Property(SimpleProperty<float64>& property, float64 value);
// Not used anymore.
void refreshFloat64Property(SimpleProperty<float64>& property, float64 value);
void refreshFloat64PropertyWithCalculate(SimpleProperty<float64>& property, float64 value);
virtual void postConfiguration();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment