Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
b9246dd4
Commit
b9246dd4
authored
May 28, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix #1323135: PNS creates vias with giant holes.
parent
e585f2d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
pns_line_placer.cpp
pcbnew/router/pns_line_placer.cpp
+5
-8
pns_via.h
pcbnew/router/pns_via.h
+3
-1
No files found.
pcbnew/router/pns_line_placer.cpp
View file @
b9246dd4
...
...
@@ -380,8 +380,7 @@ bool PNS_LINE_PLACER::handleViaPlacement( PNS_LINE& aHead )
return
true
;
PNS_LAYERSET
allLayers
(
0
,
15
);
PNS_VIA
v
(
aHead
.
CPoint
(
-
1
),
allLayers
,
m_viaDiameter
,
aHead
.
Net
()
);
v
.
SetDrill
(
m_viaDrill
);
PNS_VIA
v
(
aHead
.
CPoint
(
-
1
),
allLayers
,
m_viaDiameter
,
m_viaDrill
,
aHead
.
Net
()
);
VECTOR2I
force
;
VECTOR2I
lead
=
aHead
.
CPoint
(
-
1
)
-
aHead
.
CPoint
(
0
);
...
...
@@ -441,7 +440,7 @@ bool PNS_LINE_PLACER::rhWalkOnly ( const VECTOR2I& aP, PNS_LINE& aNewHead )
else
if
(
m_placingVia
&&
viaOk
)
{
PNS_LAYERSET
allLayers
(
0
,
15
);
PNS_VIA
v1
(
walkFull
.
CPoint
(
-
1
),
allLayers
,
m_viaDiameter
);
PNS_VIA
v1
(
walkFull
.
CPoint
(
-
1
),
allLayers
,
m_viaDiameter
,
m_viaDrill
);
walkFull
.
AppendVia
(
v1
);
}
...
...
@@ -466,7 +465,7 @@ bool PNS_LINE_PLACER::rhMarkObstacles( const VECTOR2I& aP, PNS_LINE& aNewHead )
if
(
m_placingVia
)
{
PNS_LAYERSET
allLayers
(
0
,
15
);
PNS_VIA
v1
(
m_head
.
CPoint
(
-
1
),
allLayers
,
m_viaDiameter
);
PNS_VIA
v1
(
m_head
.
CPoint
(
-
1
),
allLayers
,
m_viaDiameter
,
m_viaDrill
);
m_head
.
AppendVia
(
v1
);
}
...
...
@@ -509,10 +508,8 @@ bool PNS_LINE_PLACER::rhShoveOnly ( const VECTOR2I& aP, PNS_LINE& aNewHead )
if
(
m_placingVia
)
{
PNS_LAYERSET
allLayers
(
0
,
15
);
PNS_VIA
v1
(
l
.
CPoint
(
-
1
),
allLayers
,
m_viaDiameter
);
PNS_VIA
v2
(
l2
.
CPoint
(
-
1
),
allLayers
,
m_viaDiameter
);
v1
.
SetDrill
(
m_viaDrill
);
v2
.
SetDrill
(
m_viaDrill
);
PNS_VIA
v1
(
l
.
CPoint
(
-
1
),
allLayers
,
m_viaDiameter
,
m_viaDrill
);
PNS_VIA
v2
(
l2
.
CPoint
(
-
1
),
allLayers
,
m_viaDiameter
,
m_viaDrill
);
l
.
AppendVia
(
v1
);
l2
.
AppendVia
(
v2
);
...
...
pcbnew/router/pns_via.h
View file @
b9246dd4
...
...
@@ -35,13 +35,15 @@ public:
PNS_ITEM
(
VIA
)
{}
PNS_VIA
(
const
VECTOR2I
&
aPos
,
const
PNS_LAYERSET
&
aLayers
,
int
aDiameter
,
int
aNet
=
-
1
)
:
PNS_VIA
(
const
VECTOR2I
&
aPos
,
const
PNS_LAYERSET
&
aLayers
,
int
aDiameter
,
int
aDrill
,
int
aNet
=
-
1
)
:
PNS_ITEM
(
VIA
)
{
SetNet
(
aNet
);
SetLayers
(
aLayers
);
m_pos
=
aPos
;
m_diameter
=
aDiameter
;
m_drill
=
aDrill
;
m_shape
=
SHAPE_CIRCLE
(
aPos
,
aDiameter
/
2
);
}
...
...
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