Gerber job file: fix a bug that prevent writing dielectric constants for impedance controlled boards.
This commit is contained in:
parent
5bf042fcc1
commit
5853f0890e
|
@ -476,6 +476,9 @@ bool BOARD_STACKUP::SynchronizeWithBoard( BOARD_DESIGN_SETTINGS* aSettings )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Transfert layer settings:
|
||||||
|
*this = stackup;
|
||||||
|
|
||||||
// Transfer other stackup settings from aSettings
|
// Transfer other stackup settings from aSettings
|
||||||
const BOARD_STACKUP& source_stackup = aSettings->GetStackupDescriptor();
|
const BOARD_STACKUP& source_stackup = aSettings->GetStackupDescriptor();
|
||||||
m_HasDielectricConstrains = source_stackup.m_HasDielectricConstrains;
|
m_HasDielectricConstrains = source_stackup.m_HasDielectricConstrains;
|
||||||
|
@ -484,8 +487,6 @@ bool BOARD_STACKUP::SynchronizeWithBoard( BOARD_DESIGN_SETTINGS* aSettings )
|
||||||
m_EdgePlating = source_stackup.m_EdgePlating;
|
m_EdgePlating = source_stackup.m_EdgePlating;
|
||||||
m_FinishType = source_stackup.m_FinishType;
|
m_FinishType = source_stackup.m_FinishType;
|
||||||
|
|
||||||
*this = stackup;
|
|
||||||
|
|
||||||
return change;
|
return change;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
#include <reporter.h>
|
#include <reporter.h>
|
||||||
#include <wildcards_and_files_ext.h>
|
#include <wildcards_and_files_ext.h>
|
||||||
|
|
||||||
|
|
||||||
GERBER_JOBFILE_WRITER::GERBER_JOBFILE_WRITER( BOARD* aPcb, REPORTER* aReporter )
|
GERBER_JOBFILE_WRITER::GERBER_JOBFILE_WRITER( BOARD* aPcb, REPORTER* aReporter )
|
||||||
{
|
{
|
||||||
m_pcb = aPcb;
|
m_pcb = aPcb;
|
||||||
|
@ -287,6 +288,9 @@ void GERBER_JOBFILE_WRITER::addJSONGeneralSpecs()
|
||||||
if( !brd_stackup.m_FinishType.IsEmpty() )
|
if( !brd_stackup.m_FinishType.IsEmpty() )
|
||||||
m_json["GeneralSpecs"]["Finish"] = brd_stackup.m_FinishType;
|
m_json["GeneralSpecs"]["Finish"] = brd_stackup.m_FinishType;
|
||||||
|
|
||||||
|
if( brd_stackup.m_HasDielectricConstrains )
|
||||||
|
m_json["GeneralSpecs"]["ImpedanceControlled"] = true;
|
||||||
|
|
||||||
if( brd_stackup.m_CastellatedPads )
|
if( brd_stackup.m_CastellatedPads )
|
||||||
m_json["GeneralSpecs"]["Castellated"] = true;
|
m_json["GeneralSpecs"]["Castellated"] = true;
|
||||||
|
|
||||||
|
@ -666,6 +670,7 @@ void GERBER_JOBFILE_WRITER::addJSONMaterialStackup()
|
||||||
// These constrains are only written if the board has impedance controlled tracks.
|
// These constrains are only written if the board has impedance controlled tracks.
|
||||||
// If the board is not impedance controlled, they are useless.
|
// If the board is not impedance controlled, they are useless.
|
||||||
// Do not add constrains that create more expensive boards.
|
// Do not add constrains that create more expensive boards.
|
||||||
|
|
||||||
if( brd_stackup.m_HasDielectricConstrains )
|
if( brd_stackup.m_HasDielectricConstrains )
|
||||||
{
|
{
|
||||||
// Generate Epsilon R if > 1.0 (value <= 1.0 means not specified: it is not
|
// Generate Epsilon R if > 1.0 (value <= 1.0 means not specified: it is not
|
||||||
|
|
Loading…
Reference in New Issue