Cast abs() arguments to long long in InverseKinemetics
Recovered from the uncommitted working copy in the 'Projecten nov 2016' backup.
This commit is contained in:
1 parent
3991264790
commit
f67a12ce88
1 file changed
+2
-2
@@ -57,7 +57,7 @@ float InverseKinemetics::T1 (Data *DataLine)
|
||||
|
||||
float ret = 0;
|
||||
|
||||
ret = t1 + abs(t2);
|
||||
ret = t1 + abs( (long long) t2);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -102,7 +102,7 @@ void InverseKinemetics::setleg (bool Side, Data *DataLine)
|
||||
|
||||
d = sin( (float)(a-90)*(PI/180) );
|
||||
if( d != 0 )
|
||||
DataLine->Z2 = d * abs( DataLine->X2 );
|
||||
DataLine->Z2 = d * abs( (long long) DataLine->X2 );
|
||||
else
|
||||
DataLine->Z2 = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user