-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlook.kv
113 lines (104 loc) · 3.98 KB
/
look.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<ContentNavigationDrawer>:
ScrollView:
MDList:
OneLineListItem:
text: "ArrowCounter"
on_press:
root.nav_drawer.set_state("close")
root.screen_manager.current = "ArrowCounter"
OneLineListItem:
text: "Orientation"
on_press:
root.nav_drawer.set_state("close")
root.screen_manager.current = "Orientation"
OneLineListItem:
text: "Accelerometer"
on_press:
root.nav_drawer.set_state("close")
root.screen_manager.current = "Accelerometer"
<AccelerometerScreen>:
BoxLayout:
orientation: "vertical"
size_hint: [1, .9]
BoxLayout:
Graph:
id: graph
y_grid_label : True
y_grid: True
<OrientationScreen>:
BoxLayout:
orientation: "vertical"
size_hint: [1, .9]
BoxLayout:
orientation: "vertical"
spacing: 20
Graph:
#values[0]: Azimuth, angle of rotation about the -z axis. This value represents the angle between the device's y axis and the magnetic north pole. When facing north, this angle is 0, when facing south, this angle is π. Likewise, when facing east, this angle is π/2, and when facing west, this angle is -π/2. The range of values is -π to π.
id: graph0
y_grid_label : True
y_grid: True
xmax : 200
ymax: 180
ymin: -180
y_ticks_minor : 20
y_ticks_major : 40
#values[1]: Pitch, angle of rotation about the x axis. This value represents the angle between a plane parallel to the device's screen and a plane parallel to the ground. Assuming that the bottom edge of the device faces the user and that the screen is face-up, tilting the top edge of the device toward the ground creates a positive pitch angle. The range of values is -π to π.
Graph:
id: graph1
y_grid_label : True
y_grid: True
xmax : 200
ymax: 90
ymin: -90
y_ticks_minor : 10
y_ticks_major : 20
#values[2]: Roll, angle of rotation about the y axis. This value represents the angle between a plane perpendicular to the device's screen and a plane perpendicular to the ground. Assuming that the bottom edge of the device faces the user and that the screen is face-up, tilting the left edge of the device toward the ground creates a positive roll angle. The range of values is -π/2 to π/2.
Graph:
id: graph2
y_grid_label : True
y_grid: True
xmax : 200
ymax: 180
ymin: -180
y_ticks_minor : 20
y_ticks_major : 40
Screen:
MDToolbar:
id: toolbar
pos_hint: {"top": 1}
elevation: 10
title: "SmartBow"
left_action_items: [["menu", lambda x: nav_drawer.set_state("open")]]
NavigationLayout:
x: toolbar.height
ScreenManager:
id: screen_manager
MDNavigationDrawer:
id: nav_drawer
ContentNavigationDrawer:
screen_manager: screen_manager
nav_drawer: nav_drawer
<MainScreen>:
BoxLayout:
orientation: "vertical"
size_hint: [1, 0.9]
MDLabel:
id: label
text: "# 1"
halign: "center"
theme_text_color: "Primary"
font_style: "H1"
Graph:
id: graph
xlabel:'Days back'
ylabel:'Arrow Count'
x_ticks_major: 1
y_ticks_major:25
y_grid_label:True
x_grid_label:True
x_grid:True
y_grid:True
xmin:0
xmax:8
ymin:0
ymax:150