Source

hello / misc / fjCpg5.rnn

Full commit
  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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
circuit sin1 {
	var y2(0.4) = 1;
	var y(0.4);
	::sin1::y := 1 * ::sin1::y;
	::sin1::y := 1 * ::sin1::y2;
	::sin1::y2 := 1 * ::sin1::y2;
	::sin1::y2 := -1 * ::sin1::y;
}
circuit sin2 {
	var y2(0.4) = 1;
	var y(0.4);
	::sin2::y := 1 * ::sin2::y;
	::sin2::y := 2 * ::sin2::y2;
	::sin2::y2 := 1 * ::sin2::y2;
	::sin2::y2 := -2 * ::sin2::y;
}
circuit sin3 {
	var y2(0.4) = 1;
	var y(0.4);
	::sin3::y := 1 * ::sin3::y;
	::sin3::y := 3 * ::sin3::y2;
	::sin3::y2 := 1 * ::sin3::y2;
	::sin3::y2 := -3 * ::sin3::y;
}
circuit sin5 {
	var y2(0.4) = 1;
	var y(0.4);
	::sin5::y := 1 * ::sin5::y;
	::sin5::y := 5 * ::sin5::y2;
	::sin5::y2 := 1 * ::sin5::y2;
	::sin5::y2 := -5 * ::sin5::y;
}
circuit sin1P {
	var y2(0.4) = 0.956845441;
	var y(0.4) = 0.29059732;
	::sin1P::y := 1 * ::sin1P::y;
	::sin1P::y := 1 * ::sin1P::y2;
	::sin1P::y2 := 1 * ::sin1P::y2;
	::sin1P::y2 := -1 * ::sin1P::y;
}
circuit sin2P {
	var y2(0.4) = -0.956845441;
	var y(0.4) = 0.29059732;
	::sin2P::y := 1 * ::sin2P::y;
	::sin2P::y := 1 * ::sin2P::y2;
	::sin2P::y2 := 1 * ::sin2P::y2;
	::sin2P::y2 := -1 * ::sin2P::y;
}
circuit smthend {
	var d(1) = 12.4;
	var m;
	var m1;
	::smthend::d := 1 * ::smthend::d;
	::smthend::m := 1 * (1 >) ::smthend::d;
	::smthend::m1 := 1 * (0 <) ::smthend::m;
}
circuit CdpInc {
	var d(1) = 1.5;
	var m;
	var m1;
	var m2;
	::CdpInc::d := 1 * ::CdpInc::d;
	::CdpInc::m := 1 * (1 >) ::CdpInc::d;
	::CdpInc::m1 := 1 * (0 <) ::CdpInc::m;
	::CdpInc::m2 := -1 * ::CdpInc::m1;
}
circuit ppoly2 {
	var y(0.1) = 2.513274123;
	::ppoly2::y := 1 * ::ppoly2::y;
}
circuit hpoly1 {
	var y(0.1) = 4.554786584;
	::hpoly1::y := 1 * ::hpoly1::y;
}
circuit poly2 {
	var y(1) = -0.841957787;
	::poly2::y := 1 * ::poly2::y;
}
output out[25];
var a(1) = 1;
var chpit1 = 1;
var chrol1 = 1;
var softStart(0.2);
var softStartLift(0.2);
var RollEnd(10) = 1;
var joyswit(1);
var joyswit1_1;
var joyswit1;
var pitaddRd(1) = 1.256637061;
var pitaddR1;
var pitaddR2;
var pitaddR3(0.4);
var pitaddR4;
var pitaddR5;
var pitaddR6;
var pitaddR;
var pitaddL1;
var pitaddL2;
var pitaddL3(0.4);
var pitaddL4;
var pitaddL5;
var pitaddL;
var b1;
var o111;
var o112;
var o1_p;
var o1_p1;
var o1h;
var o1;
var o2_p;
var o2_p1;
var o2h;
var o2;
var ar1;
var ar;
var t4;
var t5;
var pp1(0.1);
var p15(0.1);
var pp2;
var p25;
var pitL;
var spitL(0.1);
var ssL1;
var ssL2;
var ssL3;
var LowDegPolyL2;
var tpowSL1;
var tpowSL2;
var tpowSL3;
var LowDegPolyLL;
var LowDegPolyL;
var deg1;
var deg2;
var deg3;
var tpowL1;
var tpowL2;
var tpowL3;
var HiDegPolyLL;
var HiDegPolyL;
var startpit1(0.2);
var outLearn1;
var pitL3;
var pitL3_1(0.05);
var pitL4;
var pitR;
var spitR(0.1);
var ssR1;
var ssR2;
var ssR3;
var LowDegPolyR2;
var tpowSR1;
var tpowSR2;
var tpowSR3;
var LowDegPolyRR;
var LowDegPolyR;
var tpowR1;
var tpowR2;
var tpowR3;
var HiDegPolyRR;
var HiDegPolyR;
var yy;
var yy2;
var pitRini;
var pitR1;
var pitR2;
var pitR2_1;
var pitR2_2(0.05);
var pitR3;
var pitR4;
var pitR5;
var t1;
var g1;
var g1hoap2;
var ghl;
var g2;
var g22;
var g2hoap2;
var ghr;
var vRollampAdd(0.4);
var vRollamp;
var addj1(0.1);
var joint1;
var joint1_end;
var joint2;
var joint2_1;
var joint2_2;
var joint3;
var joint3_1;
var joint4;
var joint4_1;
var joint5;
var joint5_end;
var joint6;
var addj11(0.1);
var joint11;
var joint11_end;
var joint12;
var joint12_1;
var joint12_2;
var joint13;
var joint13_1;
var temp14(1) = 1;
var joint14;
var joint14_1;
var joint15;
var joint15_end;
var joint16;
a := 1 * a;
chpit1 := 1 * chpit1;
chpit1 := -0.397887358 * a;
chrol1 := 1 * chrol1;
chrol1 := -0.397887358 * a;
softStart := if (chrol1 < 0) 1 * a;
softStartLift := if (softStart > 0.9) 1 * a;
RollEnd := 1 * RollEnd;
RollEnd := -0.397887358 * a;
::smthend::d := -0.5 * a;
joyswit := -15 * a;
joyswit1_1 := -0.048714 * joyswit;
joyswit1 := ::smthend::m1 * joyswit1_1;
pitaddRd := 1 * pitaddRd;
pitaddRd := -1 * a;
pitaddR1 := if (::sin1P::y > 0 & ::sin2P::y > 0) 1 * a;
pitaddR1 := -0.188609757 * a;
pitaddR2 := if (::sin1P::y > 0) 1 * pitaddR1;
pitaddR3 := 1 * pitaddR3;
pitaddR3 := 1 * pitaddR2;
pitaddR4 := 1 * pitaddR3;
pitaddR4 := 0.236836816 * a;
pitaddR5 := if (pitaddRd < 0) 2.111158257 * pitaddR4;
pitaddR6 := 1 * (0 <) pitaddR5;
pitaddR := joyswit1 * pitaddR6;
pitaddL1 := if (::sin1P::y < 0 & ::sin2P::y < 0) 1 * a;
pitaddL1 := -0.188609757 * a;
pitaddL2 := if (::sin1P::y < 0) 1 * pitaddL1;
pitaddL3 := 1 * pitaddL3;
pitaddL3 := 1 * pitaddL2;
pitaddL4 := 2.111158257 * pitaddL3;
pitaddL5 := 1 * (0 <) pitaddL4;
pitaddL := joyswit1 * pitaddL5;
b1 := if (::sin1::y < 0) 1 * a;
::CdpInc::d := -1 * a;
::CdpInc::m2 := 1 * a;
o111 := if (b1 > 0.5) 1 * ::sin2::y2;
o111 := if (b1 > 0.5) -1 * a;
o112 := if (b1 < 0.5) 1 * ::sin2::y2;
o112 := if (b1 < 0.5) -1 * a;
o1_p := 1 * (-0.164192639 >) o111;
o1_p := 0.164192639 * a;
o1_p1 := ::CdpInc::m2 * o1_p;
o1h := if (RollEnd > 0) 1 * o1_p;
o1 := if (chrol1 < 0) 1 * o1h;
o2_p := 1 * (-0.164192639 >) o112;
o2_p := 0.164192639 * a;
o2_p1 := ::CdpInc::m2 * o2_p;
o2h := if (RollEnd > 0) 1 * o2_p;
o2 := if (chrol1 < 0) 1 * o2h;
ar1 := 1 * ::sin1::y;
ar1 := 0.146 * ::sin3::y;
ar1 := 0.0206666 * ::sin5::y;
ar := if (chrol1 < 0) 1 * ar1;
t4 := if (::sin1P::y < 0 & ::sin2P::y > 0) -1 * a;
t4 := 0.406145999 * a;
t5 := if (::sin1P::y > 0 & ::sin2P::y < 0) -1 * a;
t5 := 0.406145999 * a;
pp1 := 1 * pp1;
pp1 := 1 * t4;
p15 := 1 * p15;
p15 := 1 * t5;
pp2 := if (t4 > 0.2) 1 * pp1;
pp2 := if (t4 > 0.2) -2.551890576 * a;
p25 := if (t5 > 0.2) -1 * p15;
p25 := if (t5 > 0.2) -2.551890576 * a;
::ppoly2::y := -0.4 * a;
::hpoly1::y := -0.4 * a;
ssL1 := if (t5 < 0.2) 1 * a;
ssL1 := -0.406145999 * a;
spitL := 1 * spitL;
spitL := 1 * ssL1;
ssL3 := 1 * spitL;
ssL3 := -2.551890576 * a;
ssL2 := 0.32993491 * ssL3;
LowDegPolyL2 := if (t5 < 0.2) 1 * ssL2;
tpowSL1 := 0.85 * LowDegPolyL2;
tpowSL2 := tpowSL1 * tpowSL1;
tpowSL3 := tpowSL1 * tpowSL2;
LowDegPolyLL := 3.7 * tpowSL1;
LowDegPolyLL := 0 * tpowSL2;
LowDegPolyLL := -1.86 * tpowSL3;
LowDegPolyL := 0.5 * LowDegPolyLL;
deg1 := 2 * a;
deg2 := 0.8 * a;
deg3 := 0.95216 * a;
tpowL1 := -1 * p25;
tpowL2 := tpowL1 * tpowL1;
tpowL3 := tpowL1 * tpowL2;
HiDegPolyLL := deg1 * tpowL1;
HiDegPolyLL := deg2 * tpowL2;
HiDegPolyLL := deg3 * tpowL3;
HiDegPolyLL := -0.2 * a;
HiDegPolyL := 0.0313012969 * HiDegPolyLL;
HiDegPolyL := -0.22377 * a;
startpit1 := 1 * a;
outLearn1 := -1 * LowDegPolyL;
outLearn1 := if (t5 > 0.2) 1 * HiDegPolyL;
pitL3 := joyswit * (1 >) outLearn1;
pitL3_1 := startpit1 * pitL3;
pitL4 := if (chpit1 < 0) 1 * pitL3_1;
pitL := ::smthend::m1 * pitL4;
ssR1 := if (t4 < 0.2) -1 * a;
ssR1 := 0.406145999 * a;
spitR := 1 * spitR;
spitR := 1 * ssR1;
ssR3 := 1 * spitR;
ssR3 := -2.551890576 * a;
ssR2 := 0.32993491 * ssR3;
LowDegPolyR2 := if (t4 < 0.2) 1 * ssR2;
tpowSR1 := 0.85 * LowDegPolyR2;
tpowSR2 := tpowSR1 * tpowSR1;
tpowSR3 := tpowSR1 * tpowSR2;
LowDegPolyRR := 3.7 * tpowSR1;
LowDegPolyRR := 0 * tpowSR2;
LowDegPolyRR := -1.86 * tpowSR3;
LowDegPolyR := 0.5 * LowDegPolyRR;
tpowR1 := 1 * pp2;
tpowR2 := tpowR1 * tpowR1;
tpowR3 := tpowR1 * tpowR2;
HiDegPolyRR := deg1 * tpowR1;
HiDegPolyRR := deg2 * tpowR2;
HiDegPolyRR := deg3 * tpowR3;
HiDegPolyRR := -0.2 * a;
HiDegPolyR := 0.0307 * HiDegPolyRR;
HiDegPolyR := -0.22377 * a;
::poly2::y := 1.340017436 * a;
yy := 1 * (0 <) ::poly2::y;
yy2 := 1 * (1 >) yy;
pitRini := 1 * yy2;
pitR1 := 1 * LowDegPolyR;
pitR1 := if (t4 > 0.2) 1 * HiDegPolyR;
pitR2 := if (::ppoly2::y < 0) 1 * pitR1;
pitR2_1 := 1 * (1 >) pitR1;
pitR2_2 := 1 * (-1 <) pitR2_1;
pitR3 := pitRini * pitR2_2;
pitR4 := joyswit * pitR3;
pitR5 := if (chpit1 < 0) 1 * pitR4;
pitR := ::smthend::m1 * pitR5;
t1 := if (ar < 0) 1 * a;
g1 := 1 * (0.286524553 <) ::sin1::y;
g1hoap2 := if (chrol1 < 0) 1 * g1;
ghl := 1 * (0 <) g1hoap2;
g22 := -1 * ::sin1::y;
g2 := 1 * (0.286524553 <) g22;
g2hoap2 := if (chrol1 < 0) 1 * g2;
ghr := 1 * (0 <) g2hoap2;
vRollampAdd := if (::smthend::m < 1) -4 * a;
vRollamp := 14.5 * a;
vRollamp := 1 * vRollampAdd;
addj1 := if (ar < 0) 1 * a;
joint1 := vRollamp * ar;
joint1_end := if (RollEnd > 0) 1 * joint1;
joint2 := 0.544719463 * o1;
joint2_1 := 15 * joint2;
joint2_1 := -1 * pitR;
joint2_2 := 1 * joint2_1;
joint3 := 0.544719463 * o1;
joint3_1 := -15 * joint3;
joint3_1 := -15 * joint3;
joint4 := 0.544719463 * o1;
joint4_1 := 15 * joint4;
joint4_1 := 1 * pitR;
joint5 := - vRollamp * ar;
joint5_end := if (RollEnd > 0) 1 * joint5;
joint6 := if (RollEnd > 0) -13 * ar;
addj11 := if (ar > 0) 1 * a;
joint11 := vRollamp * ar;
joint11_end := if (RollEnd > 0) 1 * joint11;
joint12 := 0.544719463 * o2;
joint12_1 := 15 * joint12;
joint12_1 := -1 * pitL;
joint12_2 := 1 * joint12_1;
joint13 := 0.544719463 * o2;
joint13_1 := -15 * joint13;
joint13_1 := -15 * joint13;
chpit1 := 1 * temp14;
chpit1 := -0.397887358 * a;
joint14 := 0.544719463 * o2;
joint14_1 := 15 * joint14;
joint14_1 := 1 * pitL;
joint15 := - vRollamp * ar;
joint15_end := if (RollEnd > 0) 1 * joint15;
joint16 := if (RollEnd > 0) 13 * ar;
out[0] := 0 * a;
out[1] := softStart * joint1_end;
out[1] := 0 * a;
out[2] := softStartLift * joint2_2;
out[2] := -20 * a;
out[3] := softStartLift * joint3_1;
out[3] := 40 * a;
out[4] := softStartLift * joint4_1;
out[4] := -20 * a;
out[5] := softStart * joint5_end;
out[5] := 0 * a;
out[6] := 90 * a;
out[7] := -10 * a;
out[8] := 10 * a;
out[9] := -25 * a;
out[10] := 0 * a;
out[11] := softStart * joint11_end;
out[11] := 0 * a;
out[12] := softStartLift * joint12_2;
out[12] := -20 * a;
out[13] := softStartLift * joint13_1;
out[13] := 40 * a;
out[14] := softStartLift * joint14_1;
out[14] := -20 * a;
out[15] := softStart * joint15_end;
out[15] := 0 * a;
out[16] := 90 * a;
out[17] := 10 * a;
out[18] := -10 * a;
out[19] := -25 * a;
out[20] := 0 * a;