OpenC3/cosmos

View on GitHub
openc3-cosmos-init/plugins/packages/openc3-cosmos-demo/targets/INST/screens/limits.txt

Summary

Maintainability
Test Coverage
SCREEN AUTO AUTO 1.0

TITLE "<%= target_name %> Instrument Limits"

HORIZONTAL
  VERTICALBOX "Limits Bars"
    LIMITSBAR <%= target_name %> HEALTH_STATUS TEMP1
    VALUELIMITSBAR <%= target_name %> HEALTH_STATUS TEMP1
      SUBSETTING 0 WIDTH 130
    LABELVALUELIMITSBAR <%= target_name %> HEALTH_STATUS TEMP1
    # The TEMP1 limits are defined as follow:
    # LIMITS DEFAULT 1 ENABLED -80.0 -70.0 60.0 80.0 -20.0 20.0
    # Thus the following are examples of limiting the limitsbar
    LABELVALUELIMITSBAR <%= target_name %> HEALTH_STATUS TEMP1
      SUBSETTING 1 WIDTH 130
      SUBSETTING 2 MIN_VALUE -80
      SUBSETTING 2 MAX_VALUE 80
    LABELVALUELIMITSBAR <%= target_name %> HEALTH_STATUS TEMP1
      SUBSETTING 1 WIDTH 130
      SUBSETTING 2 MIN_VALUE -75
      SUBSETTING 2 MAX_VALUE 70
    LABELVALUELIMITSBAR <%= target_name %> HEALTH_STATUS TEMP1
      SUBSETTING 1 WIDTH 130
      SUBSETTING 2 MIN_VALUE -70
      SUBSETTING 2 MAX_VALUE 60
    LABELVALUELIMITSBAR <%= target_name %> HEALTH_STATUS TEMP1
      SUBSETTING 1 WIDTH 130
      SUBSETTING 2 MIN_VALUE -50
      SUBSETTING 2 MAX_VALUE 50
    LABELVALUELIMITSBAR <%= target_name %> HEALTH_STATUS TEMP1
      SUBSETTING 0 TEXTCOLOR grey
      SUBSETTING 1 WIDTH 130
      SUBSETTING 1 BORDERCOLOR grey
      SUBSETTING 2 MIN_VALUE -20
      SUBSETTING 2 MAX_VALUE 20
  END
  VERTICAL
    VERTICALBOX "Range Bars 0-100"
      RANGEBAR <%= target_name %> HEALTH_STATUS TEMP2 0 100
      VALUERANGEBAR <%= target_name %> HEALTH_STATUS TEMP2 0 100
      LABELVALUERANGEBAR <%= target_name %> HEALTH_STATUS TEMP2 0 100
    END
    VERTICALBOX "Limits Colors"
      LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP1 CONVERTED 10 NIL # No label
      LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP2 # Default is label with just item name
      LIMITSCOLOR <%= target_name %> HEALTH_STATUS GROUND1STATUS CONVERTED 20 TRUE # Full TGT/PKT/ITEM label
    END
  END
END

HORIZONTAL
  VERTICALBOX "Limits Columns"
    HORIZONTAL
      LIMITSCOLUMN <%= target_name %> HEALTH_STATUS TEMP3
        SETTING HEIGHT 200
      VALUELIMITSCOLUMN <%= target_name %> HEALTH_STATUS TEMP3
        SUBSETTING 0 WIDTH 130
      LABELVALUELIMITSCOLUMN <%= target_name %> HEALTH_STATUS TEMP3
        SUBSETTING 1 WIDTH 130
      # The TEMP3 limits are defined as follow: RL/-25 YL/-10 YH/50 RH/55
      # Thus the following are examples of limiting the limitscolumn
      LABELVALUELIMITSCOLUMN <%= target_name %> HEALTH_STATUS TEMP3
        SUBSETTING 1 WIDTH 130
        SUBSETTING 2 MIN_VALUE -25
        SUBSETTING 2 MAX_VALUE 55
      LABELVALUELIMITSCOLUMN <%= target_name %> HEALTH_STATUS TEMP3
        SUBSETTING 1 WIDTH 130
        SUBSETTING 2 MIN_VALUE -10
        SUBSETTING 2 MAX_VALUE 50
    END
  END

  # TODO: Not yet implemented
  #VERTICALBOX "Range Columns 0-100"
  #  HORIZONTAL
  #    RANGECOLUMN <%= target_name %> HEALTH_STATUS TEMP2 0 100
  #    VALUERANGECOLUMN <%= target_name %> HEALTH_STATUS TEMP2 0 100
  #    LABELVALUERANGECOLUMN <%= target_name %> HEALTH_STATUS TEMP2 0 100
  #  END
  #END
END

<%= render "_footer.txt" %>