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

@@ -17,11 +17,11 @@ public class TopologyBuilder : MonoBehaviour
[Header("Topology Selection")]
[Tooltip("Set to true to load from JSON file (for local testing). Set to false to use ControlLibrary.")]
public bool useJsonFile = false;
public bool useJsonFile = true;
[Tooltip("When true, angle commands are not sent to native ControlLibrary - use only for local testing without hardware.")]
public bool skipControlLibraryCalls = false;
[Tooltip("JSON file name (without .json) in Resources folder. e.g. 'mockData' or 'mockDataSimple'")]
public string jsonFileName = "mockData";
public string jsonFileName = "mockDataNewConfig";
public static Dictionary<string, GameObject> idToInstance = new();
public static bool _skipControlLibraryCalls = false;
@@ -114,6 +114,10 @@ public class TopologyBuilder : MonoBehaviour
case "DC": return ModuleType.DC_MOTOR;
case "Hub": return ModuleType.SPLITTER;
case "Battery": return ModuleType.BATTERY;
case "Gripper": return ModuleType.GRIPPER;
case "Display": return ModuleType.DISPLAY;
case "Distance": return ModuleType.DISTANCE_SENSOR;
case "IMU": return ModuleType.IMU;
default: return ModuleType.SPLITTER;
}
}