GoPiGo.SetMotorPositionKD(MotorPort, Byte) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the motor target position KD constant If you set KP higher, the motor will be more responsive to errors in position, at the cost of perhaps overshooting and oscillating. KD slows down the motor as it approaches the target, and helps to prevent overshoot. In general, if you increase kp, you should also increase KD to keep the motor from overshooting and oscillating. See as well https://en.wikipedia.org/wiki/PID_controller
public void SetMotorPositionKD (Iot.Device.GoPiGo3.Models.MotorPort port, byte kd = 70);
member this.SetMotorPositionKD : Iot.Device.GoPiGo3.Models.MotorPort * byte -> unit
Public Sub SetMotorPositionKD (port As MotorPort, Optional kd As Byte = 70)
Parameters
- port
- MotorPort
The Motor port to use, can be MotorLeft and/or MotorRight
- kd
- Byte
The KD constant (default 70)
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for