Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c172#3 #243

Draft
wants to merge 49 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
a3f3a9b
add empty c172_2
jramrath Sep 22, 2022
d509709
add c172_3: Basic Gauges
jramrath Sep 22, 2022
3031283
add empty c172_2
jramrath Sep 22, 2022
fd8f489
add c172_3: Basic Gauges
jramrath Sep 22, 2022
a36658f
Merge remote-tracking branch 'origin/feature/c172_3' into feature/c172_3
jramrath Sep 22, 2022
60b5288
add empty c172_2
jramrath Sep 22, 2022
f9e06c7
add c172_3: Basic Gauges
jramrath Sep 22, 2022
fed5020
Merge remote-tracking branch 'origin/feature/c172_3' into feature/c172_3
jramrath Sep 22, 2022
70457e3
add empty c172_2
jramrath Sep 22, 2022
43df274
add c172_3: Basic Gauges
jramrath Sep 22, 2022
4e4fb82
Merge remote-tracking branch 'origin/feature/c172_3' into feature/c172_3
jramrath Sep 22, 2022
c26dac1
basic content for c172#3
jramrath Sep 22, 2022
8d4b5d9
fix doubleContent
jramrath Sep 22, 2022
8a3bb78
change cessna project slug to 'c172'
jramrath Sep 23, 2022
c3a16a8
remove unnecessary category exception
jramrath Oct 1, 2022
f5a2dcd
only include posts that have 'content.pug'
jramrath Oct 1, 2022
ac5de36
Merge pull request #247 from jramrath/feature/post_opening_error
jramrath Oct 1, 2022
2026896
add empty c172_2
jramrath Sep 22, 2022
9ecd61f
add c172_3: Basic Gauges
jramrath Sep 22, 2022
f966743
basic content for c172#3
jramrath Sep 22, 2022
39abe3a
Merge remote-tracking branch 'origin/feature/c172_3' into feature/c172_3
jramrath Oct 1, 2022
31990d2
fix img path in postTemplates
jramrath Oct 1, 2022
052dcdc
add empty c172_2
jramrath Sep 22, 2022
7c7c831
add c172_3: Basic Gauges
jramrath Sep 22, 2022
e89257e
basic content for c172#3
jramrath Sep 22, 2022
5ecff3b
remove unnecessary 2nd post placeholder
jramrath Oct 1, 2022
55a16f5
Merge remote-tracking branch 'origin/feature/c172_3' into feature/c172_3
jramrath Oct 1, 2022
8b4712b
undo last commit
jramrath Oct 1, 2022
d62fe2b
add empty c172_2
jramrath Sep 22, 2022
ade5031
add c172_3: Basic Gauges
jramrath Sep 22, 2022
00f45b8
basic content for c172#3
jramrath Sep 22, 2022
cd1b877
remove unnecessary 2nd post placeholder
jramrath Oct 1, 2022
d7feca9
add empty c172_2
jramrath Sep 22, 2022
1a89848
Merge remote-tracking branch 'origin/feature/c172_3' into feature/c172_3
jramrath Oct 1, 2022
8f2ff03
change wrong project folder name
jramrath Oct 1, 2022
5c785c2
add empty c172_2
jramrath Sep 22, 2022
48820e2
add c172_3: Basic Gauges
jramrath Sep 22, 2022
3a75062
basic content for c172#3
jramrath Sep 22, 2022
495d3eb
remove unnecessary 2nd post placeholder
jramrath Oct 1, 2022
87d5248
add empty c172_2
jramrath Sep 22, 2022
a610e97
remove unnecessary 2nd post placeholder
jramrath Oct 1, 2022
b249024
add empty c172_2
jramrath Sep 22, 2022
60a0213
Merge remote-tracking branch 'origin/feature/c172_3' into feature/c172_3
jramrath Oct 1, 2022
5cd70b3
remove unnecessary placeholder posts
jramrath Oct 1, 2022
cd5a2ed
move files to new correct folder
jramrath Oct 1, 2022
db02ab4
add images
jramrath Oct 1, 2022
864d605
add back.jpg to slideshow
jramrath Oct 1, 2022
4018735
add cover image
jramrath Oct 1, 2022
bd5101f
add all 3 gauges to cover.png
jramrath Oct 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fs.readdirSync(__dirname + "/projects").forEach(dir => {
});

fs.readdirSync(__dirname + "/projects/" + dir).forEach(post => {
if(post != "projectDetails.json" && post != "categories" && post != "0") {
if(post != "projectDetails.json" && post != "0" && fs.readdirSync(__dirname + "/projects/" + dir + "/" + post).includes("content.pug")) {
exports.projects[dir].posts[post] = new Post("/projects/" + dir + "/" + post);

exports.projects[dir].posts[post].details = JSON.parse(fs.readFileSync(__dirname + "/" + exports.projects[dir].posts[post].dir + "/postDetails.json", "utf8"));
Expand Down
File renamed without changes.
Binary file added projects/c172/3/assets/img/3d-print.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/c172/3/assets/img/all3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/c172/3/assets/img/asi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/c172/3/assets/img/back.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/c172/3/assets/img/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/c172/3/assets/img/rpm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/c172/3/assets/img/vsi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 89 additions & 0 deletions projects/c172/3/content.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
include ../../../views/template/postTemplates.pug

+slideshow(["all3.jpg", "asi.jpg", "vsi.jpg", "rpm.jpg", "back.jpg"], 30)

+section("Introduction")
p.
This post covers the building an installation process of the following 3 Basic Gauges:
ul
li= "Airspeed Indicator (ASI)"
li= "Vertical Speed Indicator (VSI)"
li= "Engine RPM Gauge"

p.
I found <a href="https://www.thingiverse.com/thing:2489322">this</a> phenomenal 3D-Printable
design by <a href="https://www.thingiverse.com/alvaroalea/designs">Alvaro Alea</a> on
<a href="https://www.thingiverse.com">Thingiverse</a>. He also designed some of the other
gauges I will be using. You can find links to said designs in other posts from this project
or on Alvaro's Thingiverse profile.

+section("Parts & Costs")
style.
table.costs > tbody > tr > td:last-child {
text-align: center;
}

@media only screen and (min-width: 600px) {
table.costs {
width: 50%;
}
}

table.costs
tr
th= "Part"
th= "Price"
tr
td
a(href="https://www.thingiverse.com/thing:2489322")= "3D-Printed Parts"
td= ""
tr
td= "Screws"
td= ""
tr
td
a(href="https://www.amazon.de/Micro-Helicopter-Airplane-Remote-Control/dp/B07KPS9845")= "1x Servo"
td= "2.20 €"
tr
td
strong= "Total (1 gauge only)"
td
strong= "2.20 €"
tr
td
strong= "Total"
td
strong= "6.60 €"

+section("3D-Printing")
.doubleContents
div
+img("3d-print.jpg")
div
p.
The following list is for one gauge only. Since I built all three of them, I printed
everything three times.

ul
li= "back.stl"
li= "axis_option_A.stl"
li= "needle2_option_A.stl"
li= "bezel1_v1.stl"
li= "small_gear_option_A_2.66.stl"
li= "big_gear_2.66.stl"

p.
NOTE: I could have also chosen a different needle as long as it would have been an 'option_A' one.

+section("Assembly & Mounting")
p.
With the help of 'FULL.stl' and the Thingiverse description, the assembly process was pretty easy:

ol
li= "Print the picture from 'indicadores_3.5.pdf' in the correct size and glue it on the flat side of 'back.stl'."
li= "Paint the needle and glue the axis to the needle."
li= "Push the axis through 'back.stl' and the small gear, attaching everything together."
li= "Center the needle and the servo. Attach a servo horn to the servo."
li= "Attach the servo with screws. It should hold the big gear in place."

+post-navbar()
8 changes: 8 additions & 0 deletions projects/c172/3/postDetails.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"creationDate": "22.09.2022",
"creationDateISO": "2022-09-22",
"name": "Basic Gauges",
"slug": "3",
"description": "This is a placeholder description. You can change it in this posts 'postDetails.json' file",
"lastEdited": "22.09.2022"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"creationDate": "10.09.2022",
"creationDateISO": "2022-09-10",
"name": "Cessna 172",
"slug": "cessna-172",
"slug": "c172",
"categories": "x-plane arduino simulation airplane 3d-printing laser-cutting",
"description": "I love flying in my flight simulator, but my current cockpit only consists of a RC remote. It's time for an upgrade: A fully functional Cessna 172SP cockpit with working gauges, avionics, and control inputs!",
"workInProgress": true
Expand Down
12 changes: 7 additions & 5 deletions public/css/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ main {
}
}

.doubleContents {
padding: 0;
margin: 0;
}

.slideshow_wrapper {
overflow: hidden;
margin: .5em auto;
Expand Down Expand Up @@ -414,15 +419,12 @@ main {
}

section {
ul.doubleContents {
.doubleContents {
display: flex;
padding: 0;
margin: 0;

& > li {
& > div {
width: 45%;
margin: 2.5%;
list-style-type: none;
}
}
}
Expand Down