static LogicMapper() { //Use this class to set which classes the program should use in processing //Simply change any of the objects below to read = new YOURCLASSHERE(); MotorSubFrameProcessor = new SchiavoneMotorSubProcessor(); ServoSubFrameProcessor = new NullServoSubProcessor(); RobotClient = new RobotClient <T>(); InputProcessor = new SchiavoneInputProcessor(); DashboardModifier = new DefaultDashboardModifier <T>(); }
/// <summary> /// Creates a TemplateInfoProvider /// </summary> /// <param name="mapping">A the mapping of templates to subprocessors fromt he config file.</param> /// <param name="templatesDirectory">The tempaltes directory, this should be the Platform specific directory</param> /// <param name="defaultNameCasing"></param> /// <param name="defaultSubProcessor"></param> /// <param name="defaultTemplate"></param> public TemplateInfoProvider(IList <Dictionary <string, string> > mapping, string templatesDirectory, FileNameCasing defaultNameCasing = FileNameCasing.UpperCamel, SubProcessor defaultSubProcessor = SubProcessor.Other, Template defaultTemplate = Template.Other) { this.mapping = mapping; this.templatesDirectory = templatesDirectory; this.defaultCasing = defaultNameCasing; this.defaultSubProcessor = defaultSubProcessor; this.defaultTemplate = defaultTemplate; }