Esempio n. 1
0
        public override ProsthesisStateBase OnEnter()
        {
            mRunning = true;
            ArduinoCommunicationsLibrary.ArduinoCommsBase.InitializeSerialConnections(mContext.Logger);
            ProsthesisStateBase initialState = new WaitForBootup(this, new ArduinoCommunicationsLibrary.ArduinoCommsBase[] { mMotorControllerArduino, mSensorNodeArduino });

            ChangeState(initialState);

            return(this);
        }
        public override ProsthesisStateBase OnEnter()
        {
            mRunning = true;
            ArduinoCommunicationsLibrary.ArduinoCommsBase.InitializeSerialConnections(mContext.Logger);
            ProsthesisStateBase initialState = new WaitForBootup(this, new ArduinoCommunicationsLibrary.ArduinoCommsBase[] { mMotorControllerArduino, mSensorNodeArduino });
            ChangeState(initialState);

            return this;
        }