#! /bin/bash -norc
#
#==========================================================================
#  Abs:  update feedback actuator reference values with current setting
#        Update all transverse feedbacks
#  Author:  W. Colocho 29/11/2010
#  Mods:
#  
#  This scirpt calls update_act_refs for each transverse feedback
#===========================================================================

echo "Press y (yes) to replace values, or return to abort ..."
read ANSWER
if test "$ANSWER" == "y"
then
  update_act_refs B5L0 $ANSWER
  update_act_refs INL0 $ANSWER
  update_act_refs INL1 $ANSWER
  update_act_refs INL2 $ANSWER
  update_act_refs INL3 $ANSWER
  update_act_refs INL4 $ANSWER
  update_act_refs B1L0 $ANSWER
  update_act_refs L2L0 $ANSWER
  update_act_refs L3L0 $ANSWER 
  update_act_refs L280 $ANSWER
  update_act_refs BSY0 $ANSWER
  update_act_refs DL20 $ANSWER
  update_act_refs LTU0 $ANSWER
  update_act_refs LTL0 $ANSWER
  update_act_refs UND0 $ANSWER
  # now do the fast feedbacks
  fbckupdateactrefs.py all
else
    echo "aborting: no references were replaced"
fi
exit
for 
