Table of Contents

Class EmptyControl

Namespace
CTRE.Phoenix6.Controls
Assembly
Phoenix6.Hardware.dll

Generic Empty Control class used to do nothing.

public sealed class EmptyControl : ControlRequest, ICloneable
Inheritance
EmptyControl
Implements
Inherited Members

Constructors

EmptyControl()

Constructs an empty control request.

public EmptyControl()

Properties

Name

Name of this control request.

public string Name { get; }

Property Value

string

Methods

Clone()

Creates a copy of this control request.

public EmptyControl Clone()

Returns

EmptyControl

GetControlInfo()

Gets information about this control request.

public Dictionary<string, string> GetControlInfo()

Returns

Dictionary<string, string>

Dictionary of control parameter names and corresponding applied values

SendRequest(string, uint)

Common method that all control requests implement that will send the request down once the request has all the required information for the send.

public StatusCode SendRequest(string network, uint deviceHash)

Parameters

network string

Network to send request down

deviceHash uint

Device to send request to

Returns

StatusCode

Status code of send request

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WithUpdateFreqHz(double)

Sets the frequency at which this control will update. This is designated in Hertz, with a minimum of 20 Hz (every 50 ms) and a maximum of 1000 Hz (every 1 ms). Some update frequencies are not supported and will be promoted up to the next highest supported frequency.

If this field is set to 0 Hz, the control request will be sent immediately as a one-shot frame. This may be useful for advanced applications that require outputs to be synchronized with data acquisition. In this case, we recommend not exceeding 50 ms between control calls.
public EmptyControl WithUpdateFreqHz(double newUpdateFreqHz)

Parameters

newUpdateFreqHz double

Parameter to modify

Returns

EmptyControl

Itself