generated from farm-ng/amiga-app-template-kivy
/
main.kv
79 lines (78 loc) · 2.52 KB
/
main.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Copyright (c) farm-ng, inc.
#
# Licensed under the Amiga Development Kit License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://github.com/farm-ng/amiga-dev-kit/blob/main/LICENSE
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
RelativeLayout:
Button:
id: back_btn_layout
pos_hint: {"x": 0.0, "top": 1.0}
background_color: 0, 0, 0, 0
size_hint: 0.1, 0.1
background_normal: "assets/back_button.png"
on_release: app.on_exit_btn()
Image:
source: "assets/back_button_normal.png" if self.parent.state == "normal" else "assets/back_button_down.png"
pos: self.parent.pos
size: self.parent.size
BoxLayout:
orientation: 'horizontal'
BoxLayout:
size_hint_x: 0.3
orientation: 'vertical'
Widget:
size_hint_y: 2.0
Label:
text: "Amiga State:"
font_size: 18
size_hint_y: 0.5
Label:
text: app.amiga_state
font_size: 18
Widget: # Empty placeholder
Label:
text: "Speed [m/s]:"
font_size: 18
size_hint_y: 0.5
Label:
text: app.amiga_speed
font_size: 18
Widget: # Empty placeholder
Label:
text: "Angular Rate [rad/s]:"
font_size: 18
size_hint_y: 0.5
Label:
text: app.amiga_rate
font_size: 18
Widget:
size_hint_y: 2.0
VirtualJoystickWidget:
id: joystick
TabbedPanel:
do_default_tab: False
id: tab_root
TabbedPanelItem:
text: "rgb"
Image:
id: rgb
TabbedPanelItem:
text: "disparity"
Image:
id: disparity
TabbedPanelItem:
text: "left"
Image:
id: left
TabbedPanelItem:
text: "right"
Image:
id: right