コード例 #1
0
        internal async Task StartMotorAsyncInternal(OutputPort ports)
        {
            Command c = new Command(CommandType.DirectNoReply);

            c.StartMotor(ports);
            await _brick.SendCommandAsyncInternal(c);
        }
コード例 #2
0
        internal async Task TurnMotorAtSpeedAsyncInternal(OutputPort ports, int speed)
        {
            Command c = new Command(CommandType.DirectNoReply);

            c.TurnMotorAtSpeed(ports, speed);
            c.StartMotor(ports);
            await _brick.SendCommandAsyncInternal(c);
        }
コード例 #3
0
        internal async Task TurnMotorAtPowerAsyncInternal(OutputPort ports, int power)
        {
            Command c = _brick.NewCommand(CommandType.Direct);

            c.TurnMotorAtPower(ports, power);
            c.StartMotor(ports);
            await _brick.SendCommandAsyncInternal(c);
        }
コード例 #4
0
		internal async Task StartMotorAsyncInternal(OutputPort ports)
		{
			Command c = new Command(CommandType.DirectNoReply);
			c.StartMotor(ports);
			await _brick.SendCommandAsyncInternal(c);
		}
コード例 #5
0
		internal async Task TurnMotorAtSpeedAsyncInternal(OutputPort ports, int speed)
		{
			Command c = new Command(CommandType.DirectNoReply);
			c.TurnMotorAtSpeed(ports, speed);
			c.StartMotor(ports);
			await _brick.SendCommandAsyncInternal(c);
		}