lasasgi.blogg.se

Robotc ev3
Robotc ev3














This command will "sleep" your program until the specified motor (nMotorIndex) comes to a stop.Sets the speed value of motor motor port A to stopped (0)īool waitUntilMotorStop ( tMotor nMotorIndex ) Sets the speed value of motor motor port A to half-speed backwards (-50) Halt program flow for 1000ms (1 second)

#ROBOTC EV3 FULL#

A zero value stops the motor.Ĭode Example: //Sets the speed value of motor motor port A to full forward (+100) 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 Speed value that will be passed to the motor (-100 to +100). 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.

robotc ev3 robotc ev3

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.

robotc ev3

Our Function Library (Updated Spring 2013) EV3 - Motor Commands

  • A Non-Functioning EV3 (i.e., frozen or dead).













  • Robotc ev3