Fully added gripper, distance, IMU, and display modules

This commit is contained in:
Christen
2026-02-28 21:39:36 -05:00
parent fd5d41f645
commit 6b2270381d
105 changed files with 40782 additions and 1261 deletions

View File

@@ -6,32 +6,12 @@ using UnityEngine.UI;
public class DCMotorModule : ModuleBase
{
private static DCMotorControlPanel motorControlPanel;
private static ControlPanel motorControlPanel;
public Transform motorShaft;
public float rotationSpeed = 90f;
private float targetPosition = 0f;
public void Start()
{
if (motorControlPanel == null)
{
motorControlPanel = FindObjectOfType<DCMotorControlPanel>(true);
}
}
public override void OnSelect()
{
if (motorControlPanel != null)
motorControlPanel.Initialize(this);
}
public override void DeSelect()
{
if (motorControlPanel != null)
motorControlPanel.HidePanel();
}
public void Rotate(float degrees, int direction)
{
float rotation = degrees * direction;