mirror of
https://github.com/BotChain-Robots/ui.git
synced 2026-07-08 15:07:22 +02:00
switch from Unity version control to git
This commit is contained in:
19
Assets/Module/AngleChangeModel.cs
Normal file
19
Assets/Module/AngleChangeModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
[System.Serializable]
|
||||
public class ServoCommand
|
||||
{
|
||||
public string ModuleId;
|
||||
public string Type = "Servo";
|
||||
public float TargetAngle;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class DCCommand
|
||||
{
|
||||
public string ModuleId;
|
||||
public string Type = "DC";
|
||||
public float RotateByDegrees;
|
||||
public string Direction; // "Clockwise" or "CounterClockwise"
|
||||
}
|
||||
Reference in New Issue
Block a user