mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Fixed the names of the arguments to some C++ drive classes (#1070)
The docs already have the correct name, but some headers and sources weren't updated. Java doesn't have this mistake.
This commit is contained in:
committed by
Peter Johnson
parent
c89678971c
commit
72a79aac53
@@ -132,7 +132,7 @@ void KilloughDrive::DriveCartesian(double ySpeed, double xSpeed,
|
||||
* Clockwise is positive.
|
||||
*/
|
||||
void KilloughDrive::DrivePolar(double magnitude, double angle,
|
||||
double rotation) {
|
||||
double zRotation) {
|
||||
if (!reported) {
|
||||
// HAL_Report(HALUsageReporting::kResourceType_RobotDrive, 3,
|
||||
// HALUsageReporting::kRobotDrive_KilloughPolar);
|
||||
@@ -140,7 +140,7 @@ void KilloughDrive::DrivePolar(double magnitude, double angle,
|
||||
}
|
||||
|
||||
DriveCartesian(magnitude * std::sin(angle * (kPi / 180.0)),
|
||||
magnitude * std::cos(angle * (kPi / 180.0)), rotation, 0.0);
|
||||
magnitude * std::cos(angle * (kPi / 180.0)), zRotation, 0.0);
|
||||
}
|
||||
|
||||
void KilloughDrive::StopMotor() {
|
||||
|
||||
Reference in New Issue
Block a user