PNS: Reduce minimum distance to start turn in diff pair placer

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8193
This commit is contained in:
Jon Evans 2021-04-14 22:42:33 -04:00
parent cac4d70154
commit c829dba88e
1 changed files with 3 additions and 2 deletions

View File

@ -631,7 +631,7 @@ bool DIFF_PAIR_PLACER::routeHead( const VECTOR2I& aP )
gwsTarget.SetFitVias( m_placingVia, m_sizes.ViaDiameter(), viaGap() );
// far from the initial segment extension line -> allow a 45-degree obtuse turn
if( lead_dist > m_sizes.DiffPairGap() + m_sizes.DiffPairWidth() )
if( lead_dist > ( m_sizes.DiffPairGap() + m_sizes.DiffPairWidth() ) / 2 )
{
gwsTarget.BuildForCursor( fp );
}
@ -640,7 +640,8 @@ bool DIFF_PAIR_PLACER::routeHead( const VECTOR2I& aP )
else
{
gwsTarget.BuildForCursor( fpProj );
gwsTarget.FilterByOrientation( DIRECTION_45::ANG_STRAIGHT | DIRECTION_45::ANG_HALF_FULL, DIRECTION_45( dirV ) );
gwsTarget.FilterByOrientation( DIRECTION_45::ANG_STRAIGHT | DIRECTION_45::ANG_HALF_FULL,
DIRECTION_45( dirV ) );
}
m_snapOnTarget = false;