code/WPILib/SmartDashboard.cpp
/** Periodically re-announce all fields for receivers that tune in late. */
Periodically re-announce all fields for receivers that tune in late.
Periodically re - announce all fields for receivers that tune in late .
void SmartDashboard::PeriodicallyReannounce() {
	if (m_reannouncementTimer.HasPeriodPassed(REANNOUNCEMENT_INTERVAL_SEC)) {
		for (FieldMap::iterator it = m_fields.begin(); it != m_fields.end(); it++) {
			FieldRecord &r = it->second;
			if (m_buff.HasRoom(SmartDashboardPacketFactory::GetAnnounceLength(r.name))) {
				SmartDashboardPacketFactory::Announce(m_buff, r.id, r.type, r.name);
			} else {
			}
		}
	}
}
void SmartDashboard :: PeriodicallyReannounce ( ) { if ( m_reannouncementTimer . HasPeriodPassed ( REANNOUNCEMENT_INTERVAL_SEC ) ) { for ( FieldMap :: iterator it = m_fields . begin ( ) ; it != m_fields . end ( ) ; it ++ ) { FieldRecord & r = it -> second ; if ( m_buff . HasRoom ( SmartDashboardPacketFactory :: GetAnnounceLength ( r . name ) ) ) { SmartDashboardPacketFactory :: Announce ( m_buff , r . id , r . type , r . name ) ; } else { } } } }
Periodically re-announce all fields for receivers that tune in late.
Periodically re - announce all fields for receivers that tune in late .
// there isn't enough room for this name but there might be room // for a shorter name; hopefully there'll be room next time