internal async Task StartMotorAsyncInternal(OutputPort ports)
        {
            Command c = new Command(CommandType.DirectNoReply);

            c.StartMotor(ports);
            await _brick.SendCommandAsyncInternal(c);
        }
        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);
        }
Beispiel #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);
        }
		internal async Task StartMotorAsyncInternal(OutputPort ports)
		{
			Command c = new Command(CommandType.DirectNoReply);
			c.StartMotor(ports);
			await _brick.SendCommandAsyncInternal(c);
		}
		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);
		}