Update Kinematics.cpp

Fixed bug where circumference_ is always 0.
pull/2/head
Joshua Frank 2019-02-26 18:50:48 -06:00 committed by GitHub
parent 90454f30fa
commit 7d1d5cf4b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
Kinematics::Kinematics(int motor_max_rpm, float wheel_diameter, float fr_wheels_dist, float lr_wheels_dist, int pwm_bits):
wheel_diameter_(wheel_diameter),
circumference_(PI * wheel_diameter_),
circumference_(PI * wheel_diameter),
max_rpm_(motor_max_rpm),
fr_wheels_dist_(fr_wheels_dist),
lr_wheels_dist_(lr_wheels_dist),