Files
Tutorial/DiffWheel/DiffWheelM/CartDefinition.cs
T
ruifeng.zhouandCursor 235c6c70ac Add Clumsy plugins and dual-vehicle fleet sync demo.
Restructure into DiffWheel/MultiWheel folders, add DiffWheelC and MultiWheelC with MovementTests, FleetRemote multi-vehicle manual sync, deploy templates, and documentation. Update dependency paths to D:\MDCS\Release and mirror motor feedback in MotorRoutine for simulation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 15:04:55 +08:00

33 lines
868 B
C#

using CartActivator;
namespace DiffWheelM;
[UseManualController(manualController = typeof(Remote))]
[UseLadderLogic(logic = typeof(MotorRoutine), scanInterval = 50)]
public class CartDefinition : CartActivator.CartDefinition
{
[AsUpperIO(desc = "左轮下发速度", timeOutReset = true)]
[Playground]
public float SpeedLeft;
[AsUpperIO(desc = "右轮下发速度", timeOutReset = true)]
[Playground]
public float SpeedRight;
[AsLowerIO(desc = "左轮实际速度")]
[Playground]
public float ActualSpeedLeft;
[AsLowerIO(desc = "右轮实际速度")]
[Playground]
public float ActualSpeedRight;
[AsInitParam(desc = "手动最大轮速(m/s)")]
public float MaxManualSpeed = 0.3f;
public override void Init()
{
Console.WriteLine("[DiffWheelM] Minimal Medulla cart initialized.");
}
}