Ver código fonte

add table helper macro for quadcopter pages

Thomas Buck 3 anos atrás
pai
commit
bed5faf17e

+ 26
- 46
input/projects/quadcopters/aurora100.md Ver arquivo

@@ -8,9 +8,11 @@ update: 2021-05-21
8 8
 
9 9
 <span class="listdesc">[...back to RC-Vehicles overview](quadcopters.html)</span>
10 10
 
11
+Not being totally happy with the power available with [my 2S xyAurora90](aurora90.html) I decided to build a 3S Aurora100 in July 2017.
12
+
11 13
 <!--%
12 14
 lightgallery([
13
-    [ "img/xyaurora100_1.jpg", "Front Top view" ]
15
+    [ "img/xyaurora100_1.jpg", "Original Setup with AIO cam, Front Top view" ]
14 16
 ])
15 17
 %-->
16 18
 
@@ -26,54 +28,32 @@ lightgallery([
26 28
 ])
27 29
 %-->
28 30
 
29
-Initially tried the 1104 7000KV DYS motors, but they had problems with vibrations I couldn't fix with any soft-mounting solutions I've tried, and after tuning the filters with a blackbox.
30
-Now with these Eachine motors, everything works perfectly with stock PID settings.
31
-Has a lot of power on 3S!
32
-
33
-## Parts List
34
-
35
-<table>
36
-<tr><th>Part</th><th>Description</th><th>Cost</th></tr>
37
-
38
-<tr><td style="text-align: right;">Frame</td>
39
-<td><a href="https://www.banggood.com/Eachine-Aurora-100-100MM-Mini-Brushless-FPV-Multirotor-Racing-Frame-14_5g-Carbon-Fiber-p-1133462.html?p=3F201911077692015010">Eachine Aurora 100 100MM Mini Brushless FPV Multirotor Racing Frame 14.5g Carbon Fiber</a></td>
40
-<td style="text-align: right;">11.99$</td></tr>
41
-
42
-<tr><td style="text-align: right;">Spare</td>
43
-<td><a href="https://www.banggood.com/Eachine-Aurora-100-Mini-Brushless-FPV-Racer-Spare-Part-2mm-2_5mm-Bottom-Plate-3K-Carbon-Fiber-p-1144532.html?p=3F201911077692015010&cur_warehouse=CN&ID=529763">Eachine Aurora 100 Mini Brushless FPV Racer Spare Part 2mm 2.5mm Bottom Plate 3K Carbon Fiber</a></td>
44
-<td style="text-align: right;">5.39$</td></tr>
45
-
46
-<tr><td style="text-align: right;">FC</td>
47
-<td><a href="https://www.banggood.com/Eachine-Minicube-20x20mm-F4-OSD-Compatible-Frsky-Flysky-DSM-RX-Blheli_S-10A-For-Aurora-68-90-100-p-1165366.html?p=3F201911077692015010">Eachine Minicube 20x20mm F4 OSD Compatible Frsky Flysky DSM RX Blheli_S 10A For Aurora 68 90 100</a></td>
48
-<td style="text-align: right;">60.99$</td></tr>
31
+Initially I tried the 1104 7000KV DYS motors, but they had problems with vibrations I couldn't fix with any soft-mounting solutions I've tried, and after tuning the filters with a blackbox.
32
+I then swapped to the Eachine motors listed below, with them everything works perfectly with stock PID settings.
49 33
 
50
-<tr><td style="text-align: right;">Motors</td>
51
-<td><a href="https://www.banggood.com/Eachine-1104-6500KV-1-3S-Brushless-Motor-For-Eachine-Aurora-90-100-Mini-FPV-Racer-p-1138072.html?p=3F201911077692015010&cur_warehouse=CN">4 x Eachine Upgrade Motor 1104 6500KV Brushless Motor 1-3S For Eachine Aurora 90 100 RC Drone FPV Racing</a></td>
52
-<td style="text-align: right;">35.56$</td></tr>
34
+Also, at first I was using the [Eachine 25mW AIO Cam](https://www.banggood.com/Eachine-AIO-FPV-5_8G-25mW-48CH-VTX-600TVL-CMOS-1-or-4-inch-Camera-For-Aurora-90-100-RC-Drone-FPV-Racing-p-1122902.html?akmClientCountry=DE&p=3F201911077692015010&cur_warehouse=CN) with this build.
35
+However, because I flew often simultaneously with friends, we decided to all switch to RunCams and TBS transmitters, as listed below.
53 36
 
54
-<tr><td style="text-align: right;">Props</td>
55
-<td><a href="https://www.banggood.com/10-Pairs-Racerstar-1935-50mm-5-Blade-Racing-Propeller-1_5mm-Mounting-Hole-For-Micro-FPV-Frame-p-1129109.html?p=3F201911077692015010">10 Pairs Racerstar 1935 50mm 5 Blade Racing Propeller 1.5mm Mounting Hole For Micro FPV Frame</a></td>
56
-<td style="text-align: right;">8.29$</td></tr>
57
-
58
-<tr><td style="text-align: right;">Cam</td>
59
-<td><a href="https://www.banggood.com/Eachine-AIO-FPV-5_8G-25mW-48CH-VTX-600TVL-CMOS-1-or-4-inch-Camera-For-Aurora-90-100-RC-Drone-FPV-Racing-p-1122902.html?akmClientCountry=DE&p=3F201911077692015010&cur_warehouse=CN">Eachine AIO FPV 5.8G 25mW 48CH VTX 600TVL CMOS 1/4 inch Camera For Aurora 90 100 Mini FPV Racer</a></td>
60
-<td style="text-align: right;">21.99$</td></tr>
61
-
62
-<tr><td style="text-align: right;">Antenna</td>
63
-<td><a href="https://www.banggood.com/10X-3DBI-Brass-2_4G-Receiver-Antenna-Omnidirectional-IPEX-Port-Compatible-Futaba-JR-WFLY-p-1093273.html?p=3F201911077692015010&cur_warehouse=CN">10X 3DBI Brass 2.4G Receiver Antenna Omni Directional IPEX Port Compatible Futaba JR WFLY</a></td>
64
-<td style="text-align: right;">5.14$</td></tr>
65
-
66
-<tr><td style="text-align: right;">Bats</td>
67
-<td><a href="https://www.gensace.de/tattu-450mah-11-1v-75c-3s1p-lipo-battery-pack-long-size-for-h-frame.html">Tattu 450mAh 11.1V 75C 3S1P Lipo Battery Pack- Long Size for H Frame</a></td>
68
-<td style="text-align: right;">15.89$</td></tr>
37
+## Parts List
69 38
 
70
-<tr><td style="text-align: right;">Misc</td>
71
-<td><a href="https://www.banggood.com/4-PCS-Eachine-Propeller-Guard-For-Aurora-100-Mini-FPV-Racing-RC-Drone-1102-1103-1104-1105-Brushless-Motor-p-1143685.html?akmClientCountry=DE&p=3F201911077692015010&cur_warehouse=CN&ID=224">4 PCS Eachine Propeller Guard For Aurora 100 Mini FPV Racing RC Drone 1102 1103 1104 1105 Brushless Motor</a></td>
72
-<td style="text-align: right;">2.49$</td></tr>
39
+These are the prices as recorded by Rotorbuilds.
40
+To be honest, I have no clue if they are what I paid back when I built this copter.
73 41
 
74
-<tr><td></td>
75
-<td style="text-align: right;">Sum</td>
76
-<td style="text-align: right;">167.73$</td></tr>
77
-</table>
42
+<!--%
43
+tableHelper([ "align-right", "align-last-right", "align-right"],
44
+    [ "Part", "Description", "Cost" ], [
45
+        [ "Frame", ("Eachine Aurora 100 100MM Mini Brushless FPV Multirotor Racing Frame 14.5g Carbon Fiber", "https://www.banggood.com/Eachine-Aurora-100-100MM-Mini-Brushless-FPV-Multirotor-Racing-Frame-14_5g-Carbon-Fiber-p-1133462.html?p=3F201911077692015010"), "11.99$" ],
46
+        [ "Spare", ("Eachine Aurora 100 Mini Brushless FPV Racer Spare Part 2mm 2.5mm Bottom Plate 3K Carbon Fiber", "https://www.banggood.com/Eachine-Aurora-100-Mini-Brushless-FPV-Racer-Spare-Part-2mm-2_5mm-Bottom-Plate-3K-Carbon-Fiber-p-1144532.html?p=3F201911077692015010&cur_warehouse=CN&ID=529763"), "5.39$" ],
47
+        [ "FC", ("Eachine Minicube 20x20mm F4 OSD Compatible Frsky Flysky DSM RX Blheli_S 10A For Aurora 68 90 100", "https://www.banggood.com/Eachine-Minicube-20x20mm-F4-OSD-Compatible-Frsky-Flysky-DSM-RX-Blheli_S-10A-For-Aurora-68-90-100-p-1165366.html?p=3F201911077692015010"), "60.99$" ],
48
+        [ "Motors", ("4 x Eachine Upgrade Motor 1104 6500KV Brushless Motor 1-3S For Eachine Aurora 90 100 RC Drone FPV Racing", "https://www.banggood.com/Eachine-1104-6500KV-1-3S-Brushless-Motor-For-Eachine-Aurora-90-100-Mini-FPV-Racer-p-1138072.html?p=3F201911077692015010&cur_warehouse=CN"), "35.56$" ],
49
+        [ "Props", ("10 Pairs Racerstar 1935 50mm 5 Blade Racing Propeller 1.5mm Mounting Hole For Micro FPV Frame", "https://www.banggood.com/10-Pairs-Racerstar-1935-50mm-5-Blade-Racing-Propeller-1_5mm-Mounting-Hole-For-Micro-FPV-Frame-p-1129109.html?p=3F201911077692015010"), "8.29$" ],
50
+        [ "Cam", ("", ""), "$" ],
51
+        [ "VTx", ("", ""), "$" ],
52
+        [ "Bats", ("Tattu 450mAh 11.1V 75C 3S1P Lipo Battery Pack- Long Size for H Frame", "https://www.gensace.de/tattu-450mah-11-1v-75c-3s1p-lipo-battery-pack-long-size-for-h-frame.html"), "15.89$" ],
53
+        [ "Misc", ("4 PCS Eachine Propeller Guard For Aurora 100 Mini FPV Racing RC Drone 1102 1103 1104 1105 Brushless Motor", "https://www.banggood.com/4-PCS-Eachine-Propeller-Guard-For-Aurora-100-Mini-FPV-Racing-RC-Drone-1102-1103-1104-1105-Brushless-Motor-p-1143685.html?akmClientCountry=DE&p=3F201911077692015010&cur_warehouse=CN&ID=224"), "2.49$" ],
54
+        [ "", "Sum", "$" ]
55
+    ]
56
+)
57
+%-->
78 58
 
79 59
 This write-up was first published on [Rotorbuilds](https://rotorbuilds.com/build/5577).

+ 19
- 46
input/projects/quadcopters/aurora90.md Ver arquivo

@@ -80,53 +80,26 @@ The picture quality is okay but not great.
80 80
 
81 81
 ## Parts List
82 82
 
83
-<table>
84
-<tr><th>Part</th><th>Description</th><th>Cost</th></tr>
83
+These are the prices as recorded by Rotorbuilds.
84
+To be honest, I have no clue if they are what I paid back when I built this copter.
85 85
 
86
-<tr><td style="text-align: right;">Frame</td>
87
-<td><a href="https://www.banggood.com/Eachine-Aurora-90-90MM-Mini-Brushless-FPV-Multirotor-Racing-Frame-35g-Carbon-Fiber-Aluminium-Construction-p-1109742.html?p=3F201911077692015010">Eachine Aurora 90 90MM Mini Brushless FPV Racing Frame RC Drone 27g</a></td>
88
-<td style="text-align: right;">18.99$</td></tr>
89
-
90
-<tr><td style="text-align: right;">FC</td>
91
-<td><a href="https://www.banggood.com/CleanFlight-BetaFlight-Micro-F3-Flight-Controller-Built-in-PDB-Buzzer-20X20mm-For-FPV-Racing-p-1094615.html?p=3F201911077692015010">PIKO BLX CleanFlight & BetaFlight Micro F3 Flight Controller Built-in PDB Buzzer Port 20X20mm For RC Drone FPV</a></td>
92
-<td style="text-align: right;">15.99$</td></tr>
93
-
94
-<tr><td style="text-align: right;">ESCs</td>
95
-<td><a href="https://www.banggood.com/Racerstar-Mini-RS6Ax4-6A-1-2S-Blheli_S-BB2-4-In-1-ESC-with-5V-BEC-Support-Oneshot125-D-Shot-p-1110025.html?p=3F201911077692015010">Racerstar 20x20mm RS6Ax4 6A 1-2S Blheli_S 4 In 1 ESC with 5V BEC Dshot600</a></td>
96
-<td style="text-align: right;">29.69$</td></tr>
97
-
98
-<tr><td style="text-align: right;">Motors</td>
99
-<td><a href="https://www.banggood.com/4X-Racerstar-Racing-Edition-1103-BR1103-8000KV-1-2S-Brushless-Motor-Purple-For-50-80-100-Multirotor-p-1117646.html?p=3F201911077692015010&cur_warehouse=CN">4X Racerstar Racing Edition 1103 BR1103 8000KV 1-2S Brushless Motor Purple For 50 80 100 Multirotor</a></td>
100
-<td style="text-align: right;">31.99$</td></tr>
101
-
102
-<tr><td style="text-align: right;">Props</td>
103
-<td><a href="https://www.banggood.com/2-Pairs-Kingkong-45mm-3-Blade-Propeller-0_97mm-Mounting-Hole-For-90mm-150mm-DIY-Frame-Kit-p-1122784.html?p=3F201911077692015010&cur_warehouse=CN">2 Pairs Kingkong 45mm 3-Blade Propeller 0.97mm Mounting Hole For 90mm-150mm DIY Frame Kit</a></td>
104
-<td style="text-align: right;">1.99$</td></tr>
105
-
106
-<tr><td style="text-align: right;">Cam</td>
107
-<td><a href="https://www.banggood.com/Eachine-TX03-NTSC-Super-Mini-0-or-25mW-or-50mW-or-200mW-Switchable-AIO-5_8G-72CH-VTX-600TVL-1-or-3-Cmos-FPV-Camera-p-1104884.html?akmClientCountry=DE&p=3F201911077692015010&cur_warehouse=CN">Eachine TX03 NTSC Super Mini 0/25mW/50mW/200mW Switchable AIO 5.8G 72CH VTX 600TVL 1/3 Cmos FPV Camera</a></td>
108
-<td style="text-align: right;">19.99$</td></tr>
109
-
110
-<tr><td style="text-align: right;">Rx</td>
111
-<td><a href="https://www.banggood.com/FD800-Tiny-Frsky-8CH-PPM-or-SBUS-Receiver-Compatible-FRSKY-ACCST-X9D(Plus)DJT-or-DFT-or-DHT-For-QX95-QX90--p-1108071.html?akmClientCountry=DE&p=3F201911077692015010&cur_warehouse=CN&ID=527773">FD800 Tiny Frsky 8CH PPM/SBUS Receiver Compatible FRSKY ACCST X9D(Plus)DJT/DFT/DHT For QX95 QX90</a></td>
112
-<td style="text-align: right;">11.99$</td></tr>
113
-
114
-<tr><td style="text-align: right;">Bat</td>
115
-<td><a href="https://hobbyking.com/en_us/turnigy-nano-tech-460mah-2s-25-40c-lipo-pack.html">Turnigy nano-tech 460mah 2S 25~40C Lipo Pack</a></td>
116
-<td style="text-align: right;">4.71$</td></tr>
117
-
118
-<tr><td style="text-align: right;">LEDs</td>
119
-<td><a href="https://www.banggood.com/Eachine-Aurora-90-100-Mini-FPV-Racer-RC-Drone-Spare-Part-WS2812-LED-Board-LED-Strip-Light-p-1122903.html?akmClientCountry=DE&p=3F201911077692015010&cur_warehouse=CN">Eachine Aurora 90 100 Mini FPV Racer RC Drone Spare Part WS2812 LED Board LED Strip Light</a></td>
120
-<td style="text-align: right;">2.54$</td></tr>
121
-
122
-<tr><td style="text-align: right;">Strap</td>
123
-<td><a href="https://www.banggood.com/Realacc-58mm-Battery-Tie-Down-Strap-for-RC-Micro-FPV-Racing-Quadcopter-Multirotor-p-1118296.html?p=3F201911077692015010">Realacc 58mm Battery Tie Down Strap for RC Micro FPV Racing Quadcopter Multirotor</a></td>
124
-<td style="text-align: right;">1.09$</td></tr>
125
-
126
-<tr><td></td>
127
-<td style="text-align: right;">Sum</td>
128
-<td style="text-align: right;">138.97$</td></tr>
129
-</table>
86
+<!--%
87
+tableHelper([ "align-right", "align-last-right", "align-right"],
88
+    [ "Part", "Description", "Cost" ], [
89
+        [ "Frame", ("Eachine Aurora 90 90MM Mini Brushless FPV Racing Frame RC Drone 27g", "https://www.banggood.com/Eachine-Aurora-90-90MM-Mini-Brushless-FPV-Multirotor-Racing-Frame-35g-Carbon-Fiber-Aluminium-Construction-p-1109742.html?p=3F201911077692015010"), "18.99$" ],
90
+        [ "FC", ("PIKO BLX CleanFlight & BetaFlight Micro F3 Flight Controller Built-in PDB Buzzer Port 20X20mm For RC Drone FPV", "https://www.banggood.com/CleanFlight-BetaFlight-Micro-F3-Flight-Controller-Built-in-PDB-Buzzer-20X20mm-For-FPV-Racing-p-1094615.html?p=3F201911077692015010"), "15.99$" ],
91
+        [ "ESCs", ("Racerstar 20x20mm RS6Ax4 6A 1-2S Blheli_S 4 In 1 ESC with 5V BEC Dshot600", "https://www.banggood.com/Racerstar-Mini-RS6Ax4-6A-1-2S-Blheli_S-BB2-4-In-1-ESC-with-5V-BEC-Support-Oneshot125-D-Shot-p-1110025.html?p=3F201911077692015010"), "29.69$" ],
92
+        [ "Motors", ("4X Racerstar Racing Edition 1103 BR1103 8000KV 1-2S Brushless Motor Purple For 50 80 100 Multirotor", "https://www.banggood.com/4X-Racerstar-Racing-Edition-1103-BR1103-8000KV-1-2S-Brushless-Motor-Purple-For-50-80-100-Multirotor-p-1117646.html?p=3F201911077692015010&cur_warehouse=CN"), "31.99$" ],
93
+        [ "Props", ("2 Pairs Kingkong 45mm 3-Blade Propeller 0.97mm Mounting Hole For 90mm-150mm DIY Frame Kit", "https://www.banggood.com/2-Pairs-Kingkong-45mm-3-Blade-Propeller-0_97mm-Mounting-Hole-For-90mm-150mm-DIY-Frame-Kit-p-1122784.html?p=3F201911077692015010&cur_warehouse=CN"), "1.99$" ],
94
+        [ "Cam", ("Eachine TX03 NTSC Super Mini 0/25mW/50mW/200mW Switchable AIO 5.8G 72CH VTX 600TVL 1/3 Cmos FPV Camera", "https://www.banggood.com/Eachine-TX03-NTSC-Super-Mini-0-or-25mW-or-50mW-or-200mW-Switchable-AIO-5_8G-72CH-VTX-600TVL-1-or-3-Cmos-FPV-Camera-p-1104884.html?akmClientCountry=DE&p=3F201911077692015010&cur_warehouse=CN"), "19.99$" ],
95
+        [ "Rx", ("FD800 Tiny Frsky 8CH PPM/SBUS Receiver Compatible FRSKY ACCST X9D(Plus)DJT/DFT/DHT For QX95 QX90", "https://www.banggood.com/FD800-Tiny-Frsky-8CH-PPM-or-SBUS-Receiver-Compatible-FRSKY-ACCST-X9D(Plus)DJT-or-DFT-or-DHT-For-QX95-QX90--p-1108071.html?akmClientCountry=DE&p=3F201911077692015010&cur_warehouse=CN&ID=527773"), "11.99$" ],
96
+        [ "Bat", ("Turnigy nano-tech 460mah 2S 25~40C Lipo Pack", "https://hobbyking.com/en_us/turnigy-nano-tech-460mah-2s-25-40c-lipo-pack.html"), "4.71$" ],
97
+        [ "LEDs", ("Eachine Aurora 90 100 Mini FPV Racer RC Drone Spare Part WS2812 LED Board LED Strip Light", "https://www.banggood.com/Eachine-Aurora-90-100-Mini-FPV-Racer-RC-Drone-Spare-Part-WS2812-LED-Board-LED-Strip-Light-p-1122903.html?akmClientCountry=DE&p=3F201911077692015010&cur_warehouse=CN"), "2.54$" ],
98
+        [ "Strap", ("Realacc 58mm Battery Tie Down Strap for RC Micro FPV Racing Quadcopter Multirotor", "https://www.banggood.com/Realacc-58mm-Battery-Tie-Down-Strap-for-RC-Micro-FPV-Racing-Quadcopter-Multirotor-p-1118296.html?p=3F201911077692015010"), "1.09$" ],
99
+        [ "", "Sum", "138.97$" ]
100
+    ]
101
+)
102
+%-->
130 103
 
131 104
 Here are some more photos.
132 105
 

+ 20
- 43
input/projects/quadcopters/lx5.md Ver arquivo

@@ -13,6 +13,10 @@ After my first failed attempts with large copters, gaining some experience with
13 13
 But I had built up some skills and was ready for the next step.
14 14
 So I built a 220mm frame copter with 2205 motors.
15 15
 
16
+<!--%
17
+# TODO photos
18
+%-->
19
+
16 20
 Here are some recordings of the FPV footage.
17 21
 Be aware that these videos are recorded from the received signal on the ground.
18 22
 Not only can you see lots of interference and other HF problems, the loss of quality from the video recorder and the YouTube encoding is also very noticeable.
@@ -43,49 +47,22 @@ Everything else is mounted with rigid spacers.
43 47
 
44 48
 These are the original prices I paid back when I initially bought the parts.
45 49
 
46
-<table>
47
-<tr><th>Part</th><th>Description</th><th>Cost</th></tr>
48
-
49
-<tr><td style="text-align: right;">Frame</td>
50
-<td><a href="https://geprc.com/product/gep-lx5-frame/">GEP-LX5 Leopard Frame, Green Color</a></td>
51
-<td style="text-align: right;">47.20€</td></tr>
52
-
53
-<tr><td style="text-align: right;">FC</td>
54
-<td><a href="https://www.hobbywing.com/goods.php?id=590">Hobbywing XRotor Omnibus F4 Flight Controller</a></td>
55
-<td style="text-align: right;">34.08€</td></tr>
56
-
57
-<tr><td style="text-align: right;">ESCs</td>
58
-<td><a href="https://www.hobbywing.com/goods.php?id=588">Hobbywing XRotor Micro 40A 2-5S 4 in 1 ESC</a></td>
59
-<td style="text-align: right;">52.44€</td></tr>
60
-
61
-<tr><td style="text-align: right;">Motors</td>
62
-<td><a href="https://www.banggood.com/4X-Emax-RS2205-2300-2205-2300KV-Racing-Edition-CW-or-CCW-Motor-For-RC-FPV-Racing-Drone-p-1032857.html?cur_warehouse=CN">4x Emax RS2205 2300KV CW/CCW Motor</a></td>
63
-<td style="text-align: right;">46.32€</td></tr>
64
-
65
-<tr><td style="text-align: right;">Props</td>
66
-<td><a href="https://www.banggood.com/10-Pairs-Racerstar-S5048-PC-3-blade-Propeller-5_0mm-Mounting-Hole-for-RC-Multirotor-FPV-Racing-Drone-p-1169658.html">10 Pairs Racerstar S5048 PC 3-blade Propeller 5.0mm Mounting Hole</a></td>
67
-<td style="text-align: right;">10.48€</td></tr>
68
-
69
-<tr><td style="text-align: right;">Cam</td>
70
-<td><a href="https://shop.runcam.com/runcam-micro-sparrow/">RunCam Micro Sparrow 2.1mm</a></td>
71
-<td style="text-align: right;">26.22€</td></tr>
72
-
73
-<tr><td style="text-align: right;">VTx</td>
74
-<td><a href="https://www.team-blacksheep.com/products/prod:unify_pro">TBS Unify Pro V3 5V</a></td>
75
-<td style="text-align: right;">44.90€</td></tr>
76
-
77
-<tr><td style="text-align: right;">Rx</td>
78
-<td><a href="https://www.frsky-rc.com/product/xsr/">FrSky XSR</a></td>
79
-<td style="text-align: right;">13.98€</td></tr>
80
-
81
-<tr><td style="text-align: right;">Battery</td>
82
-<td><a href="https://www.stefansliposhop.de/en/batteries/sls-quantum/sls-quantum-65c/sls-quantum-1300mah-4s1p-14-8v-65c-130c::1602.html">SLS Quantum 1300mAh 4S1P 14,8V 65C/130C</a></td>
83
-<td style="text-align: right;">26.00€</td></tr>
84
-
85
-<tr><td></td>
86
-<td style="text-align: right;">Sum</td>
87
-<td style="text-align: right;">301.62€</td></tr>
88
-</table>
50
+<!--%
51
+tableHelper([ "align-right", "align-last-right", "align-right"],
52
+    [ "Part", "Description", "Cost" ], [
53
+        [ "Frame", ("GEP-LX5 Leopard Frame, Green Color", "https://geprc.com/product/gep-lx5-frame/"), "47.20€" ],
54
+        [ "FC", ("Hobbywing XRotor Omnibus F4 Flight Controller", "https://www.hobbywing.com/goods.php?id=590"), "34.08€" ],
55
+        [ "ESCs", ("Hobbywing XRotor Micro 40A 2-5S 4 in 1 ESC", "https://www.hobbywing.com/goods.php?id=588"), "52.44€" ],
56
+        [ "Motors", ("4x Emax RS2205 2300KV CW/CCW Motor", "https://www.banggood.com/4X-Emax-RS2205-2300-2205-2300KV-Racing-Edition-CW-or-CCW-Motor-For-RC-FPV-Racing-Drone-p-1032857.html?cur_warehouse=CN"), "46.32€" ],
57
+        [ "Props", ("10 Pairs Racerstar S5048 PC 3-blade Propeller 5.0mm Mounting Hole", "https://www.banggood.com/10-Pairs-Racerstar-S5048-PC-3-blade-Propeller-5_0mm-Mounting-Hole-for-RC-Multirotor-FPV-Racing-Drone-p-1169658.html"), "10.48€" ],
58
+        [ "Cam", ("RunCam Micro Sparrow 2.1mm", "https://shop.runcam.com/runcam-micro-sparrow/"), "26.22€" ],
59
+        [ "VTx", ("TBS Unify Pro V3 5V", "https://www.team-blacksheep.com/products/prod:unify_pro"), "44.90€" ],
60
+        [ "Rx", ("FrSky XSR", "https://www.frsky-rc.com/product/xsr/"), "13.98€" ],
61
+        [ "Battery", ("SLS Quantum 1300mAh 4S1P 14,8V 65C/130C", "https://www.stefansliposhop.de/en/batteries/sls-quantum/sls-quantum-65c/sls-quantum-1300mah-4s1p-14-8v-65c-130c::1602.html"), "26.00€" ],
62
+        [ "", "Sum", "301.62€" ]
63
+    ]
64
+)
65
+%-->
89 66
 
90 67
 I have 3D printed the following parts for this copter:
91 68
 

+ 44
- 0
macros.py Ver arquivo

@@ -1,3 +1,5 @@
1
+# -*- coding: utf-8 -*-
2
+
1 3
 import re
2 4
 import itertools
3 5
 import email.utils
@@ -10,6 +12,48 @@ DEFAULT_LANG = "en"
10 12
 BASE_URL = "https://www.xythobuz.de"
11 13
 
12 14
 # -----------------------------------------------------------------------------
15
+# table helper macro
16
+# -----------------------------------------------------------------------------
17
+
18
+def tableHelper(style, header, content):
19
+    print "<table>"
20
+    if (header != None) and (len(header) == len(style)):
21
+        print "<tr>"
22
+        for h in header:
23
+            print "<th>" + h + "</th>"
24
+        print "</tr>"
25
+    for ci in range(0, len(content)):
26
+        if len(content[ci]) != len(style):
27
+            # invalid call of table helper!
28
+            continue
29
+        print "<tr>"
30
+        for i in range(0, len(style)):
31
+            s = style[i]
32
+            if "align-last-right" in s:
33
+                if ci == (len(content) - 1):
34
+                    print "<td style=\"text-align: right;\">"
35
+                else:
36
+                    if "align-center" in s:
37
+                        print "<td style=\"text-align: center;\">"
38
+                    else:
39
+                        print "<td>"
40
+            elif "align-right" in s:
41
+                print "<td style=\"text-align: right;\">"
42
+            elif "align-center" in s:
43
+                print "<td style=\"text-align: center;\">"
44
+            else:
45
+                print "<td>"
46
+            if isinstance(content[ci][i], tuple):
47
+                text, link = content[ci][i]
48
+                print "<a href=\"" + link + "\">" + text + "</a>"
49
+            else:
50
+                text = content[ci][i]
51
+                print text
52
+            print "</td>"
53
+        print "</tr>"
54
+    print "</table>"
55
+
56
+# -----------------------------------------------------------------------------
13 57
 # menu helper macro
14 58
 # -----------------------------------------------------------------------------
15 59
 

Carregando…
Cancelar
Salvar