CTRE_Phoenix  5.14.0
com.ctre.phoenix.motorcontrol.DemandType Enum Reference

Public Member Functions

 DemandType (int value)
 

Public Attributes

 Neutral =(0)
 
 AuxPID =(1)
 Target value of PID loop 1. When f. More...
 
 ArbitraryFeedForward =(2)
 Simply add to the output. More...
 
int value
 

Detailed Description

Choose the demand type for the 4 param set

Constructor & Destructor Documentation

◆ DemandType()

com.ctre.phoenix.motorcontrol.DemandType.DemandType ( int  value)
inline

Create DemandType of specified value

Parameters
valueValue of DemandType

Member Data Documentation

◆ ArbitraryFeedForward

com.ctre.phoenix.motorcontrol.DemandType.ArbitraryFeedForward =(2)

Simply add to the output.

When closed-looping, add demand arbitrarily to the closed-loop output.

◆ AuxPID

com.ctre.phoenix.motorcontrol.DemandType.AuxPID =(1)

Target value of PID loop 1. When f.

When closed-looping, set the target of the aux PID loop to the demand value.

When following, follow the processed output of the combined primary/aux PID output of the master. The demand value is ignored. Although it is much cleaner to use the 2-param Follow() in such cases.

◆ Neutral

com.ctre.phoenix.motorcontrol.DemandType.Neutral =(0)

Ignore the demand value and apply neutral/no-change.

◆ value

int com.ctre.phoenix.motorcontrol.DemandType.value

Value of DemandType


The documentation for this enum was generated from the following file: