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:
Tyler Veness
2018-05-16 19:55:27 -07:00
committed by Peter Johnson
parent c89678971c
commit 72a79aac53
2 changed files with 4 additions and 4 deletions

View File

@@ -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() {