mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
Refactor rotation threshold in CKobuki.cpp
This commit is contained in:
@@ -720,8 +720,8 @@ void CKobuki::doRotation(long double th)
|
|||||||
|
|
||||||
if (u > thresh)
|
if (u > thresh)
|
||||||
u = thresh;
|
u = thresh;
|
||||||
if (u < 0.6)
|
if (u < 0.4)
|
||||||
u = 0.6;
|
u = 0.4;
|
||||||
|
|
||||||
if (i < u)
|
if (i < u)
|
||||||
{
|
{
|
||||||
@@ -743,8 +743,8 @@ void CKobuki::doRotation(long double th)
|
|||||||
|
|
||||||
if (u > thresh)
|
if (u > thresh)
|
||||||
u = thresh;
|
u = thresh;
|
||||||
if (u < 0.6)
|
if (u < 0.4)
|
||||||
u = 0.6;
|
u = 0.4;
|
||||||
|
|
||||||
if (i < u)
|
if (i < u)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user