Enum ExternalFeedbackSensorSourceValue
Choose what sensor source is reported via API and used by closed-loop and limit features. The default is Commutation, which uses the external sensor used for motor commutation.
Choose Remote* to use another sensor on the same CAN bus (this also requires setting FeedbackRemoteSensorID). Talon will update its position and velocity whenever the remote sensor publishes its information on CAN bus, and the Talon commutation sensor will not be used. Choose Fused* (requires Phoenix Pro) and Talon will fuse another sensor's information with the commutation sensor, which provides the best possible position and velocity for accuracy and bandwidth (this also requires setting FeedbackRemoteSensorID). This was developed for applications such as swerve-azimuth. Choose Sync* (requires Phoenix Pro) and Talon will synchronize its commutation sensor position against another sensor, then continue to use the rotor sensor for closed loop control (this also requires setting FeedbackRemoteSensorID). The Talon will report if its internal position differs significantly from the reported remote sensor position. This was developed for mechanisms where there is a risk of the sensor failing in such a way that it reports a position that does not match the mechanism, such as the sensor mounting assembly breaking off. Choose RemotePigeon2Yaw, RemotePigeon2Pitch, and RemotePigeon2Roll to use another Pigeon2 on the same CAN bus (this also requires setting FeedbackRemoteSensorID). Talon will update its position to match the selected value whenever Pigeon2 publishes its information on CAN bus. Note that the Talon position will be in rotations and not degrees. Choose Quadrature to use a quadrature encoder directly attached to the Talon data port. This provides velocity and relative position measurements. Choose PulseWidth to use a pulse-width encoder directly attached to the Talon data port. This provides velocity and absolute position measurements. Note: When the feedback source is changed to Fused* or Sync*, the Talon needs a period of time to fuse before sensor-based (soft-limit, closed loop, etc.) features are used. This period of time is determined by the update frequency of the remote sensor's Position signal.public enum ExternalFeedbackSensorSourceValue
- Extension Methods
Fields
Commutation = 0Use the external sensor used for motor commutation.
FusedCANcoder = 5Requires Phoenix Pro; Talon will fuse another CANcoder's information with the commutation sensor, which provides the best possible position and velocity for accuracy and bandwidth (this also requires setting FeedbackRemoteSensorID). FusedCANcoder was developed for applications such as swerve-azimuth.
FusedCANdiPWM1 = 12Requires Phoenix Pro; Talon will fuse a pulse-width encoder remotely attached to the Sensor Input 1 (S1IN) on CANdi™, which provides the best possible position and velocity for accuracy and bandwidth (this also requires setting FeedbackRemoteSensorID). FusedCANdi was developed for applications such as swerve-azimuth.
FusedCANdiPWM2 = 13Requires Phoenix Pro; Talon will fuse a pulse-width encoder remotely attached to the Sensor Input 2 (S2IN) on CANdi™, which provides the best possible position and velocity for accuracy and bandwidth (this also requires setting FeedbackRemoteSensorID). FusedCANdi was developed for applications such as swerve-azimuth.
FusedCANdiQuadrature = 14Requires Phoenix Pro; Talon will fuse a qaudrature encoder remotely attached to the two Sensor Inputs on CANdi™. This provides velocity and relative position measurements. This also requires setting FeedbackRemoteSensorID.
PulseWidth = 8Use a pulse-width encoder directly attached to the Talon data port. This provides velocity and absolute position measurements.
Quadrature = 7Use a quadrature encoder directly attached to the Talon data port. This provides velocity and relative position measurements.
RemoteCANcoder = 1Use another CANcoder on the same CAN bus (this also requires setting FeedbackRemoteSensorID). Talon will update its position and velocity whenever CANcoder publishes its information on CAN bus, and the Talon commutation sensor will not be used.
RemoteCANdiPWM1 = 9Use a pulse-width encoder remotely attached to the Sensor Input 1 (S1IN) on CANdi™ (this also requires setting FeedbackRemoteSensorID). Talon will update its position and velocity whenever CANdi™ publishes its information on CAN bus, and the Talon internal rotor will not be used.
RemoteCANdiPWM2 = 10Use a pulse-width encoder remotely attached to the Sensor Input 2 (S2IN) on CANdi™ (this also requires setting FeedbackRemoteSensorID). Talon will update its position and velocity whenever CANdi™ publishes its information on CAN bus, and the Talon internal rotor will not be used.
RemoteCANdiQuadrature = 11Use a quadrature encoder remotely attached to the two Sensor Inputs on CANdi™ (this also requires setting FeedbackRemoteSensorID). Talon will update its position and velocity whenever CANdi™ publishes its information on CAN bus, and the Talon internal rotor will not be used.
RemotePigeon2Pitch = 3Use another Pigeon2 on the same CAN bus (this also requires setting FeedbackRemoteSensorID). Talon will update its position to match the Pigeon2 pitch whenever Pigeon2 publishes its information on CAN bus. Note that the Talon position will be in rotations and not degrees.
RemotePigeon2Roll = 4Use another Pigeon2 on the same CAN bus (this also requires setting FeedbackRemoteSensorID). Talon will update its position to match the Pigeon2 roll whenever Pigeon2 publishes its information on CAN bus. Note that the Talon position will be in rotations and not degrees.
RemotePigeon2Yaw = 2Use another Pigeon2 on the same CAN bus (this also requires setting FeedbackRemoteSensorID). Talon will update its position to match the Pigeon2 yaw whenever Pigeon2 publishes its information on CAN bus. Note that the Talon position will be in rotations and not degrees.
SyncCANcoder = 6Requires Phoenix Pro; Talon will synchronize its commutation sensor position against another CANcoder, then continue to use the rotor sensor for closed loop control (this also requires setting FeedbackRemoteSensorID). The Talon will report if its internal position differs significantly from the reported CANcoder position. SyncCANcoder was developed for mechanisms where there is a risk of the CANcoder failing in such a way that it reports a position that does not match the mechanism, such as the sensor mounting assembly breaking off.
SyncCANdiPWM1 = 15Requires Phoenix Pro; Talon will synchronize its internal rotor position against the pulse-width encoder attached to Sensor Input 1 (S1IN), then continue to use the rotor sensor for closed loop control (this also requires setting FeedbackRemoteSensorID). The Talon will report if its internal position differs significantly from the reported PWM position. SyncCANdi was developed for mechanisms where there is a risk of the CTR Electronics' CANdi™ failing in such a way that it reports a position that does not match the mechanism, such as the sensor mounting assembly breaking off.
SyncCANdiPWM2 = 16Requires Phoenix Pro; Talon will synchronize its internal rotor position against the pulse-width encoder attached to Sensor Input 1 (S1IN), then continue to use the rotor sensor for closed loop control (this also requires setting FeedbackRemoteSensorID). The Talon will report if its internal position differs significantly from the reported PWM position. SyncCANdi was developed for mechanisms where there is a risk of the CTR Electronics' CANdi™ failing in such a way that it reports a position that does not match the mechanism, such as the sensor mounting assembly breaking off.