We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bd28dd commit bd0eefcCopy full SHA for bd0eefc
Packages/ReachySimulator/Scripts/JointServiceServer.cs
@@ -451,8 +451,8 @@ public override async Task<FullBodyCartesianCommandAck> StreamFullBodyCartesianC
451
452
private float ChangeAngleRange(float orbita_angle)
453
{
454
- float modified_angle = orbita_angle % (Mathf.Deg2Rad*360);
455
- modified_angle = modified_angle > (Mathf.Deg2Rad*180) ? modified_angle - (Mathf.Deg2Rad*360) : modified_angle;
+ float modified_angle = orbita_angle % (2.0f * (float)Math.PI);
+ modified_angle = modified_angle > (float)Math.PI ? modified_angle - (2.0f * (float)Math.PI) : modified_angle;
456
return modified_angle;
457
}
458
0 commit comments