WPILibC++ 2024.3.2
PWMTalonFX.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
8
9namespace frc {
10
11/**
12 * Cross the Road Electronics (CTRE) %Talon FX Motor %Controller with PWM
13 * control.
14 *
15 * Note that the %Talon FX uses the following bounds for PWM values. These
16 * values should work reasonably well for most controllers, but if users
17 * experience issues such as asymmetric behavior around the deadband or
18 * inability to saturate the controller in either direction, calibration is
19 * recommended. The calibration procedure can be found in the %Talon FX User
20 * Manual available from Cross The Road Electronics.
21 *
22 * \li 2.004ms = full "forward"
23 * \li 1.520ms = the "high end" of the deadband range
24 * \li 1.500ms = center of the deadband range (off)
25 * \li 1.480ms = the "low end" of the deadband range
26 * \li 0.997ms = full "reverse"
27 */
29 public:
30 /**
31 * Construct a %Talon FX connected via PWM.
32 *
33 * @param channel The PWM channel that the %Talon FX is attached to. 0-9 are
34 * on-board, 10-19 are on the MXP port
35 */
36 explicit PWMTalonFX(int channel);
37
38 PWMTalonFX(PWMTalonFX&&) = default;
40};
41
42} // namespace frc
Common base class for all PWM Motor Controllers.
Definition: PWMMotorController.h:35
Cross the Road Electronics (CTRE) Talon FX Motor Controller with PWM control.
Definition: PWMTalonFX.h:28
PWMTalonFX & operator=(PWMTalonFX &&)=default
PWMTalonFX(int channel)
Construct a Talon FX connected via PWM.
PWMTalonFX(PWMTalonFX &&)=default
Definition: AprilTagPoseEstimator.h:15