Fix target skew not working properly in meander skew placer.

This commit is contained in:
Alex Shvartzkop 2023-10-07 03:42:31 +03:00
parent e4e769493c
commit 74075fe4d6
2 changed files with 2 additions and 5 deletions

View File

@ -118,8 +118,6 @@ bool MEANDER_SKEW_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
m_tunedPath = m_tunedPathN; m_tunedPath = m_tunedPathN;
} }
m_targetSkew = (int) currentSkew();
return true; return true;
} }
@ -164,7 +162,7 @@ bool MEANDER_SKEW_PLACER::Move( const VECTOR2I& aP, ITEM* aEndItem )
} }
} }
return doMove( aP, aEndItem, m_coupledLength + m_targetSkew ); return doMove( aP, aEndItem, m_coupledLength + m_settings.m_targetSkew );
} }
@ -189,7 +187,7 @@ const wxString MEANDER_SKEW_PLACER::TuningInfo( EDA_UNITS aUnits ) const
status += EDA_UNIT_UTILS::UI::MessageTextFromValue( pcbIUScale, aUnits, m_lastLength - m_coupledLength ); status += EDA_UNIT_UTILS::UI::MessageTextFromValue( pcbIUScale, aUnits, m_lastLength - m_coupledLength );
status += wxT( "/" ); status += wxT( "/" );
status += EDA_UNIT_UTILS::UI::MessageTextFromValue( pcbIUScale, aUnits, m_targetSkew ); status += EDA_UNIT_UTILS::UI::MessageTextFromValue( pcbIUScale, aUnits, m_settings.m_targetSkew );
return status; return status;
} }

View File

@ -62,7 +62,6 @@ private:
long long int m_coupledLength; long long int m_coupledLength;
int m_padToDieP; int m_padToDieP;
int m_padToDieN; int m_padToDieN;
int m_targetSkew;
}; };
} }