STABILITY_SPECS

#list of specifications for stability
# type_code options
#  TIME_DELAY
#     a pure time delay - it is satisfied when the specified timeout
#     has elapsed 
#        required fields:
#           timeout
#
#  VARIANCE
#     this is the difference between the minimum value and the maximum
#     value - it is satisified when this "range" of values is less than
#     the specified tolerance - 
#        required fields:
#           label
#           timeout
#           rate
#           tolerance
#
#
#  CURRENT_DEVIATION
#     this is the 
#        required fields:
#           label
#           rate
#           reference
#           tolerance
#
#  DEVIATION
#     this is computed as the absolute value of the difference between
#     the minimum and maximum deviations from the 'specified' reference -
#     it is satisfied if both the minimum and maximum are less than the
#     specified 'tolerance'
#        required fields:
#           label
#           timeout
#           rate
#           reference
#           tolerance
#      
#
#  STANDARD_DEVIATION
#     the statistical standard deviation of the values sampled within the
#     specified time window - it is satisfied if the value is less than
#     the specified 'tolerance'
#        required fields:
#           label
#           timeout
#           rate
#           tolerance
#
#  K_VARIANCE
#     this is the coefficent of variability (the standard deviation 
#     divided by the mean) - it is satisfied when the value is less
#     than the tolerance with the specified time window - it is considered
#     to be satisfied if the mean value is less than the 'min_reference'
#     value
#        required fields:
#           label
#           timeout
#           rate
#           tolerance
#           min_reference
#
#
#

# Note on field specification: 
#                  The timeout, reference, tolerance and min_ref fields
#                  may be expressed as either a
#                  constant, variable label, or a computed expression.
#                  If the reference is a constant, the units keyword must
#                  be appended as shown in the examples below.

#
# a maximum of 16 stability specifications may be used per mode

@STABILITY_SPECS 
   #type_code  label    timeout  rate  reference            tolerance  min_ref
   TIME_DELAY  -         20[sec]   
   VARIANCE    ctl_spd   10[sec]  SLO   -                      10[rpm] 
   K_VARIANCE  ctl_spd   10[sec]  SLO   1200[rpm]               5[rpm]  1000[rpm]
   DEVIATION   Dyno_torq 10[sec]  SLO   "tp_torq * .8[none]"   10.[lb_ft]
   VARIANCE    flotron    1[min]  SLO   0.0[none]              2.0[lb/hr]