IMotor Interface
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.
Interface for a motor
public interface IMotor
type IMotor = interface
Public Interface IMotor
- Derived
Properties
IsConnected |
Gets true if the motor is connected. |
Port |
Motor port |
SensorType |
Motor type |
Speed |
Gets the speed of the motor speed is between -100 and +100 |
Methods
Float() |
Floats the motor and stop all constraints on it. |
GetMotorName() |
Gets the name of the sensor. |
GetSpeed() |
Get the speed |
SetBias(Double) |
Sets the bias of the motor. |
SetPowerLimit(Double) |
Sets the power consumption limit. |
SetSpeed(Int32) |
Set the speed of the motor |
Start() |
Start the motor |
Start(Int32) |
Start with the specified speed |
Stop() |
Stop the Motor |
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