CoreCANcoderSetControl Method

Control motor with generic control request object.

User must make sure the specified object is castable to a valid control request, otherwise this function will fail at run-time and return the NotSupported StatusCode

Definition

Namespace: CTRE.Phoenix6.Hardware.Core
Assembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
C#
public StatusCode SetControl(
	ControlRequest request
)

Parameters

request  ControlRequest
Control object to request of the device

Return Value

StatusCode
Status Code of the request, 0 is OK

See Also