Skip to content

Commit

Permalink
Remove calls to zeroOffset() in Longitudinal.cc to stop SXR loop from…
Browse files Browse the repository at this point in the history
… snapping

        to HXR value when the beam trips off
  • Loading branch information
jamock committed Aug 22, 2020
1 parent 5448b7f commit a9a7cbc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
5 changes: 5 additions & 0 deletions RELEASE_NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
# 2018, W. Williams (ernesto)
#
#==============================================================
R3.2.1: 25-August-2020 J. Mock (jmock)
* Remove calls to zeroOffset() in Longitudinal.cc to stop SXR loop from snapping
to HXR value when the beam trips off
* Also comment out _referenceOffset = 0 in ActuatorDevice.cc::clear() for same reason

R3.2.0: 25-August-2020 R.Reno (rreno)
* Add ability to select BY1 energy source at IOC startup
* Fixed bug where error handling code for an FCOM channel creation failure would never run
Expand Down
2 changes: 1 addition & 1 deletion fastFeedbackApp/src/framework/ActuatorDevice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void ActuatorDevice::clear() {
Device::clear();
_nextWrite = 0;
_droppedPoints = 0;
_referenceOffset = 0;
//_referenceOffset = 0;
Log::getInstance() << Log::flagOffset << Log::dpInfo
<< "ActuatorDevice::clear() _referenceOffset=0"
<< Log::dp;
Expand Down
18 changes: 12 additions & 6 deletions fastFeedbackApp/src/framework/Longitudinal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,8 @@ int Longitudinal::selectStates() {
_latestMeasurementsSum[0] = 0;

// Zero actuator offsets!
actuatorDevice->zeroOffset();
//2020-08-21 J. Mock remove this for dual energy operation
//actuatorDevice->zeroOffset();
}
stateDevice->setUsedBy(stateUsed);
actuatorDevice->setUsedBy(stateUsed);
Expand Down Expand Up @@ -1252,7 +1253,8 @@ int Longitudinal::selectStates() {
_latestMeasurementsSum[1] = 0;

// Zero actuator offsets!
actuatorDevice->zeroOffset();
//2020-08-21 J. Mock remove this for dual energy operation
//actuatorDevice->zeroOffset();
}

stateDevice->setUsedBy(stateUsed);
Expand Down Expand Up @@ -1338,7 +1340,8 @@ int Longitudinal::selectStates() {
_latestMeasurementsSum[2] = 0;

// Zero actuator offsets!
actuatorDevice->zeroOffset();
//2020-08-21 J. Mock remove this for dual energy operation
//actuatorDevice->zeroOffset();
}
stateDevice->setUsedBy(stateUsed);
actuatorDevice->setUsedBy(stateUsed);
Expand Down Expand Up @@ -1417,7 +1420,8 @@ int Longitudinal::selectStates() {
_latestMeasurementsSum[3] = 0;

// Zero actuator offsets!
actuatorDevice->zeroOffset();
//2020-08-21 J. Mock remove this for dual energy operation
//actuatorDevice->zeroOffset();
}
stateDevice->setUsedBy(stateUsed);
actuatorDevice->setUsedBy(stateUsed);
Expand Down Expand Up @@ -1498,7 +1502,8 @@ int Longitudinal::selectStates() {
_latestMeasurementsSum[4] = 0;

// Zero actuator offsets!
actuatorDevice->zeroOffset();
//2020-08-21 J. Mock remove this for dual energy operation
//actuatorDevice->zeroOffset();
}
stateDevice->setUsedBy(stateUsed);
actuatorDevice->setUsedBy(stateUsed);
Expand Down Expand Up @@ -1652,7 +1657,8 @@ int Longitudinal::selectStates() {
_latestMeasurementsSum[5] = 0;

// Zero actuator offsets!
actuatorDevice->zeroOffset();
//2020-08-21 J. Mock remove this for dual energy operation
//actuatorDevice->zeroOffset();
}
stateDevice->setUsedBy(stateUsed);
actuatorDevice->setUsedBy(stateUsed);
Expand Down

0 comments on commit a9a7cbc

Please sign in to comment.