0

How do I parameter the ports at Move Tank block (in My Block)?

1 Answer 1

1

Create a My Block that looks something like this:

screenshot 1

Then you can select the ports like this:

screenshot 2

The 23 means ports B+C (see below).


From the help file:

Wired Input of Two Ports

If you configure a Move Steering or Move Tank block for wired port input, you will need to specify two different port numbers: one for the left motor port, and one for the right motor port. This is done by using a two-digit number for the Port input. The first digit of the number (the 10’s digit) specifies the port number for the left motor, and the second digit (the 1’s digit) specifies the port number for the right motor.

EV3 Motor Ports
(Left, Right)     Value of Port input
-------------------------------------
B, C              23
C, B              32
A, B              12
A, D              14 

See the table above for the individual motor port number values. The table below shows some examples of Port inputs to specify two ports.

1
  • thx dude!!! you help me so mach!!!!
    – Or2907
    Commented Apr 12, 2016 at 13:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.