Finished adding all modules

This commit is contained in:
Christen
2026-03-03 19:13:28 -05:00
parent 20480f6eaf
commit 69b3b09ac0
35 changed files with 1068 additions and 71 deletions

View File

@@ -5,6 +5,8 @@ public abstract class ModuleBase : MonoBehaviour
{
public string moduleID { get; set; } = "";
public double angle { get; set; } = 0; // also optional, for Servo/DC angle
public abstract string moduleType { get; }
public abstract string moduleName { get; }
public void SendToControlLibrary(string moduleType, float currentAngle)
{
@@ -18,7 +20,7 @@ public abstract class ModuleBase : MonoBehaviour
TargetAngle = currentAngle
});
}
else if(moduleType == "DC")
else if (moduleType == "DC")
{
string direction = "Forwards";
if (currentAngle < 0)