public void initTable(ITable table) { this.table = table; super.initTable(table); if (table != null) { table.putNumber("error", super.getError()); table.putNumber("output", super.get()); table.putBoolean("onTarget", false); // timer = new Timer(); // timer.schedule(new // org.usfirst.frc330.wpilibj.BeachbotMultiPrefSendablePIDController.SendDataTask(), 0, 250); } }
public void initTable(ITable table) { if (this.table != null) { this.table.removeTableListener(listener); } this.table = table; if (table != null) { table.putNumber("p", gains.getP()); table.putNumber("i", gains.getI()); table.putNumber("d", gains.getD()); table.putNumber("f", gains.getF()); table.putNumber("goal", goal); table.putNumber("source", source.get()); table.putBoolean("enabled", isEnabled()); table.addTableListener(listener, false); } }
/** {@inheritDoc} */ @Override public void updateTable() { if (m_table != null) { m_table.putBoolean("Value", get()); } }