main.xml 2.66 KB
Newer Older
1
<?xml version="1.0"?>
2 3 4 5 6 7
<!-- 
   EMULAB-COPYRIGHT
   Copyright (c) 2005 University of Utah and the Flux Group.
   All rights reserved.
  -->

8 9 10
<panel columns="1" background="#ffffff" gap="4">
  <panel weightx="1">
    <label text="Battery: " />
Timothy Stack's avatar
Timothy Stack committed
11 12
    <progressbar minimum="0" maximum="100" weightx="1"
                 value="@mgt.battery_level" />
13
    <label text=" " />
Timothy Stack's avatar
Timothy Stack committed
14 15
    <label text="@mgt.battery_level" font="bold" formatter="FLOAT_FORMAT" />
    <label text="%" font="bold" />
16 17
  </panel>

18 19
  <panel text="Wheels" border="true" columns="5" weightx="1"
         left="4" top="4" bottom="4" right="4">
20
    <label text="Left Odometer: " />
Timothy Stack's avatar
Timothy Stack committed
21 22
    <label width="10" font="bold" text="@mgt.left_odometer"
           formatter="FLOAT_FORMAT" />
23 24 25 26

    <label weightx="1" />

    <label text="Right Odometer: " />
Timothy Stack's avatar
Timothy Stack committed
27 28
    <label width="10" font="bold" text="@mgt.right_odometer"
           formatter="FLOAT_FORMAT" />
29 30

    <label text="Left Velocity: " />
Timothy Stack's avatar
Timothy Stack committed
31 32
    <label width="10" font="bold" text="@mgt.left_velocity"
           formatter="FLOAT_FORMAT" />
33 34 35 36

    <label weightx="1" />

    <label text="Right Velocity: " />
Timothy Stack's avatar
Timothy Stack committed
37 38
    <label width="10" font="bold" text="@mgt.right_velocity"
           formatter="FLOAT_FORMAT" />
39 40
  </panel>

41 42
  <panel text="Sensors" border="true" columns="5" weightx="1"
         left="4" top="4" bottom="4" right="4">
43
    <label text="Front Left: " />
Timothy Stack's avatar
Timothy Stack committed
44 45
    <label width="10" font="bold" text="@mgt.front_ranger_left"
           formatter="FLOAT_FORMAT" />
46 47 48 49

    <label weightx="1" />

    <label text="Front Right: " />
Timothy Stack's avatar
Timothy Stack committed
50 51
    <label width="10" font="bold" text="@mgt.front_ranger_right"
           formatter="FLOAT_FORMAT" />
52 53

    <label text="Side Left: " />
Timothy Stack's avatar
Timothy Stack committed
54 55
    <label width="10" font="bold" text="@mgt.side_ranger_left"
           formatter="FLOAT_FORMAT" />
56 57 58 59

    <label weightx="1" />

    <label text="Side Right: " />
Timothy Stack's avatar
Timothy Stack committed
60 61
    <label width="10" font="bold" text="@mgt.side_ranger_right"
           formatter="FLOAT_FORMAT" />
62 63

    <label text="Rear Left: " />
Timothy Stack's avatar
Timothy Stack committed
64 65
    <label width="10" font="bold" text="@mgt.rear_ranger_left"
           formatter="FLOAT_FORMAT" />
66 67 68 69

    <label weightx="1" />

    <label text="Rear Right: " />
Timothy Stack's avatar
Timothy Stack committed
70 71
    <label width="10" font="bold" text="@mgt.rear_ranger_right"
           formatter="FLOAT_FORMAT" />
72 73 74
  </panel>

  <separator />
75

Timothy Stack's avatar
Timothy Stack committed
76
  <textarea outlet="log" wrap="false" weightx="1" weighty="1" border="true"
77 78 79
            editable="false" />

  <separator />
80 81
  
  <panel weightx="1">
Timothy Stack's avatar
Timothy Stack committed
82
    <label outlet="status" font="italic" />
83 84
    <label weightx="2" />
    <label text="Update Interval: " font="9" valign="center" />
Timothy Stack's avatar
Timothy Stack committed
85
    <label outlet="lastUpdate" font="9" valign="center" />
86
    <label weightx="2" />
Timothy Stack's avatar
Timothy Stack committed
87
    <button text="Reconnect" action="reconnect()" enabled="@ut@not" />
88
  </panel>
89

90
</panel>