Edit

Share via


GoPiGo.SetMotorPosition(MotorPort, Int32) Method

Definition

Set the motor target position in degrees

public void SetMotorPosition (Iot.Device.GoPiGo3.Models.MotorPort port, int positionDegree);
member this.SetMotorPosition : Iot.Device.GoPiGo3.Models.MotorPort * int -> unit
Public Sub SetMotorPosition (port As MotorPort, positionDegree As Integer)

Parameters

port
MotorPort

The Motor port to use, can be MotorLeft and/or MotorRight

positionDegree
Int32

The target position in degree

Applies to