-
Notifications
You must be signed in to change notification settings - Fork 5
/
parameters.scad
792 lines (598 loc) · 27.6 KB
/
parameters.scad
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
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
use <src/lib/vector.scad>
global_clearance = 0.5;
perimeter = 0.41;
layer = 0.2;
week = "77"; // Popisek s cislem tydne, nastavuje se z makefilu
// obecne rozmery trubek
carbon_pipe_10_outer_diameter = 10.4;
carbon_pipe_10_inner_diameter = 6;
//Main tube diameter - hole [mm]
main_tube_outer_diameter = 25.4;
main_tube_inner_diameter = 23.05;
//Tube for undercarriage - rendered hole [mm]
tube_for_undercarriage_outer_diameter = carbon_pipe_10_outer_diameter;
tube_for_undercarriage_inner_diameter = carbon_pipe_10_inner_diameter;
//Tube for pilon - rendered hole [mm]
pilon_pipe_diameter = carbon_pipe_10_outer_diameter;
pilon_pipe_diameter_inner = carbon_pipe_10_inner_diameter;
// Parametry hlavniho nosniku
beam_vertical_space_between_pipes = 1;
beam_min_wall = 3;
beam_socket_width = 25;
// tloustka limce
ring_thickness = 2*10 + beam_vertical_space_between_pipes + 3*beam_min_wall;
// tloustka podlozky, a tloustka podlozky od stredu smerem nahoru/dolu
beam_thickness = 2*10 + beam_vertical_space_between_pipes + 2*beam_min_wall;
beam_thickness_above = 5 + beam_min_wall;
beam_thickness_below = 5+ beam_vertical_space_between_pipes + 10 + beam_min_wall;
//beam_thickness = 30;
beam_width = 80;
beam_length = 490;
beam_edge_angle = 60/2;
beam_division = [0, 145, 275, 417, 1000];
beam_main_pipe_diameter = carbon_pipe_10_outer_diameter;
beam_main_pipe_distance = 45;
beam_main_pipe_thickness = carbon_pipe_10_outer_diameter;
beam_patern = 40;
beam_side_edge_width = 175;
// Parametry pro limec
collar_holes_distance = 200; // Vzdalenost der pro sesroubovani pricnych tyci. Vzdalenost na trubce
beam_side_pipe_distance = collar_holes_distance; // TODO: odstranit tento parametr
// Nastavení parametrů rotoru
gliding_aggle = 14; // tenhle úhel by se zřejmě v budoucnu měl počítat z požadované klouzavosti.
rotor_blade_AOA = 3; // nastavení úhlu náběhu rotorového listu
rotor_blade_length = 970; // délka rotorového listu
rotor_blade_depth = 50; // hloubka rotorového listu
rotor_flap0 = 2;
rotor_delta = 20;
/* // parametry rotorove hlavy
rotor_head_pitch = 0;
rotor_head_roll = 0;
rotor_head_height = 78; // vzdalenost spodni zakladny rotorove hlavy od stredu kuloveho loziska
rotor_head_width = 70; // je to "sirka" v ose X
rotor_head_rank_angle = 9; // zakloneni rotorove hlavy pri nulove vychylce.
rotor_head_bearing_x_shift = -0; // posun kuloveho loziska dopredu dozadu.
*/
rotor_head_plate_bearing_center_distance = 14; // vzdalenost horni spodni steny placky od stredu loziska
rotor_head_limiter_above = 12; // jak moc vysoko ma byt divnotvar nad stredem loziska
rotor_head_limiter_below = 3; // jak moc nizko ma byt divnostvar pod stredem loziska
// nastavení parametrů motoru
engine_angle = -1.5;
engine_diameter = 55;
engine_offset = 65;
engine_holder_beam_depth = 50; // jak moc je nosnik zapusten v dilu
engine_screws_radius = 15;
engine_holes_radius = (24 + 44)/4;
engine_shatf_hole_diameter = 13;
// Parameters of tube couplings
coupling_wall_thickness = main_tube_outer_diameter/5; //width of coupling walls
thickness_between_tubes = main_tube_outer_diameter/10; // minimum distance between tubes in couplings
coupling_wall_thickness_undercarriage = tube_for_undercarriage_outer_diameter/3;
thickness_between_tubes_undercarriage = tube_for_undercarriage_outer_diameter/10;
608_bearing_outer_diameter = 22.3;
608_bearing_inner_diameter = 8-0.3+0.4;
608_bearing_thickness = 7.1;
696_bearing_outer_diameter = 15.3;
696_bearing_inner_diameter = 6-0.3+0.4;
696_bearing_thickness = 5.1;
//parametry mechoveho kola
wheel_inner_diameter = 36;
wheel_inner_thickness = 28;
wheel_outer_diameter = 108;
wheel_disc_diameter = 51;
wheel_disc_upper_thickness = 5;
wheel_disc_upper_difference = 7;
// screw length step - minimum difference in length between two types of screws
basic_screw_length = 5;
//Square nut for M6 [mm]
M6_square_nut_length = 10;
M6_square_nut_height = 3.2;
//Screw diameter and nut for M10 [mm]
M10_screw_diameter=10.4;
M10_head_height = 10;
M10_head_diameter = 16+0.5;
M10_nut_height = 10.5;
M10_nut_diameter = 25.5;
M10_nut_pocket = 22.3;
//Screw diameter for M8 [mm]
M8_screw_diameter = 8 + 0.5;
M8_head_height = 8;
M8_head_diameter = 13.5;
M8_nut_height = 7.5;
M8_nut_diameter = 14.4 + 0.5;
M8_nut_pocket = 13 + 0.5;
M8_plug_diameter = 8;
//Screw diameter and nut for M6 [mm]
M6_screw_diameter=6.5;
M6_head_diameter = 10+0.5;
M6_head_height = 6;
M6_nut_height = 4.9;
M6_nut_diameter = 11.8;
M6_nut_pocket = 10.4;
//Screw diameter and nut for M5 [mm]
M5_screw_diameter=5.5;
M5_head_height = 5;
M5_head_diameter = 13+0.5;
M5_nut_height = 4 + 0.5;
M5_nut_diameter = 9.4;
M5_nut_pocket = 8.4;
//Screw diameter and nut for M4 [mm]
M4_screw_diameter=4.3;
M4_screw_head_height = 4.5;
M4_nut_height = 3.2 + 0.5;
M4_nut_diameter = 8.4;
M4_nut_pocket = 7.5;
//Screw diameter and nut for M3 [mm]
M3_screw_diameter = 3.2;
M3_nut_height = 2.7;
M3_nut_diameter = 6.6;
M3_screw_head_height = 3;
M3_nut_pocket = 5.6;
//Screw diameter and nut for M2,5 [mm]
M2_5_screw_diameter = 2.7;
M2_5_nut_height = 2.3;
M2_5_nut_diameter = 6;
M2_5_nut_pocket = 5.1;
//Screw diameter and nut for M2 [mm]
M2_screw_diameter = 2.1;
M2_nut_height = 2;
M2_nut_diameter = 4.5;
M2_nut_pocket = 3.95;
//M3 ISO7380
M3_ISO7380_head_height = 1.5;
M3_ISO7380_nut_height = 3;
M3_ISO7380_nut_diameter = 5.7+0.5;
//sroub servo
Servo_screw = 1.5;
Servo_nut_height = 1;
Servo_nut_diameter = 2.7;
//The tube for help
Help_main_tube_outer = 25;
Help_main_tube_inner = 23;
Help_tube_for_undercarriage_outer = 10;
Help_tube_for_undercarriage_inner = 5;
//main hull parameters
hull_drop_length = 720; // zajím sjednoceno s hull_x_size, ale v budoucnu by tento parametr chtělo zrušit
hull_wall_thickness = 0.8;
hull_y_size = 150;
hull_z_size = 230;
hull_x_size = hull_drop_length;
hull_corner_radius = 4;
hull_airfoil_thickness= 0035; // thickness of drop generating airfoil in percent of length.
hull_scale_x = 1;
hull_scale_y = 1.5;
hull_scale_z = 1.5;
hull_strenghtening_pipe_distance = 45;
// Parametry pylonu k rotorove hlave
main_pilon_position = 170+68+beam_patern; // pozice rotorového pilonu měřená od přední části krytu
// vzdalenosti jsou pocitany od stredu rotoru
// vzdalenosti jednotlivych tyci u podlozky
//pilon_pipe_base_front_x = 30;
pilon_pipe_base_front_x = +engine_holder_beam_depth + main_pilon_position - beam_patern*6.75;
pilon_pipe_base_front_y = 55;
pilon_pipe_base_front_z = 0;
pilon_pipe_base_rear_x = -engine_holder_beam_depth + beam_patern*9.75 - main_pilon_position;
pilon_pipe_base_rear_z = beam_thickness_above;
// vzhalenosti jednotlivych tyci u rotorove hlavy
pilon_pipe_head_front_x = 20;
pilon_pipe_head_front_y = 20;
pilon_pipe_head_rear_x = 30;
cover_pilon_position = main_pilon_position - 42;
cover_pilon_naca = 0060;
height_of_vertical_tube = 350; //278mm je změřená délka trubky.
//délka hlavní dlouhé trubky
length_of_main_tube = 820;
length_of_undercarriage_tube_front = 150;
length_of_undercarriage_tube_rear = 320; //500;
ribbon_width = 5; // šířka vyztužovacích lemů.
// šířka otvoru v přední části kapoty pro držák motoru.
width_of_engine_holder = 83;
//Top Cover Division - dělení horního krytu pro tisk
top_cover_division = [0, 50, 150, 290, 435, 580, hull_x_size];
top_cover_strip_zposition = 0;
//Bottom Cover Division - dělení dolního krytu pro tisk
bottom_cover_division = [0,145,290,365, 470, hull_x_size];
bottom_cover_strip_zposition = -15;
// zkrácená část pro payload pro testovací tisk
//bottom_cover_division = [0,200,250,365, 470, hull_x_size];
rotor_height = height_of_vertical_tube + main_tube_outer_diameter/2 + 2*global_clearance + thickness_between_tubes + 30; // změřená výška rotoru je 367mm
center_of_gravity_position = [main_pilon_position - tan(gliding_aggle)*rotor_height, 0, 0];
//Cover pilon division - na výšku (v ose Z)
cover_pilon_division = [0,170,height_of_vertical_tube + main_tube_outer_diameter + coupling_wall_thickness];
//pozice šroubů
//horní kryt
top_screw_position = [0,
(top_cover_division[0] + top_cover_division[1]/2),
(top_cover_division[2] - top_cover_division[1])/2 + top_cover_division[1],
(top_cover_division[3] - top_cover_division[2])/2.6 + top_cover_division[2],
(top_cover_division[4] - top_cover_division[3])/3.2 + top_cover_division[3],
(top_cover_division[5] - top_cover_division[4])/2 + top_cover_division[4] - top_cover_division[1]/3,
(top_cover_division[5] - 20) ];
//spodní kryt
bottom_screw_position = [0,
(top_cover_division[0] + top_cover_division[1]/2 + 15),
(top_cover_division[2] - top_cover_division[1])/2 + top_cover_division[1] + 15,
(top_cover_division[3] - top_cover_division[2])/2.6 + top_cover_division[2] + 15,
(top_cover_division[4] - top_cover_division[3])/3.2 + top_cover_division[3] - 15,
(top_cover_division[5] - top_cover_division[4])/2 + top_cover_division[4] - top_cover_division[1]/3,
(top_cover_division[5] - 10) ];
//šířka zámků
lock_width = 10;
//délka zámků
lock_length = 3;
//accumulator
//základní rozměry akumulátoru
width_of_accumulator = 40;
depth_of_accumulator = 138;
height_of_accumulator = 40;
//Zapuštění akumulátoru
sink_of_accumulator = 5; //main_tube_outer_diameter/5 - M3_nut_height*1.5;
//rozměry držáku akumulátoru
accumulator_holder_width = 40;
//posunutí akumálátoru na podložce
move_of_accumulator = 75; // pozice akumulátoru (ovlivňuje těžiště)
////////////////
// Senzory
///////////////////
//opticalFlow
width_optical_flow_senzor = 45.5;
depth_optical_flow_senzor = 6;
height_optical_flow_senzor = 35;
sink_of_optical_flow_senzor = depth_optical_flow_senzor - 5;
M3_optical_flow_senzor_Z = 30.4;
M3_optical_flow_senzor_X = 24;
M3_optical_flow_senzor_Z_alone = 9.1;
M3_optical_flow_senzor_X_alone = 16.7;
//GPS anténa
GPS_outer_length = 48.01; //Vnější rozměr
GPS_inner_length = 37.48; //Vnitřní rozměr
GPS_diameter = (GPS_outer_length - GPS_inner_length)/2; //Průměr otvoru
GPS_middle_length = GPS_diameter + GPS_inner_length; //Střední rozměr
////podzvozek
radius_undercarriage = 25;
vzdalenost_x = tan(20) * 200;
vzdalenost_y = (200 - radius_undercarriage)/tan(79);
uhel_y = 90 - 20;
uhel_x = 90 - 79;
maximum_printable_size = 150;
// Predni PODVOZEK
front_undercarriage_bearing_distance = 10;
////Pitotova trubice
Pitot_tube_diameter = 4.02 + 1;
Distance_hole_from_tube = 11.92; //vzdálenost otvoru pro připevnění od samotné trubičky
////směrové kormidlo
Rudder_length = 3*main_tube_outer_diameter; // delka smerovky (pohiblive casti)
Rudder_height = 150; // vyska smerovky (pohiblive casti)
Rudder_depth = main_tube_outer_diameter/2; // hloubka smerovky (pohiblive casti)
Rudder_wall_thickness = hull_wall_thickness; // tloustka povrchove steny smerovky
Rudder_infill_wall_thickness = 0.64; // tloustka vnitrnich sten smerovky
Rudder_gap_width = 2*hull_wall_thickness; // šířka mezery mezi směrovkou a ocasní plochou
Rudder_shaft_diameter = 2.3; // otočné uchycení směrovky - průměr 2 mm
Rudder_arm_x_offset = 5.5; // odsazeni paky servo od osy smerovky
Rudder_shaft_end_cut = 5; // hloubka vykousnuti konce osy
tail_depth = 50; // hloubka pro vnitrni casti smerovky
tail_airfoils_angle = 90;
tail_length = sqrt(pow(maximum_printable_size, 2) + pow(maximum_printable_size, 2)) - 10; // delka smerovky (ne delka plochy kridla)
tail_height = 210; // vyska smerovky (ne vyska plochy kridla)
tail_bottom_height = 10; // vyska spodniho dilu smerovky (ne vyska plchoy kridla)
tail_top_height = tail_height - tail_bottom_height - Rudder_height;
// vyska horniho dilu smerovky (ne vyska plchoy kridla)
tail_pipe_z_position = tail_height/2; // od spodniho okraje smerovky
tail_airfoils_length = 1/(cos(tail_airfoils_angle/2)/tail_height);
tail_pipe_distance = sin(tail_airfoils_angle/2)*(tail_height - tail_pipe_z_position)*2-12.5;
tail_pipe_convergence = 0;
tail_airfoils_convergence = 3;
tail_front_mount_edge_cut_x_position = 5; // pozice seriznuti predni hrany (osa X)
tail_y_pos = 850-100; // jak je smerovka daleko od prvni prince trubky
Rudder_shaft_x_position = tail_length - Rudder_length + Rudder_gap_width; // pozice ochyceni smerovky
tail_shape_A_cutter_y_offset = 10.4; // vyoseni rezace tvaru A (osa Y)
tail_shape_A_cutter_z_offset = - 9; // vyoseni rezace tvaru A (osa Z)
tail_angle = 60; // tvar A vzájemný náklon
tail_support_x_position_1 = 20; // pozice prvni karbonove tyce
tail_support_x_position_2 = 80; // pozice druhe karbonove tyce
tail_A_shape_screw_y_pisition = tail_height - tail_bottom_height - Rudder_height - 20; // pozice der na sroub (uchyceni dvou smerovek)
tail_A_shape_screw_x_position_1 = 35; // pozice prvni diry na sroub (uchyceni dvou smerovek)
tail_A_shape_screw_x_position_2 = 95; // pozice druhe diry na sroub (uchyceni dvou smerovek)
tail_A_shape_screw_depth = Rudder_depth + 2; // hloubka zapusteni sroubu
tail_top_passive_rudder_screw_y_pisition = tail_height - tail_bottom_height - Rudder_height - 15.8; // pozice der na sroub (uchyceni vrtchni pasivni smerovky)
tail_top_passive_rudder_screw_x_position_1 = 45; // pozice prvni diry na sroub (uchyceni vrtchni pasivni smerovky)
tail_top_passive_rudder_screw_x_position_2 = 105; // pozice druhe diry na sroub (uchyceni vrtchni pasivni smerovky)
tail_servo_z_offset = - 5; // posunuti serva vuci uchyceni na trubku (osa Z);
tail_servo_length = 36; // velikost otvoru pro servo (delka)
tail_servo_height = 32; // velikost otvoru pro servo (vyska)
tail_servo_length_inside = 23.2; // velikost otvoru pro servo bez uchyceni (delka)
tail_servo_wing_depth = 1.2; // tloustka steny upevneni serva
tail_servo_screws_gap = 28; // mezera mezi srouby pro uchyceni serva
tail_servo_screws_z_position = 18; // pozice sroubu pro uchyceni serva (osa Z)
tail_servo_screws_diameter = 1.8; // prumer der na srouby
tail_servo_wall_y_offset = - 2; // vyoseni uchyceni pro servo
tail_servo_wire_hole_length = 10; // delka vykusu pro draty
tail_servo_wire_hole_width = 13; // sirka vykusu pro draty
tail_servo_wire_hole_height = 10.7; // vyska vykusu pro draty
tail_servo_wall_and_screws_y_position = 5; // pozice steny a sroubu pro uchyceni serva (osa Y)
tail_servo_arm_depth = 15.1; // hloubka ramena u serva
tail_servo_rudder_arm_z_position = Rudder_height / 2 + 9 - tail_bottom_height; // posunuti paky smerovky vuci stredu
tail_servo_rudder_arm_side_size = 14; // delka a sirka zkladny pro rameno pro uchyceni serva
tail_servo_rudder_arm_depth = 12.95; // hloubka ramena pro uchyceni serva na smerovku
tail_servo_rudder_arm_y_offset = - tail_servo_rudder_arm_depth + tail_servo_arm_depth + tail_servo_wing_depth / 2 - tail_servo_wall_y_offset;
tail_tube_mount_length = 40; // delka upevneni na trubku
tail_tube_mount_height = 32; // vyska upevneni na trubku
tail_tube_mount_wings_thickness = 5; // tloustka kridilek pro uchyceni
tail_tube_mount_screws_z_position = 12; // pozice sroubu od stredu trubky
tail_tube_mount_screws_x_position = 10; // pozice sroubu od stredu uchyceni trubky
tail_tube_mount_screws_wall_thickness = 2; // tloustka steny mezi sroubem a uchycenim
tail_top_passive_rudder_height = 50; // vyska pasivni vrchniho dilu smerovky
////spojka 666_1014
width_666_1014 = tube_for_undercarriage_outer_diameter + 2*coupling_wall_thickness_undercarriage;
depth_666_1014 = tube_for_undercarriage_outer_diameter + M3_screw_diameter + 2*coupling_wall_thickness_undercarriage + thickness_between_tubes_undercarriage;
height_666_1014 = width_666_1014;
width_666_1014_drillhelper = 2*tube_for_undercarriage_outer_diameter + 2*coupling_wall_thickness_undercarriage;
// šrouby pro připevnění podložky k hlavní trubce
base_mounting_screw_length = 50;
// kulove lozisko
bearing_efsm_08_h = 33+1;
bearing_efsm_08_m = 22;
bearing_efsm_08_db = 18;
bearing_efsm_08_ag = 10.5;
bearing_efsm_08_n = M4_screw_diameter;
bearing_efsm_08_a1 = 5.5;
bearing_efsm_08_d = 8.25;
bearing_efsm_08_B = 8; // ball height
bearing_efsm_10_h = 38+1;
bearing_efsm_10_m = 26;
bearing_efsm_10_db = 21.9;
bearing_efsm_10_ag = 12+0.2;
bearing_efsm_10_n = M5_screw_diameter;
bearing_efsm_10_a1 = 6.5;
bearing_efsm_10_d = 10.25;
bearing_efsm_12_width = 40+1;
bearing_efsm_12_h = bearing_efsm_12_width;
bearing_efsm_12_boltd = 28/2; // polovina vzdalenosti mezi srouby
bearing_efsm_12_m = bearing_efsm_12_boltd*2;
bearing_efsm_12_db = 25;
bearing_efsm_12_ag = 13;
bearing_efsm_12_a1 = 7;
bearing_efsm_12_n = M5_screw_diameter;
bearing_efsm_12_d = 12.15;
bearing_efsm_12_B = 10; // ball height
bearing_efsm_space = 1;
bearing_efsm_17_width = 54+1;
bearing_efsm_17_h = bearing_efsm_17_width;
bearing_efsm_17_boltd = 38/2; // polovina vzdalenosti mezi srouby
bearing_efsm_17_m = bearing_efsm_17_boltd*2;
bearing_efsm_17_db = 35;
bearing_efsm_17_ag = 18;
bearing_efsm_17_n = M6_screw_diameter;
bearing_efsm_17_a1 = 10;
bearing_efsm_17_B = 17; // ball height
// 20 KG servo parameters
servo_20kg_axis_offset = 9.375; // jak je osa mimo stredu
servo_20kg_body_x = 42;
servo_20kg_body_y = 21;
servo_20kg_body_z = 40;
servo_20kg_thread_x = 49/2;
servo_20kg_thread_y = 10/2;
servo_20kg_body_below = 10; // jak hluboko je tělo serva pod drzaky na srouby
servo_20kg_below = 25.8; // jak hluboko je páka serva pod drzaky na srouby
servo_20kg_bolt_d = 2.5+0.3;
servo_20kg_nut_d = 5+0.3;
// parametry rotorove hlavy
rotor_head_pitch = 10;
rotor_head_roll = 0;
rotor_head_screw_distances = [0, 10, 64];
rotor_head_servo_shift = [-7, -49, -45];
rotor_head_height = 17; // vzdalenost spodni zakladny rotorove hlavy od stredu kuloveho loziska
rotor_head_width = 30; // je to "sirka" v ose X
rotor_head_rank_angle = 9; // zakloneni rotorove hlavy pri nulove vychylce.
rotor_head_bearing_x_shift = 12; // posun kuloveho loziska dopredu dozadu.
rotor_head_prerotator_distance = 79.03; // vzdalenost osy motoru od osy rotoru
rotor_head_roll_stop=10;//max roll angle
rotor_head_pitch_stop=15;//max pitch angle
rotor_head_brit_width=5;
rotor_head_plate_thickness=0;
rotor_head_cardan_clearance=0.5;
rotor_head_bearing_width=bearing_efsm_12_width;//širka podstavy x
rotor_head_bearing_h=bearing_efsm_12_h;//delka podstavy y
rotor_head_bearing_db=bearing_efsm_12_db;//sirka vnitrniho vyviseni
rotor_head_bearing_m=bearing_efsm_12_m;//vzdalenost stredu sroubku
rotor_head_bearing_d=bearing_efsm_12_d;//tloušťka osičky
rotor_head_bearing_a1=bearing_efsm_12_a1;//vyška priruby pro sroubky
rotor_head_bearing_ag=bearing_efsm_12_ag;
rotor_head_bearing_a_center_of_rotation=8; //vyska stredu otaceni
rotor_head_bearing_screw_head_height=3.5;
//rotor_head computed parameters
//rotor_head_wall_height=2*((rotor_head_bearing_a1+rotor_head_bearing_screw_head_height-rotor_head_bearing_a_center_of_rotation+rotor_head_bearing_width/2*tan(rotor_head_roll_stop))*cos(rotor_head_roll_stop));//height of side wall of center part
rotor_head_wall_height = 8;
rotorhead_neck_height=6;
rotor_head_kardan_prestress=0.5;
rotorhead_neck_plate_diameter = 38;
rotorhead_neck_plate_thickness = 2;
rotorhead_desk_thickness = 4;
rotor_head_kardan_inner_x=rotor_head_bearing_width+2*rotor_head_cardan_clearance;
rotor_head_kardan_inner_y=2*(rotor_head_bearing_h/2*1/cos(rotor_head_pitch_stop)+rotor_head_wall_height/2*tan(rotor_head_pitch_stop)); //center part
// 888_2***
// G2
//
g2_0_part_space = 2; // mezera mezi zadni a predni casti
g2_5_height = 608_bearing_outer_diameter*1.5;
g2_5_width = 70+5.5+11;
g2_5_threads = 2; // kolik ma byt sroubu skrz nosnou tyc
g2_5_m3_length = base_mounting_screw_length; // sroub, ktery se pouziva na sesroubovani s nosnou tyci
g2_5_servo_shift = 30;
g2_5_servo_wall = 5;
g2_5_m8_length = 60; // sroub, ktery se pouziva jako osa pro podlozku
g2_5_front_l = main_tube_outer_diameter + 608_bearing_outer_diameter*2;// jak moc ma byt magnet v predu
g2_5_zapusteni_serva = 30;
g2_5_length = g2_5_zapusteni_serva + 2*main_tube_outer_diameter + 30;
g2_5_length_offset = -10;
g2_5_bearing_space = 2; // mezera pro podlozku mezi loziskem a stenou..
g2_0_vertical_bolts = 2;
g2_0_space_btw_wheel_holder = 25.8;
g2_6_plate_thickness = 8;
g2_6_servo_distance = 54; // jak je daleko servo pred tyci kola
g2_6_servo_shift = 0; // jak je osa serva mimo stredu
g2_6_servo_bolt_l = 8; // delka sroubu od konce serva po zacatek matky
g2_6_min_wall_around = 8; // minimalni material okolo serva
// pro dily ze skupiny 3 (888_30**)
g3_0_cone1 = 70;
g3_0_cone2 = 50;
g3_0_cone_height = 25;
g3_0_cone_top_height = 11;
g3_0_height = g3_0_cone_height + 40;
g3_0_bearing_bolt_len = 50;
g3_0_srcew_dist = 55;
// Nastavní volností skupiny dílů 888_30**
// Nastavení rozsahů je v deg
g3_0_pitch_limit = [-20:3:20];
g3_0_roll_limit = [-15:3:15];
g3_0_yaw_limit = [-10:3:10];
//pro zakladnu na strechu auta
g3_1_yaw_width = 75;
g3_1_service_holl_height = 8.4 + 2;
g3_1_service_holl_width = 16 + 1.5;
//pro druhy dil
g3_7_length = maximum_printable_size;
g3_7_width = bearing_efsm_17_width + 2*1+ 2*3;
g3_7_height = M8_screw_diameter*3;
g3_8_magnet_wall_thickness = 7; // tloustka steny u magnetu
g3_8_bearing_wall_thickness = bearing_efsm_12_ag-bearing_efsm_12_a1;
g3_8_magnet_diameter = 63;
g3_8_cylinder_d = 55; // prumer valce
g3_8_cylinder_h = 30 + g3_8_magnet_wall_thickness;
g3_8_m5_lenght = 40; // delka sroubu pro pridelani kuloveho loziska
g3_8_pocket_wall = g3_8_cylinder_h-(g3_8_m5_lenght-bearing_efsm_12_a1-M5_nut_height-5);
// podlozka na strechu auta
g3_9_height = 145;
servo_20kg_width = 21; //šřka otvoru pro servo
servo_20kg_height = 42; //výška otvoru pro servo
//male servo
servo_height = 23.2;
servo_width = 12.2;
servo_deepth = 30;
//parametry pro serva
//značení parametrů: https://www.servocity.com/media/wysiwyg/products/servos/hitec-servos/standard_servos/31422S/Standard_Servo_Schematic_2_1_.jpg
//DS313MG
DS313MG_A = 12.2;
DS313MG_B = 8.3;
DS313MG_C = 19.7;
DS313MG_D = 7;
DS313MG_E = 5.8;
DS313MG_F = 17.2;
DS313MG_G = 7;
DS313MG_H = 19.9;
DS313MG_J = 38.2;
DS313MG_K = 6.7;
DS313MG_M = 23.2;
DS313MG_X = 4;
/// Parametry podvozku
fork_wheel_width = wheel_inner_thickness + 2*1.5 + 2* wheel_disc_upper_thickness + 0.5;
2013_pipe_offset = [0, 0, 25];
// Dily spojujici podvozkova ramena
2017_bearing_mount_offset = [0, 22, 0]; // Umisteni osy kuloveho loziska v souradnicovem syst. dilu
2017_pipe_mount_offset = [6, 0, -37]; // Umisteni tyce podvozku loziska v souradnicovem syst. dilu
2017_pipe_bottom = 8; // Jak daleko nad zemi konci tyc
2018_thickness_above_pipe = 2;
chassis_wheelbase = 600; // rozvor kolecek
chassis_height = 200; // vyska podvozku
chassis_baselength_r = beam_patern*2.25; // podelna roztec podvozku dozade
chassis_baselength_f = beam_patern*2.75; // podelna roztec podvozku dopredu
chassis_suspension_basewidth = 250;//vzdalenost prichyceni tlumicu na pricne tyci
chassis_camber = -3; //Odklon kola
// delka ramene (trubky) podvozku rozlozena do osy X
chassis_pipe_baselength_r = chassis_baselength_r - 2017_pipe_mount_offset[0];
chassis_pipe_baselength_f = chassis_baselength_f - 2017_pipe_mount_offset[0];
chassis_pipe_wheelbase = chassis_wheelbase/2 - 2017_bearing_mount_offset[1];
calc_chassis_height = chassis_height - 2017_pipe_mount_offset[2] - 2013_pipe_offset[2];
//chassis_arm_pipe_length = sqrt(pow(calc_chassis_height, 2) + pow(calc_chassis_baselength/2, 2) + pow(chassis_wheelbase/2, 2)) - 2017_pipe_bottom;
chassis_arm_pipe_length = 400;
chassis_arm_f = [chassis_pipe_baselength_f, chassis_pipe_wheelbase, chassis_height];
chassis_arm_r = [chassis_pipe_baselength_r, chassis_pipe_wheelbase, chassis_height];
chassis_arm_length_f = mod(chassis_arm_f);
chassis_arm_length_r = mod(chassis_arm_r);
chassis_pipe_angle_x = atan((chassis_pipe_wheelbase)/(chassis_height));
chassis_pipe_angle_y = 0;
chassis_pipe_angle_r_z = atan((chassis_pipe_baselength_r)/(chassis_pipe_wheelbase));
chassis_pipe_angle_f_z = atan((chassis_pipe_baselength_f)/(chassis_pipe_wheelbase));
chassis_suspension_angle_x = atan((chassis_wheelbase/2 - chassis_suspension_basewidth/2)/chassis_height);
chassis_suspension_angle_y = 0;
chassis_suspension_angle_z = 0;
// parametry dilu 888_2013 - drzak podvozku za podelnou tyc virniku
// hodnoty jsou oproti stredu podvozku
chassis_bearing_distance = 60; // vzdalenost kulovych lozisek na podlozek
chassis_top_bearing_position_f = [chassis_pipe_baselength_r/2, chassis_bearing_distance/2, 0];
chassis_top_bearing_position_r = [chassis_pipe_baselength_f/2, chassis_bearing_distance/2, 0];
//chassis_top_bearing_position_x = chassis_top_bearing_position[0];
chassis_top_bearing_position_y = chassis_bearing_distance/2;
chassis_top_bearing_position_z = 30;
chassis_top_bearing_rotation_f = [chassis_pipe_angle_x, 0, chassis_pipe_angle_f_z];
chassis_top_bearing_rotation_r = [chassis_pipe_angle_x, 0, chassis_pipe_angle_r_z];
// VIDLICE ZADNIHO KOLECKA
chassis_fork_screw_length = 55;
chassis_fork_thickness = 20;
chassis_fork_width = 10;
chassis_fork_hole_diameter = 10;
chassis_fork_lenght = 90/2;
chassis_fork_length_overlap = 18; // prodlouzeni smerem dolu
//chassis_arm_mount_plate = [40, 25];
888_2013_width = 70;
//RT/57208/M/25 - https://www.tme.eu/cz/details/rt_57208_m_25/pracovni-valce/norgren-herion/
//https://www.tme.eu/Document/ff73b4843b8c955086fd9fea378c9c65/RT57200.PDF
//https://www.tme.eu/html/gfx/image_9212.gif
RT57208M25_A = 8;
RT57208M25_BE = M10_screw_diameter;
RT57208M25_KK = M3_screw_diameter;
RT57208M25_MMh9 = 3;
RT57208M25_EW = 6;
RT57208M25_CD = 3;
RT57208M25_D = 12;
RT57208M25_MR = 4;
RT57208M25_LB = 4.5;
RT57208M25_XC = 48;
RT57208M25_WF = 8.5;
RT57208M25_stroke = 25;
//KBRM-03
//https://www.igus.cz/product/160
//https://www.igus.cz/contentData/Products/ProductPictures/p160z22479_1050x700.jpg
KBRM03_B = 6;
KBRM03_h1 = 18.5;
KBRM03_l1 = 8;
KBRM03_l2 = 25;
// PREDNI PODVOZEK
wheel_diameter = 110;
material_around_bearing = 3;
chasis_fork_thickness = 15;
stop_size = 8;
stop_width = 6;
max_angle_of_ratation = 25; //úhel mezi maximálními výchilkami podvozku při zatáčení
joint_width = 25;
//888_2024
888_2024_holder_angle = 40;
888_2024_holder_length = 100;
888_2024_joint_height = 5;
//888_2025
888_2025_distance_space = 0;
888_2025_wall_thickness = 2;
888_2025_height = 10;
888_2025_sliding_insert_overlap = global_clearance/2;
888_2025_washer_diameter = 20;
888_2025_washer_thickness = 1;
//888_2022
888_2022_front_fork_length = 100;
888_2022_piston_mount_offset = -7;
888_2022_height = 696_bearing_outer_diameter+material_around_bearing*2;
screw_spring_distance = 888_2022_height/2+(KBRM03_l2-KBRM03_h1)+2;
//sliding insert plastic
sliding_insert_plastic_diameter = 6;
sliding_insert_plastic_width = 18;
//sliding insert metal
sliding_insert_metal_diameter = 6 + global_clearance;
sliding_insert_metal_width = 7;
//magnetic plate
888_1037_offset = 0;
888_1037_width = 75;
888_1037_length = 888_1037_width+888_1037_offset;
888_1037_height = 20;
888_1037_mag_holes_width = 42;
888_1037_mag_screw_depth = 10;
888_1037_ag_screw_depth = 15;
888_1037_teeth_width = 35-1;