WPILibC++ 2024.3.2
Victor.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 * Vex Robotics %Victor 888 Motor %Controller.
13 *
14 * The Vex Robotics %Victor 884 Motor %Controller can also be used with this
15 * class but may need to be calibrated per the Victor 884 user manual.
16 *
17 * Note that the %Victor uses the following bounds for PWM values. These
18 * values were determined empirically and optimized for the %Victor 888. These
19 * values should work reasonably well for %Victor 884 controllers as well but
20 * if users experience issues such as asymmetric behavior around the deadband
21 * or inability to saturate the controller in either direction, calibration is
22 * recommended. The calibration procedure can be found in the %Victor 884 User
23 * Manual available from Vex.
24 *
25 * \li 2.027ms = full "forward"
26 * \li 1.525ms = the "high end" of the deadband range
27 * \li 1.507ms = center of the deadband range (off)
28 * \li 1.490ms = the "low end" of the deadband range
29 * \li 1.026ms = full "reverse"
30 */
31class Victor : public PWMMotorController {
32 public:
33 /**
34 * Constructor for a %Victor.
35 *
36 * @param channel The PWM channel number that the %Victor is attached to. 0-9
37 * are on-board, 10-19 are on the MXP port
38 */
39 explicit Victor(int channel);
40
41 Victor(Victor&&) = default;
42 Victor& operator=(Victor&&) = default;
43};
44
45} // namespace frc
Common base class for all PWM Motor Controllers.
Definition: PWMMotorController.h:35
Vex Robotics Victor 888 Motor Controller.
Definition: Victor.h:31
Victor(int channel)
Constructor for a Victor.
Victor & operator=(Victor &&)=default
Victor(Victor &&)=default
Definition: AprilTagPoseEstimator.h:15