mirror of
https://github.com/BotChain-Robots/ui.git
synced 2026-07-08 15:07:22 +02:00
Fully added gripper, distance, IMU, and display modules
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user