Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
strandstring
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Erik Strand
strandstring
Commits
de115378
Commit
de115378
authored
May 10, 2019
by
Erik Strand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make board width a derived parameter
Since we always want it to be as small as possible.
parent
a7b63c75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
node_board/main.cpp
node_board/main.cpp
+7
-2
No files found.
node_board/main.cpp
View file @
de115378
...
...
@@ -95,18 +95,23 @@ int main() {
double
pad_y_max
;
// board params
double
const
width
=
6.6
;
// width is deduced later
double
const
height
=
14
;
double
const
ppmm
=
50
;
// equivalent to 1270 ppi
double
const
min_cut_thickness
=
0.38
;
double
const
min_trace_thickness
=
0.35
;
Board
board
(
width
,
height
,
ppmm
,
min_cut_thickness
);
// SOIC dims
double
const
pad_width
=
0.6
;
double
const
pad_height
=
2.4
;
double
const
soic_height
=
7
;
double
const
soic_pitch
=
1.27
;
double
const
soic_width
=
3
*
soic_pitch
+
pad_width
;
// deduce width and make the board
double
const
width
=
soic_width
+
3
*
min_cut_thickness
+
3
*
min_trace_thickness
;
std
::
cout
<<
"Board width: "
<<
width
<<
"mm
\n
"
;
Board
board
(
width
,
height
,
ppmm
,
min_cut_thickness
);
// SOIC pads
double
const
soic_x_min
=
min_trace_thickness
+
min_cut_thickness
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment