Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadSpecialModules
Commits
67cd4122
Commit
67cd4122
authored
Sep 07, 2017
by
legoc
Browse files
Minor improvements for VEXPController
parent
db0d8641
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/controllers/vexp/VEXPController.cpp
View file @
67cd4122
...
...
@@ -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
);
...
...
src/controllers/vexp/VEXPController.h
View file @
67cd4122
...
...
@@ -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
refreshFloat64Property
WithCalculate
(
SimpleProperty
<
float64
>&
property
,
float64
value
);
virtual
void
postConfiguration
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment