CTRE Phoenix C++ 5.33.1
DemandType.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
4namespace ctre {
5namespace phoenix {
6namespace motorcontrol {
7/**
8 * How to interpret a demand value.
9 */
11 /**
12 * Ignore the demand value and apply neutral/no-change.
13 */
15 /**
16 * When closed-looping, set the target of the aux PID loop to the demand value.
17 *
18 * When following, follow the processed output of the combined
19 * primary/aux PID output of the master. The demand value is ignored.
20 * Although it is much cleaner to use the 2-param Follow() in such cases.
21 */
22 DemandType_AuxPID = 1, //!< Target value of Aux PID loop 1.
23 /**
24 * When closed-looping, add demand arbitrarily to the closed-loop output.
25 */
26 DemandType_ArbitraryFeedForward = 2, //!< Simply add to the output
27};
28
29} // namespace motorcontrol
30} // namespace phoenix
31} // namespace ctre
DemandType
How to interpret a demand value.
Definition: DemandType.h:10
@ DemandType_Neutral
Ignore the demand value and apply neutral/no-change.
Definition: DemandType.h:14
@ DemandType_ArbitraryFeedForward
When closed-looping, add demand arbitrarily to the closed-loop output.
Definition: DemandType.h:26
@ DemandType_AuxPID
When closed-looping, set the target of the aux PID loop to the demand value.
Definition: DemandType.h:22
namespace ctre
Definition: paramEnum.h:5