Beispiel #1
0
        public VoiceModel(IRobotConnection Connection)
        {
            connection = Connection;
            RouteMessages(connection);

            this.TalkSpeed = 150;
        }
Beispiel #2
0
        public EyeModel(IRobotConnection Connection)
        {
            RouteMessages(Connection);

            PanPosition = 100;
            TiltPosition = 100;
        }
Beispiel #3
0
        public VoiceModel(IRobotConnection Connection)
        {
            connection = Connection;
            RouteMessages(connection);

            this.TalkSpeed = 150;
        }
Beispiel #4
0
        public EyeModel(IRobotConnection Connection)
        {
            RouteMessages(Connection);

            PanPosition  = 100;
            TiltPosition = 100;
        }
Beispiel #5
0
        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());
        }
        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());
        }
Beispiel #7
0
        //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());
        }
Beispiel #8
0
        //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());
        }
Beispiel #9
0
        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() );
        }
Beispiel #10
0
        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());
        }
Beispiel #11
0
        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;
        }
Beispiel #12
0
        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;
        }
Beispiel #13
0
 public QuickButtonsViewModel(IRobotConnection Connection)
 {
     model = new QuickButtonsModel(Connection);
 }
Beispiel #14
0
 public void RouteMessages(IRobotConnection Connection)
 {
     Connection.MessageSent     += new EventHandler <StringEventArgs>(DisplayMessageSent);
     Connection.MessageReceived += new EventHandler <StringEventArgs>(DisplayMessageReceived);
     connection = Connection;
 }
Beispiel #15
0
 public BotTerminalModel(IRobotConnection Connection)
 {
     RouteMessages(Connection);
 }
Beispiel #16
0
 public BotTerminalModel(IRobotConnection Connection)
 {
     RouteMessages(Connection);
 }
Beispiel #17
0
 public void RouteMessages(IRobotConnection Connection)
 {
     Connection.MessageSent += new EventHandler<StringEventArgs>(DisplayMessageSent);
     Connection.MessageReceived += new EventHandler<StringEventArgs>(DisplayMessageReceived);
     connection = Connection;
 }
Beispiel #18
0
 public void RouteMessages(IRobotConnection BotConnection)
 {
     connection.MessageReceived += connection_MessageReceived;
 }
 public QuickButtonsViewModel(IRobotConnection Connection)
 {
     model = new QuickButtonsModel(Connection);
 }
 public QuickButtonsModel(IRobotConnection Connection)
 {
     connection = Connection;
     RouteMessages(connection);
 }
Beispiel #21
0
 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)
 }
Beispiel #22
0
 public void RouteMessages(IRobotConnection Connection)
 {
     connection = Connection;
 }
Beispiel #23
0
 public void RouteMessages(IRobotConnection Connection)
 {
     connection = Connection;
 }
Beispiel #24
0
 public void RouteMessages( IRobotConnection BotConnection )
 {
     connection.MessageReceived += connection_MessageReceived;
 }
Beispiel #25
0
 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)
 }
Beispiel #26
0
 public EyeViewModel(IRobotConnection Connection)
 {
     model = new EyeModel(Connection);
 }
Beispiel #27
0
 public EyeViewModel(IRobotConnection Connection)
 {
     model = new EyeModel(Connection);
 }
Beispiel #28
0
 public QuickButtonsModel(IRobotConnection Connection)
 {
     connection = Connection;
     RouteMessages(connection);
 }