some code quality
This commit is contained in:
@@ -43,9 +43,9 @@ void ManualControl::runManualControl() {
|
||||
// std::cout << "x: " << (int) x << " y: " << (int) y << std::endl;
|
||||
// }
|
||||
|
||||
double value_per_step = this->max_speed * 2 / 256;
|
||||
double value_per_step = this->max_speed * 2 / UINT8_MAX;
|
||||
this->moveControl->setSpeed(-y * value_per_step);
|
||||
|
||||
value_per_step = this->max_rotation * 2 / 256;
|
||||
value_per_step = this->max_rotation * 2 / UINT8_MAX;
|
||||
this->moveControl->setRotationSpeed(x * value_per_step);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user