public VoiceModel(IRobotConnection Connection) { connection = Connection; RouteMessages(connection); this.TalkSpeed = 150; }
public EyeModel(IRobotConnection Connection) { RouteMessages(Connection); PanPosition = 100; TiltPosition = 100; }
public BotTerminalViewModel(IRobotConnection Connection) { model = new BotTerminalModel(Connection); //For keyboard bindings sendTerminalCommand = new TerminalDelegateCommand((x) => SendTerminalCommand(model.CurrentCommand)); historyUpArrow = new TerminalDelegateCommand((x) => LoadHistorySentenceUp()); historyDownArrow = new TerminalDelegateCommand((x) => LoadHistorySentenceDown()); }
//Need a private ConnectionViewModel here public VoiceViewModel(IRobotConnection Connection) { //Here we link up the send and receive logic with ConnectionViewModel model = new VoiceModel(Connection); //For keyboard bindings speakCommand = new VoiceDelegateCommand((x) => SendCurrentSentence(model.CurrentSentence)); historyUpArrow = new VoiceDelegateCommand((x) => LoadHistorySentenceUp()); historyDownArrow = new VoiceDelegateCommand((x) => LoadHistorySentenceDown()); }
public LegsViewModel( IRobotConnection Connection ) { model = new LegsModel( Connection ); keyUp = new VoiceDelegateCommand( ( x ) => model.Throttle_Up() ); keyDown = new VoiceDelegateCommand( ( x ) => model.Throttle_Down() ); keyLeft = new VoiceDelegateCommand( ( x ) => model.Throttle_Left() ); keyRight = new VoiceDelegateCommand( ( x ) => model.Throttle_Right() ); keyStop = new VoiceDelegateCommand( ( x ) => model.Throttle_Stop() ); }
public LegsViewModel(IRobotConnection Connection) { model = new LegsModel(Connection); keyUp = new VoiceDelegateCommand((x) => model.Throttle_Up()); keyDown = new VoiceDelegateCommand((x) => model.Throttle_Down()); keyLeft = new VoiceDelegateCommand((x) => model.Throttle_Left()); keyRight = new VoiceDelegateCommand((x) => model.Throttle_Right()); keyStop = new VoiceDelegateCommand((x) => model.Throttle_Stop()); }
public LegsModel(IRobotConnection Connection) { this.connection = Connection; RouteMessages(this.connection); this.ThrottleInterval = 10; controlSignalSourceSelect = false; //100 is middle of motor throw (not rotating) //It's converted to 1.5ms pulse widths in the FPGA ThrottleLeft = 100; ThrottleRight = 100; }
public LegsModel( IRobotConnection Connection ) { this.connection = Connection; RouteMessages( this.connection ); this.ThrottleInterval = 10; controlSignalSourceSelect = false; //100 is middle of motor throw (not rotating) //It's converted to 1.5ms pulse widths in the FPGA ThrottleLeft = 100; ThrottleRight = 100; }
public QuickButtonsViewModel(IRobotConnection Connection) { model = new QuickButtonsModel(Connection); }
public void RouteMessages(IRobotConnection Connection) { Connection.MessageSent += new EventHandler <StringEventArgs>(DisplayMessageSent); Connection.MessageReceived += new EventHandler <StringEventArgs>(DisplayMessageReceived); connection = Connection; }
public BotTerminalModel(IRobotConnection Connection) { RouteMessages(Connection); }
public void RouteMessages(IRobotConnection Connection) { Connection.MessageSent += new EventHandler<StringEventArgs>(DisplayMessageSent); Connection.MessageReceived += new EventHandler<StringEventArgs>(DisplayMessageReceived); connection = Connection; }
public void RouteMessages(IRobotConnection BotConnection) { connection.MessageReceived += connection_MessageReceived; }
public QuickButtonsModel(IRobotConnection Connection) { connection = Connection; RouteMessages(connection); }
public void RouteMessages(IRobotConnection BotConnection) { //Used to link up the connection's MessageSent and MessageReceived events //Not really needed here because the Voice only sends messages and doesn't really care what comes back... (for now) }
public void RouteMessages(IRobotConnection Connection) { connection = Connection; }
public void RouteMessages( IRobotConnection BotConnection ) { connection.MessageReceived += connection_MessageReceived; }
public EyeViewModel(IRobotConnection Connection) { model = new EyeModel(Connection); }