FileTabs& FileTabs::operator<<(const FileTabs &src) { Clear(); Stacking(false); SortGroups(false); Grouping(false); AddFiles(src.GetFiles(), src.GetIcons(), false); CopySettings(src); stackedicons = src.stackedicons; greyedicons = src.greyedicons; if (src.HasCursor()) SetData(~src); sc.SetPos(src.GetScrollPos()); Refresh(); return *this; }
void Elevator::PrintData() { if (f_setPID) m_pid->SetPID(SmartDashboard::GetNumber("Elevator P"),SmartDashboard::GetNumber("Elevator I"),SmartDashboard::GetNumber("Elevator D")); else { SmartDashboard::PutNumber("Left Elevator",m_lElevator->Get()); SmartDashboard::PutNumber("Right Elevator",m_rElevator->Get()); SmartDashboard::PutNumber("Elevator Distance",m_elevEncode->GetDistance()); SmartDashboard::PutNumber("Elevator Rate",m_elevEncode->GetRate()); SmartDashboard::PutNumber("Elevator P",m_pid->GetP()); SmartDashboard::PutNumber("Elevator I",m_pid->GetI()); SmartDashboard::PutNumber("Elevator D",m_pid->GetD()); SmartDashboard::PutNumber("Elevator PID Output",m_pid->Get()); SmartDashboard::PutNumber("Elevator PID Is Enabled",m_pid->IsEnabled()); SmartDashboard::PutBoolean("Elevator At Setpoint",AtSetpoint()); SmartDashboard::PutNumber("Elevator Difference",fabs(m_elevEncode->GetDistance() - m_pid->GetSetpoint())); SmartDashboard::PutNumber("Elevator Stack Case",m_stackCase); SmartDashboard::PutNumber("Elevator Stack Finish",GetPosition(m_stackFin)); SmartDashboard::PutBoolean("Stacking",Stacking()); } }