some code quality

This commit is contained in:
2023-08-14 07:11:03 +02:00
parent 38c8a58988
commit 147eea1f92
4 changed files with 18 additions and 2 deletions
@@ -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);
}