mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpilib] Replace Speed controller comments with motor controller (NFC) (#3551)
Makes comments consistent with #3302
This commit is contained in:
@@ -122,7 +122,7 @@ class PWM : public wpi::Sendable, public wpi::SendableHelper<PWM> {
|
||||
/**
|
||||
* Set the PWM value based on a speed.
|
||||
*
|
||||
* This is intended to be used by speed controllers.
|
||||
* This is intended to be used by motor controllers.
|
||||
*
|
||||
* @pre SetMaxPositivePwm() called.
|
||||
* @pre SetMinPositivePwm() called.
|
||||
@@ -130,14 +130,14 @@ class PWM : public wpi::Sendable, public wpi::SendableHelper<PWM> {
|
||||
* @pre SetMaxNegativePwm() called.
|
||||
* @pre SetMinNegativePwm() called.
|
||||
*
|
||||
* @param speed The speed to set the speed controller between -1.0 and 1.0.
|
||||
* @param speed The speed to set the motor controller between -1.0 and 1.0.
|
||||
*/
|
||||
virtual void SetSpeed(double speed);
|
||||
|
||||
/**
|
||||
* Get the PWM value in terms of speed.
|
||||
*
|
||||
* This is intended to be used by speed controllers.
|
||||
* This is intended to be used by motor controllers.
|
||||
*
|
||||
* @pre SetMaxPositivePwm() called.
|
||||
* @pre SetMinPositivePwm() called.
|
||||
@@ -164,7 +164,7 @@ class PWM : public wpi::Sendable, public wpi::SendableHelper<PWM> {
|
||||
void SetZeroLatch();
|
||||
|
||||
/**
|
||||
* Optionally eliminate the deadband from a speed controller.
|
||||
* Optionally eliminate the deadband from a motor controller.
|
||||
*
|
||||
* @param eliminateDeadband If true, set the motor curve on the speed
|
||||
* controller to eliminate the deadband in the middle
|
||||
|
||||
Reference in New Issue
Block a user