//NETLIB_RESETI() public override void reset() { /* FIXME make resistances a parameter, properly model other variants */ m_R1.set_R(nlconst.magic(5000)); m_R2.set_R(nlconst.magic(5000)); m_R3.set_R(nlconst.magic(5000)); m_ROUT.set_R(nlconst.magic(20)); m_RDIS.set_R(nlconst.magic(R_OFF)); m_last_out.op = true; // Check for astable setup, usually TRIG AND THRES connected. Enable // overshoot compensation in this case. if (m_TRIG.net() == m_THRES.net()) { m_ovlimit = nlconst.magic(0.5); } }
//NETLIB_RESETI() public override void reset() { m_last_state.op = 0; m_R.set_R(m_ROFF.op()); }
//NETLIB_RESETI(); public override void reset() { // Start in off condition // FIXME: is ROFF correct? m_R.set_R(plib.pg.reciprocal(exec().gmin())); }