WPILibC++
2027.0.0-alpha-4
Loading...
Searching...
No Matches
Talon.hpp
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
// THIS FILE WAS AUTO-GENERATED BY ./wpilibc/generate_pwm_motor_controllers.py. DO NOT MODIFY
6
7
#pragma once
8
9
#include "
wpi/hardware/motor/PWMMotorController.hpp
"
10
11
namespace
wpi
{
12
13
/**
14
* Cross the Road Electronics (CTRE) Talon Motor Controller with PWM control.
15
*
16
* Note that the Talon uses the following bounds for PWM values. These
17
* values should work reasonably well for most controllers, but if users
18
* experience issues such as asymmetric behavior around the deadband or
19
* inability to saturate the controller in either direction, calibration is
20
* recommended. The calibration procedure can be found in the Talon User
21
* Manual available from Cross the Road Electronics (CTRE).
22
*
23
* \li 2.037ms = full "forward"
24
* \li 1.539ms = the "high end" of the deadband range
25
* \li 1.513ms = center of the deadband range (off)
26
* \li 1.487ms = the "low end" of the deadband range
27
* \li 0.989ms = full "reverse"
28
*/
29
class
Talon
:
public
PWMMotorController
{
30
public
:
31
/**
32
* Constructor for a Talon connected via PWM.
33
*
34
* @param channel The PWM channel that the Talon is attached to. 0-9 are
35
* on-board, 10-19 are on the MXP port
36
*/
37
explicit
Talon
(
int
channel);
38
39
Talon
(
Talon
&&) =
default
;
40
Talon
&
operator=
(
Talon
&&) =
default
;
41
};
42
43
}
// namespace wpi
PWMMotorController.hpp
wpi::PWMMotorController::PWMMotorController
PWMMotorController(PWMMotorController &&)=default
wpi::Talon::operator=
Talon & operator=(Talon &&)=default
wpi::Talon::Talon
Talon(Talon &&)=default
wpi::Talon::Talon
Talon(int channel)
Constructor for a Talon connected via PWM.
wpi
Definition
CvSource.hpp:15
wpi
hardware
motor
Talon.hpp
Generated on
for WPILibC++ by
1.15.0