WPILibC++ 2023.4.3-108-ge5452e3
DMC60.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 * Digilent DMC 60 Motor %Controller.
13 *
14 * Note that the DMC 60 uses the following bounds for PWM values. These
15 * values should work reasonably well for most controllers, but if users
16 * experience issues such as asymmetric behavior around the deadband or
17 * inability to saturate the controller in either direction, calibration is
18 * recommended. The calibration procedure can be found in the DMC 60 User
19 * Manual available from Digilent.
20 *
21 * \li 2.004ms = full "forward"
22 * \li 1.520ms = the "high end" of the deadband range
23 * \li 1.500ms = center of the deadband range (off)
24 * \li 1.480ms = the "low end" of the deadband range
25 * \li 0.997ms = full "reverse"
26 */
27class DMC60 : public PWMMotorController {
28 public:
29 /**
30 * Constructor for a Digilent DMC 60.
31 *
32 * @param channel The PWM channel that the DMC 60 is attached to. 0-9 are
33 * on-board, 10-19 are on the MXP port
34 */
35 explicit DMC60(int channel);
36
37 DMC60(DMC60&&) = default;
38 DMC60& operator=(DMC60&&) = default;
39};
40
41} // namespace frc
Digilent DMC 60 Motor Controller.
Definition: DMC60.h:27
DMC60(int channel)
Constructor for a Digilent DMC 60.
DMC60 & operator=(DMC60 &&)=default
DMC60(DMC60 &&)=default
Common base class for all PWM Motor Controllers.
Definition: PWMMotorController.h:26
Definition: AprilTagPoseEstimator.h:15