def __init__(self): observable.Observable.__init__(self) # Current values of all variables self.data = {} # Unique data for each variable from primary source self.data_by_source = {} # All current data submitted from all sources, [variable][key] # Race course data needed for calculation self.course = Course() self.course.subscribe(self.update_course) # Notify me on any changes to the course self.boat = Boat.Boat() self.tl = Tables.TableLibrary() self.tl.addTables("Polars") self.update_tablelibrary( {} ) ClutchFunc.load_and_monitor("Functions") # Short term buffer of data we need on hand self.buffer = collections.deque([],5000) self.buffer_last_found = 0