mirror of
https://github.com/BotChain-Robots/ui.git
synced 2026-07-08 15:07:22 +02:00
Added control library call in IK mode + camera focus on discover
This commit is contained in:
@@ -25,10 +25,10 @@ public abstract class ServoMotorModule : ModuleBase
|
||||
|
||||
public abstract void InitialSetAngle(float angle);
|
||||
|
||||
public void SetAngleAndSendControlLibrary(float angle)
|
||||
public void SetAngleAndSendControlLibrary(float angle, float minChangeDegrees = 0.1f)
|
||||
{
|
||||
SetAngle(angle);
|
||||
if (Mathf.Abs(currentAngle - lastSentAngle) > 0.1f)
|
||||
if (Mathf.Abs(currentAngle - lastSentAngle) > minChangeDegrees)
|
||||
{
|
||||
SendToControlLibrary(servoType, currentAngle);
|
||||
lastSentAngle = currentAngle;
|
||||
|
||||
Reference in New Issue
Block a user