File tree Expand file tree Collapse file tree 6 files changed +14
-7
lines changed
openc3-cosmos-init/plugins/packages
openc3-cosmos-demo/targets/INST/screens
openc3-tool-common/src/components/widgets Expand file tree Collapse file tree 6 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ VERTICAL
12
12
13
13
VERTICALBOX "General Telemetry"
14
14
BUTTON 'Start Collect' 'api.cmd("<%= target_name %> COLLECT with TYPE NORMAL, DURATION 5")'
15
- FORMATVALUE <%= target_name %> HEALTH_STATUS COLLECTS "0x%08X" CONVERTED 14
15
+ FORMATVALUE <%= target_name %> HEALTH_STATUS COLLECTS "0x%08X" CONVERTED 16
16
16
LABELVALUE <%= target_name %> HEALTH_STATUS COLLECT_TYPE
17
17
LABELVALUE <%= target_name %> HEALTH_STATUS DURATION
18
- LABELVALUE <%= target_name %> HEALTH_STATUS ASCIICMD WITH_UNITS 30
18
+ LABELVALUE <%= target_name %> HEALTH_STATUS ASCIICMD WITH_UNITS 40
19
19
END
20
20
SETTING BACKCOLOR 163 185 163
21
21
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ HORIZONTAL
36
36
LABELVALUERANGEBAR <%= target_name %> HEALTH_STATUS TEMP2 0 100
37
37
END
38
38
VERTICALBOX "Limits Colors"
39
- LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP1 CONVERTED 5 NIL # No label
39
+ LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP1 CONVERTED 10 NIL # No label
40
40
LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP2 # Default is label with just item name
41
- LIMITSCOLOR <%= target_name %> HEALTH_STATUS GROUND1STATUS CONVERTED 5 TRUE # Full TGT/PKT/ITEM label
41
+ LIMITSCOLOR <%= target_name %> HEALTH_STATUS GROUND1STATUS CONVERTED 20 TRUE # Full TGT/PKT/ITEM label
42
42
END
43
43
END
44
44
END
Original file line number Diff line number Diff line change 16
16
# All changes Copyright 2022, OpenC3, Inc.
17
17
# All Rights Reserved
18
18
#
19
- # This file may also be used under the terms of a commercial license
19
+ # This file may also be used under the terms of a commercial license
20
20
# if purchased from OpenC3, Inc.
21
21
-->
22
22
Original file line number Diff line number Diff line change 21
21
-->
22
22
23
23
<template >
24
- <div class =" led mt-2 " :style =" [ cssProps, computedStyle] " ></div >
24
+ <div class =" led mt-1 " :style =" cssProps" ></div >
25
25
</template >
26
26
27
27
<script >
Original file line number Diff line number Diff line change 22
22
23
23
<template >
24
24
<div ref =" container" class =" d-flex flex-row" :style =" computedStyle" >
25
- <div class =" led align-self-center" :style =" [ cssProps, computedStyle] " ></div >
25
+ <div class =" led align-self-center" :style =" cssProps" ></div >
26
26
<label-widget
27
27
:parameters =" labelName"
28
28
:settings =" settings"
Original file line number Diff line number Diff line change @@ -64,6 +64,13 @@ export default {
64
64
}
65
65
this . applySetting ( style , setting )
66
66
} )
67
+ // If they haven't defined a width then we add flex to the style
68
+ if ( style [ 'width' ] === undefined ) {
69
+ // This flex allows for alignment in our widgets
70
+ // The value of '0 10 100%' was achieved through trial and error
71
+ // The larger flex-shrink value was critical for success
72
+ style [ 'flex' ] = '0 10 100%' // flex-grow, flex-shrink, flex-basis
73
+ }
67
74
return style
68
75
} ,
69
76
} ,
You can’t perform that action at this time.
0 commit comments