sim: VSIN - allow user to specify a phase
TD is not the same as PHASE. TD is the delay before the source turns on. PHASE is ... the phase If only TD is set, the signal starts later, but the phase is still 0 when compared to the t=0 of the simulation.
This commit is contained in:
parent
2dffaa4d04
commit
39a1b14a0f
|
@ -400,15 +400,13 @@ std::vector<SIM_MODEL::PARAM::INFO> SIM_MODEL_SOURCE::makeSinParamInfos( std::st
|
|||
paramInfo.description = "Damping factor";
|
||||
paramInfos.push_back( paramInfo );
|
||||
|
||||
// "phase" is not needed. "td" is enough.
|
||||
|
||||
/*paramInfo.name = "phase";
|
||||
paramInfo.name = "phase";
|
||||
paramInfo.type = SIM_VALUE::TYPE_FLOAT;
|
||||
paramInfo.unit = "°";
|
||||
paramInfo.category = SIM_MODEL::PARAM::CATEGORY::PRINCIPAL;
|
||||
paramInfo.defaultValue = "0";
|
||||
paramInfo.description = "Phase";
|
||||
paramInfos.push_back( paramInfo );*/
|
||||
paramInfos.push_back( paramInfo );
|
||||
|
||||
appendAcParamInfos( paramInfos, aUnit );
|
||||
return paramInfos;
|
||||
|
|
Loading…
Reference in New Issue