PNS: Fix skew calculation with pad-to-die specified
Fixes https://gitlab.com/kicad/code/kicad/-/issues/11710
This commit is contained in:
parent
781e98acbc
commit
53dbd3bb02
|
@ -110,14 +110,14 @@ bool MEANDER_SKEW_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
|
||||||
|
|
||||||
if ( m_originPair.PLine().Net() == m_originLine.Net() )
|
if ( m_originPair.PLine().Net() == m_originLine.Net() )
|
||||||
{
|
{
|
||||||
m_padToDieLength = m_padToDieN;
|
m_padToDieLength = m_padToDieP;
|
||||||
m_coupledLength = lineLength( m_tunedPathN );
|
m_coupledLength = m_padToDieN + lineLength( m_tunedPathN );
|
||||||
m_tunedPath = m_tunedPathP;
|
m_tunedPath = m_tunedPathP;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_padToDieLength = m_padToDieP;
|
m_padToDieLength = m_padToDieN;
|
||||||
m_coupledLength = lineLength( m_tunedPathP );
|
m_coupledLength = m_padToDieP + lineLength( m_tunedPathP );
|
||||||
m_tunedPath = m_tunedPathN;
|
m_tunedPath = m_tunedPathN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue