into port 2 to -2000 degrees at a speed of -75įloat getMotorTarget ( tMotor nMotorIndex )įunctions returns a floating point decimal value. Sets the absolute position target of the motor plugged into motor port A to 1000 degrees at a speed of 50
Values for the motor velocity range from -100 (full reverse) to +100 (full forward).The nMotorIndex command identifies the name or port of the motor.The velocity for the motor, which the nSpeed command is used for, and the port that the motor is plugged into. There are two pieces of information that this command needs.This command will set the speed of the motor.Zero is the value for stopping the motors Port number that the motor is plugged into. Void setMotorSpeed ( tMotor nMotorIndex, int nSpeed ) A count of 180 indicates that the motor has traveled half of a rotation. The encoders have 360 counts per single revolution of the motor. Each motor is equipped with an integrated encoder that can be used to determine the current position of the motor. There are four motor ports on the EV3 labeled A, B, C, and D. Our Function Library (Updated Spring 2013) EV3 - Motor Commands Javascript Programming (Robot Simulator).A Non-Functioning EV3 (i.e., frozen or dead).