GET_PID_GAINS

PID_GAINS

# Modify control loop gains
#   The "loop" field may be either the label of a feedback variable if
#   the loop is a user loop or one of the following macros for dyno or
#   throttle control:
#                  DYNO_SPEED_GAINS
#                  DYNO_DYNO_TORQUE_GAINS
#                  DYNO_NET_TORQUE_GAINS
#                  DYNO_OTHER_GAINS
#                  DYNO2_SPEED_GAINS
#                  DYNO2_DYNO_TORQUE_GAINS
#                  DYNO2_NET_TORQUE_GAINS
#                  DYNO2_OTHER_GAINS
#                  THROT_GROSS_TORQUE_GAINS
#                  THROT_NET_TORQUE_GAINS
#                  THROT_SPEED_GAINS
#                  THROT_OTHER_GAINS
#
#Note: the gains may be entered as a constant, variable label, or
#      computed expression.  The gains have units of [none] and if
#      a numerical value without units is entered as below, the units
#      of [none] will be assumed.

   
@PID_GAINS
   #loop                     Prop        Integral       Derivative
   DYNO_SPEED_GAINS           -.1         -.01           0.0
   THROT_GROSS_TORQUE_GAINS   .01          .001          0.0
   int_man_t                  int_pg       int_ig        int_dg


# The @GET_PID_GAINS keyword can be used to retrieve the current value
# of the gains and store them in real variables

@GET_PID_GAINS
   #loop                      prop_var       integral_var      derivative_var
   DYNO_SPEED_GAINS           dyno_pg        dyno_ig           dyno_dg
   THROT_GROSS_TORQUE_GAINS   thrg_pg        thrg_ig
   int_man_t                  int_pg         int_ig            int_dg