Browse Source

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

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8193
6.0.7
Jon Evans 5 years ago
parent
commit
c829dba88e
  1. 5
      pcbnew/router/pns_diff_pair_placer.cpp

5
pcbnew/router/pns_diff_pair_placer.cpp

@ -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;

Loading…
Cancel
Save