drakongen 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/launch.json +18 -0
- package/LICENSE +24 -0
- package/README.md +80 -0
- package/browser/drakongen.js +1303 -0
- package/browsertest.html +84 -0
- package/buildbrowser +4 -0
- package/buildexamples.js +61 -0
- package/examples/00.Empty.drakon +1 -0
- package/examples/00.Empty.txt +5 -0
- package/examples/01. /320/221/320/265/320/273/321/213/320/270/314/206.drakon" +13 -0
- package/examples/01. /320/221/320/265/320/273/321/213/320/271.json" +16 -0
- package/examples/01. /320/221/320/265/320/273/321/213/320/271.txt" +4 -0
- package/examples/02. /320/247/320/265/314/210/321/200/320/275/321/213/320/270/314/206.drakon" +28 -0
- package/examples/02. /320/247/321/221/321/200/320/275/321/213/320/271.json" +31 -0
- package/examples/02. /320/247/321/221/321/200/320/275/321/213/320/271.txt" +10 -0
- package/examples/03. /320/241/320/265/321/200/321/213/320/270/314/206.drakon" +20 -0
- package/examples/03. /320/241/320/265/321/200/321/213/320/271.json" +23 -0
- package/examples/03. /320/241/320/265/321/200/321/213/320/271.txt" +6 -0
- package/examples/04. /320/221/321/203/321/200/321/213/320/270/314/206.drakon" +25 -0
- package/examples/04. /320/221/321/203/321/200/321/213/320/271.json" +29 -0
- package/examples/04. /320/221/321/203/321/200/321/213/320/271.txt" +7 -0
- package/examples/05. /320/226/320/265/314/210/320/273/321/202/321/213/320/270/314/206.drakon" +25 -0
- package/examples/05. /320/226/321/221/320/273/321/202/321/213/320/271.json" +29 -0
- package/examples/05. /320/226/321/221/320/273/321/202/321/213/320/271.txt" +7 -0
- package/examples/06. /320/221/320/260/320/263/321/200/320/276/320/262/321/213/320/270/314/206.drakon" +30 -0
- package/examples/06. /320/221/320/260/320/263/321/200/320/276/320/262/321/213/320/271.json" +35 -0
- package/examples/06. /320/221/320/260/320/263/321/200/320/276/320/262/321/213/320/271.txt" +10 -0
- package/examples/07. /320/244/320/270/320/276/320/273/320/265/321/202/320/276/320/262/321/213/320/270/314/206.drakon" +42 -0
- package/examples/07. /320/244/320/270/320/276/320/273/320/265/321/202/320/276/320/262/321/213/320/271.json" +49 -0
- package/examples/07. /320/244/320/270/320/276/320/273/320/265/321/202/320/276/320/262/321/213/320/271.txt" +14 -0
- package/examples/08. /320/221/320/270/321/200/321/216/320/267/320/276/320/262/321/213/320/270/314/206.drakon" +27 -0
- package/examples/08. /320/221/320/270/321/200/321/216/320/267/320/276/320/262/321/213/320/271.json" +27 -0
- package/examples/08. /320/221/320/270/321/200/321/216/320/267/320/276/320/262/321/213/320/271.txt" +6 -0
- package/examples/09. /320/236/321/200/320/260/320/275/320/266/320/265/320/262/321/213/320/270/314/206.drakon" +37 -0
- package/examples/09. /320/236/321/200/320/260/320/275/320/266/320/265/320/262/321/213/320/271.json" +39 -0
- package/examples/09. /320/236/321/200/320/260/320/275/320/266/320/265/320/262/321/213/320/271.txt" +10 -0
- package/examples/10. /320/240/320/276/320/267/320/276/320/262/321/213/320/270/314/206.drakon" +42 -0
- package/examples/10. /320/240/320/276/320/267/320/276/320/262/321/213/320/271.json" +54 -0
- package/examples/10. /320/240/320/276/320/267/320/276/320/262/321/213/320/271.txt" +16 -0
- package/examples/11. /320/227/320/260/321/211/320/270/321/202/320/275/321/213/320/270/314/206.drakon" +37 -0
- package/examples/11. /320/227/320/260/321/211/320/270/321/202/320/275/321/213/320/271.json" +39 -0
- package/examples/11. /320/227/320/260/321/211/320/270/321/202/320/275/321/213/320/271.txt" +10 -0
- package/examples/12. /320/221/320/276/320/273/320/276/321/202/320/275/321/213/320/270/314/206.drakon" +44 -0
- package/examples/12. /320/221/320/276/320/273/320/276/321/202/320/275/321/213/320/271.json" +43 -0
- package/examples/12. /320/221/320/276/320/273/320/276/321/202/320/275/321/213/320/271.txt" +10 -0
- package/examples/13. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/270/314/206.drakon" +54 -0
- package/examples/13. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/271.json" +63 -0
- package/examples/13. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/271.txt" +18 -0
- package/examples/14. /320/227/320/276/320/273/320/276/321/202/320/276/320/270/314/206.drakon" +64 -0
- package/examples/14. /320/227/320/276/320/273/320/276/321/202/320/276/320/271.json" +73 -0
- package/examples/14. /320/227/320/276/320/273/320/276/321/202/320/276/320/271.txt" +22 -0
- package/examples/15. /320/241/320/270/320/275/320/270/320/270/314/206.drakon" +54 -0
- package/examples/15. /320/241/320/270/320/275/320/270/320/271.json" +87 -0
- package/examples/15. /320/241/320/270/320/275/320/270/320/271.txt" +26 -0
- package/examples/16. /320/223/320/276/320/273/321/203/320/261/320/276/320/270/314/206.drakon" +37 -0
- package/examples/16. /320/223/320/276/320/273/321/203/320/261/320/276/320/271.json" +48 -0
- package/examples/16. /320/223/320/276/320/273/321/203/320/261/320/276/320/271.txt" +13 -0
- package/examples/17. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/270/314/206.drakon" +39 -0
- package/examples/17. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/271.json" +41 -0
- package/examples/17. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/271.txt" +10 -0
- package/examples/18. /320/241/321/202/320/260/320/273/321/214/320/275/320/276/320/270/314/206.drakon" +49 -0
- package/examples/18. /320/241/321/202/320/260/320/273/321/214/320/275/320/276/320/271.json" +67 -0
- package/examples/18. /320/241/321/202/320/260/320/273/321/214/320/275/320/276/320/271.txt" +19 -0
- package/examples/19. Lilla.drakon +39 -0
- package/examples/19. Lilla.json +45 -0
- package/examples/19. Lilla.txt +11 -0
- package/examples/Adaptive design.drakon +116 -0
- package/examples/Adaptive design.json +153 -0
- package/examples/Adaptive design.txt +47 -0
- package/examples/And test.drakon +46 -0
- package/examples/And test.json +46 -0
- package/examples/And test.txt +10 -0
- package/examples/Arrow - double exit.drakon +41 -0
- package/examples/Arrow - double exit.json +62 -0
- package/examples/Arrow - double exit.txt +14 -0
- package/examples/Complex arrow.drakon +93 -0
- package/examples/Complex arrow.json +162 -0
- package/examples/Complex arrow.txt +43 -0
- package/examples/DoubleArrow.drakon +53 -0
- package/examples/DoubleArrow.json +86 -0
- package/examples/DoubleArrow.txt +18 -0
- package/examples/Find pointing nodes.drakon +104 -0
- package/examples/Find pointing nodes.json +137 -0
- package/examples/Find pointing nodes.txt +29 -0
- package/examples/How to tune PID on a quadcopter.drakon +488 -0
- package/examples/How to tune PID on a quadcopter.json +734 -0
- package/examples/How to tune PID on a quadcopter.txt +169 -0
- package/examples/Or test.drakon +47 -0
- package/examples/Or test.json +46 -0
- package/examples/Or test.txt +10 -0
- package/examples/Silhouette test 1.drakon +47 -0
- package/examples/Silhouette test 1.json +82 -0
- package/examples/Silhouette test 1.txt +24 -0
- package/examples/Work out action-check.drakon +30 -0
- package/examples/Work out action-check.json +45 -0
- package/examples/Work out action-check.txt +9 -0
- package/examples/Workout foreach.drakon +63 -0
- package/examples/Workout foreach.json +62 -0
- package/examples/Workout foreach.txt +14 -0
- package/examples/ar01.drakon +25 -0
- package/examples/ar01.json +40 -0
- package/examples/ar01.txt +7 -0
- package/examples/ar02.drakon +30 -0
- package/examples/ar02.json +45 -0
- package/examples/ar02.txt +10 -0
- package/examples/ar03.drakon +32 -0
- package/examples/ar03.json +44 -0
- package/examples/ar03.txt +7 -0
- package/examples/ar04.drakon +37 -0
- package/examples/ar04.json +49 -0
- package/examples/ar04.txt +10 -0
- package/examples/ar05.drakon +37 -0
- package/examples/ar05.json +59 -0
- package/examples/ar05.txt +11 -0
- package/examples/ar06.drakon +40 -0
- package/examples/ar06.json +70 -0
- package/examples/ar06.txt +13 -0
- package/examples/ar07.drakon +40 -0
- package/examples/ar07.json +70 -0
- package/examples/ar07.txt +13 -0
- package/examples/ar08.drakon +47 -0
- package/examples/ar08.json +81 -0
- package/examples/ar08.txt +16 -0
- package/examples/ar09.drakon +52 -0
- package/examples/ar09.json +87 -0
- package/examples/ar09.txt +17 -0
- package/examples/ar10.drakon +52 -0
- package/examples/ar10.json +88 -0
- package/examples/ar10.txt +18 -0
- package/examples/ar11.drakon +47 -0
- package/examples/ar11.json +82 -0
- package/examples/ar11.txt +17 -0
- package/examples/ar12.drakon +37 -0
- package/examples/ar12.json +49 -0
- package/examples/ar12.txt +10 -0
- package/examples/getToken.drakon +76 -0
- package/examples/getToken.json +88 -0
- package/examples/getToken.txt +41 -0
- package/examples/tmp.drakon +49 -0
- package/examples/tmp.json +82 -0
- package/examples/tmp.txt +37 -0
- package/package.json +21 -0
- package/prompts/drakonToPrompt.txt +139 -0
- package/prompts/index.txt +17 -0
- package/prompts/printPseudo.txt +116 -0
- package/src/browserTools.js +39 -0
- package/src/drakonToPromptStruct.js +44 -0
- package/src/drakonToStruct.js +416 -0
- package/src/drakongen.js +16 -0
- package/src/index.js +17 -0
- package/src/main.js +157 -0
- package/src/nodeTools.js +38 -0
- package/src/printPseudo.js +167 -0
- package/src/structFlow.js +382 -0
- package/src/technicalTree.js +84 -0
- package/src/tools.js +36 -0
- package/src/translate.js +108 -0
|
@@ -0,0 +1,734 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "How to tune PID on a quadcopter",
|
|
3
|
+
"params": "By Oscar Liang",
|
|
4
|
+
"branches": [
|
|
5
|
+
{
|
|
6
|
+
"name": "Prepare",
|
|
7
|
+
"branchId": 1,
|
|
8
|
+
"start": "824",
|
|
9
|
+
"body": [
|
|
10
|
+
{
|
|
11
|
+
"id": "824",
|
|
12
|
+
"type": "input",
|
|
13
|
+
"content": "<p>To the motor sound</p>",
|
|
14
|
+
"secondary": "<p>Listen</p>"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "41",
|
|
18
|
+
"type": "comment",
|
|
19
|
+
"content": "Remember, PID tuning is subjective!"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "32",
|
|
23
|
+
"type": "action",
|
|
24
|
+
"content": "Backup your current PID values"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "35",
|
|
28
|
+
"type": "action",
|
|
29
|
+
"content": "Switch to Rate Mode (aka Acro Mode)"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "38",
|
|
33
|
+
"type": "action",
|
|
34
|
+
"content": "Make sure your quadcopter’s CG (centre of gravity) is right in the middle"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "ad-1000",
|
|
38
|
+
"type": "address",
|
|
39
|
+
"content": "Set initial values"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "8-end",
|
|
43
|
+
"type": "end"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Set initial values",
|
|
49
|
+
"branchId": 2,
|
|
50
|
+
"start": "251",
|
|
51
|
+
"body": [
|
|
52
|
+
{
|
|
53
|
+
"id": "251",
|
|
54
|
+
"type": "insertion",
|
|
55
|
+
"content": "Set RC rates, super rates and expo"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "254",
|
|
59
|
+
"type": "action",
|
|
60
|
+
"content": "Set default PID values"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "257",
|
|
64
|
+
"type": "action",
|
|
65
|
+
"content": "Lower all the values by at least half"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "ad-1003",
|
|
69
|
+
"type": "address",
|
|
70
|
+
"content": "P on Roll"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "239-end",
|
|
74
|
+
"type": "end"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "P on Roll",
|
|
80
|
+
"branchId": 3,
|
|
81
|
+
"start": "87",
|
|
82
|
+
"body": [
|
|
83
|
+
{
|
|
84
|
+
"id": "87",
|
|
85
|
+
"type": "comment",
|
|
86
|
+
"content": "With good P, the control should feel precise"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "213",
|
|
90
|
+
"type": "loop",
|
|
91
|
+
"content": "",
|
|
92
|
+
"body": [
|
|
93
|
+
{
|
|
94
|
+
"id": "80",
|
|
95
|
+
"type": "action",
|
|
96
|
+
"content": "Cruise around"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "90",
|
|
100
|
+
"type": "action",
|
|
101
|
+
"content": "Do some sharp turns"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "question",
|
|
105
|
+
"id": "93",
|
|
106
|
+
"content": {
|
|
107
|
+
"operator": "and",
|
|
108
|
+
"left": {
|
|
109
|
+
"operator": "not",
|
|
110
|
+
"operand": "Does the quad dip to one side (like a wobble)?"
|
|
111
|
+
},
|
|
112
|
+
"right": {
|
|
113
|
+
"operator": "not",
|
|
114
|
+
"operand": "Do slow oscillations occur?"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"yes": [
|
|
118
|
+
{
|
|
119
|
+
"type": "question",
|
|
120
|
+
"id": "168",
|
|
121
|
+
"content": "Do fast oscilations occur?",
|
|
122
|
+
"yes": [
|
|
123
|
+
{
|
|
124
|
+
"id": "197",
|
|
125
|
+
"type": "action",
|
|
126
|
+
"content": "Decrease P on Roll"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "arrow-stub-213",
|
|
130
|
+
"type": "loopend",
|
|
131
|
+
"start": "213"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"no": [
|
|
135
|
+
{
|
|
136
|
+
"type": "break"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"no": [
|
|
142
|
+
{
|
|
143
|
+
"id": "153",
|
|
144
|
+
"type": "action",
|
|
145
|
+
"content": "Increase P on Roll"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "arrow-stub-213",
|
|
149
|
+
"type": "loopend",
|
|
150
|
+
"start": "213"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": "150",
|
|
158
|
+
"type": "comment",
|
|
159
|
+
"content": "When P is right, you should get minimum oscillations when doing sharp turns."
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"id": "ad-1001",
|
|
163
|
+
"type": "address",
|
|
164
|
+
"content": "P on Pitch"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "70-end",
|
|
168
|
+
"type": "end"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "P on Pitch",
|
|
174
|
+
"branchId": 4,
|
|
175
|
+
"start": "303",
|
|
176
|
+
"body": [
|
|
177
|
+
{
|
|
178
|
+
"id": "303",
|
|
179
|
+
"type": "loop",
|
|
180
|
+
"content": "",
|
|
181
|
+
"body": [
|
|
182
|
+
{
|
|
183
|
+
"id": "260",
|
|
184
|
+
"type": "action",
|
|
185
|
+
"content": "Do a split-S (where you move both the throttle and pitch sticks)"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"id": "263",
|
|
189
|
+
"type": "action",
|
|
190
|
+
"content": "Increase throttle to recover, pay attention to the pitch movement"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"type": "question",
|
|
194
|
+
"id": "266",
|
|
195
|
+
"content": "Does the quad pitch up more than it should?",
|
|
196
|
+
"yes": [
|
|
197
|
+
{
|
|
198
|
+
"id": "286",
|
|
199
|
+
"type": "action",
|
|
200
|
+
"content": "Increase P on Pitch"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": "arrow-stub-303",
|
|
204
|
+
"type": "loopend",
|
|
205
|
+
"start": "303"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"no": [
|
|
209
|
+
{
|
|
210
|
+
"type": "question",
|
|
211
|
+
"id": "276",
|
|
212
|
+
"content": {
|
|
213
|
+
"operator": "and",
|
|
214
|
+
"left": {
|
|
215
|
+
"operator": "not",
|
|
216
|
+
"operand": "Do fast oscilations occur?"
|
|
217
|
+
},
|
|
218
|
+
"right": {
|
|
219
|
+
"operator": "not",
|
|
220
|
+
"operand": "Are the motors making a twitching sound?"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"yes": [
|
|
224
|
+
{
|
|
225
|
+
"type": "break"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"no": [
|
|
229
|
+
{
|
|
230
|
+
"id": "289",
|
|
231
|
+
"type": "action",
|
|
232
|
+
"content": "Decrease P on Pitch"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"id": "arrow-stub-303",
|
|
236
|
+
"type": "loopend",
|
|
237
|
+
"start": "303"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"id": "320",
|
|
247
|
+
"type": "comment",
|
|
248
|
+
"content": "The quad feels very responsive and nimble"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"id": "ad-1002",
|
|
252
|
+
"type": "address",
|
|
253
|
+
"content": "TPA"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"id": "221-end",
|
|
257
|
+
"type": "end"
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "TPA",
|
|
263
|
+
"branchId": 5,
|
|
264
|
+
"start": "374",
|
|
265
|
+
"body": [
|
|
266
|
+
{
|
|
267
|
+
"id": "374",
|
|
268
|
+
"type": "loop",
|
|
269
|
+
"content": "",
|
|
270
|
+
"body": [
|
|
271
|
+
{
|
|
272
|
+
"id": "362",
|
|
273
|
+
"type": "action",
|
|
274
|
+
"content": "Do a punch out"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "question",
|
|
278
|
+
"id": "352",
|
|
279
|
+
"content": "Does the quad get oscillations with high throttle?",
|
|
280
|
+
"yes": [
|
|
281
|
+
{
|
|
282
|
+
"id": "365",
|
|
283
|
+
"type": "action",
|
|
284
|
+
"content": "Increase TPA"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"id": "368",
|
|
288
|
+
"type": "comment",
|
|
289
|
+
"content": "Do not increase TPA higher than 0.4"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"id": "arrow-stub-374",
|
|
293
|
+
"type": "loopend",
|
|
294
|
+
"start": "374"
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
"no": [
|
|
298
|
+
{
|
|
299
|
+
"type": "break"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"id": "ad-1004",
|
|
307
|
+
"type": "address",
|
|
308
|
+
"content": "D on Roll and Pitch"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"id": "342-end",
|
|
312
|
+
"type": "end"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "D on Roll and Pitch",
|
|
318
|
+
"branchId": 6,
|
|
319
|
+
"start": "451",
|
|
320
|
+
"body": [
|
|
321
|
+
{
|
|
322
|
+
"id": "451",
|
|
323
|
+
"type": "loop",
|
|
324
|
+
"content": "",
|
|
325
|
+
"body": [
|
|
326
|
+
{
|
|
327
|
+
"id": "392",
|
|
328
|
+
"type": "action",
|
|
329
|
+
"content": "Do aggressive maneuvers like flips and rolls"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"type": "question",
|
|
333
|
+
"id": "395",
|
|
334
|
+
"content": {
|
|
335
|
+
"operator": "and",
|
|
336
|
+
"left": {
|
|
337
|
+
"operator": "not",
|
|
338
|
+
"operand": "Does the quad overshoot at the end of the move then bounce back?"
|
|
339
|
+
},
|
|
340
|
+
"right": {
|
|
341
|
+
"operator": "not",
|
|
342
|
+
"operand": "Does prop wash happen? (oscillation when you descent)"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"yes": [
|
|
346
|
+
{
|
|
347
|
+
"type": "question",
|
|
348
|
+
"id": "427",
|
|
349
|
+
"content": "Do fast oscillation happen at the end of a roll or flip?",
|
|
350
|
+
"yes": [
|
|
351
|
+
{
|
|
352
|
+
"id": "437",
|
|
353
|
+
"type": "action",
|
|
354
|
+
"content": "Decrease D on the affected axis"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"id": "arrow-stub-451",
|
|
358
|
+
"type": "loopend",
|
|
359
|
+
"start": "451"
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
"no": [
|
|
363
|
+
{
|
|
364
|
+
"type": "break"
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"no": [
|
|
370
|
+
{
|
|
371
|
+
"id": "405",
|
|
372
|
+
"type": "action",
|
|
373
|
+
"content": "Increase D on the affected axis"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"id": "arrow-stub-451",
|
|
377
|
+
"type": "loopend",
|
|
378
|
+
"start": "451"
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
]
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"id": "465",
|
|
386
|
+
"type": "comment",
|
|
387
|
+
"content": "Note that to eliminate bounces at the end of a flip or roll, you can also use Setpoint Transition"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"id": "ad-1005",
|
|
391
|
+
"type": "address",
|
|
392
|
+
"content": "I on Roll"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"id": "382-end",
|
|
396
|
+
"type": "end"
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "I on Roll",
|
|
402
|
+
"branchId": 7,
|
|
403
|
+
"start": "536",
|
|
404
|
+
"body": [
|
|
405
|
+
{
|
|
406
|
+
"id": "536",
|
|
407
|
+
"type": "loop",
|
|
408
|
+
"content": "",
|
|
409
|
+
"body": [
|
|
410
|
+
{
|
|
411
|
+
"id": "478",
|
|
412
|
+
"type": "action",
|
|
413
|
+
"content": "Bank your quad to the left and right"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"id": "481",
|
|
417
|
+
"type": "action",
|
|
418
|
+
"content": "Release stick"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"type": "question",
|
|
422
|
+
"id": "484",
|
|
423
|
+
"content": "Is the quad holding the angle well?",
|
|
424
|
+
"yes": [
|
|
425
|
+
{
|
|
426
|
+
"type": "question",
|
|
427
|
+
"id": "501",
|
|
428
|
+
"content": {
|
|
429
|
+
"operator": "and",
|
|
430
|
+
"left": {
|
|
431
|
+
"operator": "not",
|
|
432
|
+
"operand": "Does the quad have stiff, robotic feeling?"
|
|
433
|
+
},
|
|
434
|
+
"right": {
|
|
435
|
+
"operator": "not",
|
|
436
|
+
"operand": "Does the quad have oscilations?"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"yes": [
|
|
440
|
+
{
|
|
441
|
+
"type": "break"
|
|
442
|
+
}
|
|
443
|
+
],
|
|
444
|
+
"no": [
|
|
445
|
+
{
|
|
446
|
+
"id": "550",
|
|
447
|
+
"type": "action",
|
|
448
|
+
"content": "Decrease I on Roll"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"id": "arrow-stub-536",
|
|
452
|
+
"type": "loopend",
|
|
453
|
+
"start": "536"
|
|
454
|
+
}
|
|
455
|
+
]
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"no": [
|
|
459
|
+
{
|
|
460
|
+
"id": "553",
|
|
461
|
+
"type": "action",
|
|
462
|
+
"content": "Increase I on Roll"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"id": "arrow-stub-536",
|
|
466
|
+
"type": "loopend",
|
|
467
|
+
"start": "536"
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"id": "556",
|
|
475
|
+
"type": "comment",
|
|
476
|
+
"content": "You might want to increase I a bit more on a windy day"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"id": "ad-1006",
|
|
480
|
+
"type": "address",
|
|
481
|
+
"content": "I on Pitch"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"id": "468-end",
|
|
485
|
+
"type": "end"
|
|
486
|
+
}
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "I on Pitch",
|
|
491
|
+
"branchId": 8,
|
|
492
|
+
"start": "594",
|
|
493
|
+
"body": [
|
|
494
|
+
{
|
|
495
|
+
"id": "594",
|
|
496
|
+
"type": "loop",
|
|
497
|
+
"content": "",
|
|
498
|
+
"body": [
|
|
499
|
+
{
|
|
500
|
+
"id": "588",
|
|
501
|
+
"type": "action",
|
|
502
|
+
"content": "Fly forward, do not increase throttle"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"type": "question",
|
|
506
|
+
"id": "590",
|
|
507
|
+
"content": "Does the nose keep the same angle?",
|
|
508
|
+
"yes": [
|
|
509
|
+
{
|
|
510
|
+
"type": "break"
|
|
511
|
+
}
|
|
512
|
+
],
|
|
513
|
+
"no": [
|
|
514
|
+
{
|
|
515
|
+
"id": "600",
|
|
516
|
+
"type": "action",
|
|
517
|
+
"content": "Increase I on Pitch"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"id": "arrow-stub-594",
|
|
521
|
+
"type": "loopend",
|
|
522
|
+
"start": "594"
|
|
523
|
+
}
|
|
524
|
+
]
|
|
525
|
+
}
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"id": "ad-1007",
|
|
530
|
+
"type": "address",
|
|
531
|
+
"content": "Anti Gravity Gain"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"id": "578-end",
|
|
535
|
+
"type": "end"
|
|
536
|
+
}
|
|
537
|
+
]
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "Anti Gravity Gain",
|
|
541
|
+
"branchId": 9,
|
|
542
|
+
"start": "819",
|
|
543
|
+
"body": [
|
|
544
|
+
{
|
|
545
|
+
"id": "819",
|
|
546
|
+
"type": "loop",
|
|
547
|
+
"content": "",
|
|
548
|
+
"body": [
|
|
549
|
+
{
|
|
550
|
+
"id": "814",
|
|
551
|
+
"type": "action",
|
|
552
|
+
"content": "Fly in a straight line"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"id": "815",
|
|
556
|
+
"type": "action",
|
|
557
|
+
"content": "Do some rapid punchouts"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"type": "question",
|
|
561
|
+
"id": "816",
|
|
562
|
+
"content": "Does pitch stay at the same angle?",
|
|
563
|
+
"yes": [
|
|
564
|
+
{
|
|
565
|
+
"type": "break"
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"no": [
|
|
569
|
+
{
|
|
570
|
+
"id": "818",
|
|
571
|
+
"type": "action",
|
|
572
|
+
"content": "Increase Anti Gravity"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"id": "arrow-stub-819",
|
|
576
|
+
"type": "loopend",
|
|
577
|
+
"start": "819"
|
|
578
|
+
}
|
|
579
|
+
]
|
|
580
|
+
}
|
|
581
|
+
]
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"id": "823",
|
|
585
|
+
"type": "comment",
|
|
586
|
+
"content": "3 to 5 is a good range"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"id": "ad-1009",
|
|
590
|
+
"type": "address",
|
|
591
|
+
"content": "P on Yaw"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"id": "810-end",
|
|
595
|
+
"type": "end"
|
|
596
|
+
}
|
|
597
|
+
]
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"name": "P on Yaw",
|
|
601
|
+
"branchId": 10,
|
|
602
|
+
"start": "719",
|
|
603
|
+
"body": [
|
|
604
|
+
{
|
|
605
|
+
"id": "719",
|
|
606
|
+
"type": "loop",
|
|
607
|
+
"content": "",
|
|
608
|
+
"body": [
|
|
609
|
+
{
|
|
610
|
+
"id": "676",
|
|
611
|
+
"type": "action",
|
|
612
|
+
"content": "Spin quickly on the yaw axis"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"id": "679",
|
|
616
|
+
"type": "action",
|
|
617
|
+
"content": "Stop spinning"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"type": "question",
|
|
621
|
+
"id": "682",
|
|
622
|
+
"content": "Does the quad dip one side?",
|
|
623
|
+
"yes": [
|
|
624
|
+
{
|
|
625
|
+
"id": "692",
|
|
626
|
+
"type": "action",
|
|
627
|
+
"content": "Increase P on Yaw"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"id": "arrow-stub-719",
|
|
631
|
+
"type": "loopend",
|
|
632
|
+
"start": "719"
|
|
633
|
+
}
|
|
634
|
+
],
|
|
635
|
+
"no": [
|
|
636
|
+
{
|
|
637
|
+
"type": "question",
|
|
638
|
+
"id": "695",
|
|
639
|
+
"content": "Do you get fast oscilations?",
|
|
640
|
+
"yes": [
|
|
641
|
+
{
|
|
642
|
+
"id": "705",
|
|
643
|
+
"type": "action",
|
|
644
|
+
"content": "Decrease P on Yaw"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"id": "arrow-stub-719",
|
|
648
|
+
"type": "loopend",
|
|
649
|
+
"start": "719"
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
"no": [
|
|
653
|
+
{
|
|
654
|
+
"type": "break"
|
|
655
|
+
}
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
]
|
|
659
|
+
}
|
|
660
|
+
]
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"id": "733",
|
|
664
|
+
"type": "comment",
|
|
665
|
+
"content": "When Yaw P is right the spin should be clean and snappy"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"id": "ad-1008",
|
|
669
|
+
"type": "address",
|
|
670
|
+
"content": "I on Yaw"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"id": "666-end",
|
|
674
|
+
"type": "end"
|
|
675
|
+
}
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "I on Yaw",
|
|
680
|
+
"branchId": 11,
|
|
681
|
+
"start": "787",
|
|
682
|
+
"body": [
|
|
683
|
+
{
|
|
684
|
+
"id": "787",
|
|
685
|
+
"type": "loop",
|
|
686
|
+
"content": "",
|
|
687
|
+
"body": [
|
|
688
|
+
{
|
|
689
|
+
"id": "782",
|
|
690
|
+
"type": "action",
|
|
691
|
+
"content": "Fly straight"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"id": "783",
|
|
695
|
+
"type": "action",
|
|
696
|
+
"content": "Make a turn"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"type": "question",
|
|
700
|
+
"id": "784",
|
|
701
|
+
"content": "Is there drift, does the quad slide out?",
|
|
702
|
+
"yes": [
|
|
703
|
+
{
|
|
704
|
+
"id": "786",
|
|
705
|
+
"type": "action",
|
|
706
|
+
"content": "Increase I on Yaw"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"id": "arrow-stub-787",
|
|
710
|
+
"type": "loopend",
|
|
711
|
+
"start": "787"
|
|
712
|
+
}
|
|
713
|
+
],
|
|
714
|
+
"no": [
|
|
715
|
+
{
|
|
716
|
+
"type": "break"
|
|
717
|
+
}
|
|
718
|
+
]
|
|
719
|
+
}
|
|
720
|
+
]
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"id": "791",
|
|
724
|
+
"type": "comment",
|
|
725
|
+
"content": "Yaw I should not be higher than just enough to prevent drift."
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"id": "16",
|
|
729
|
+
"type": "end"
|
|
730
|
+
}
|
|
731
|
+
]
|
|
732
|
+
}
|
|
733
|
+
]
|
|
734
|
+
}
|