update motor

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-07-13 16:28:07 +07:00
parent bccfb156d7
commit dddf3fc594
9 changed files with 2142 additions and 48 deletions

View File

@@ -0,0 +1,16 @@
namespace RobotNet10.RobotApp.Devices;
/// <summary>
/// Khả năng gửi vận tốc của hai trục dùng chung một node CAN trong MỘT khung duy nhất,
/// để hai bánh nhận lệnh đồng thời (vd. ZLAC8015D dual-hub).
/// Driver một-trục-một-node không cần implement interface này.
/// </summary>
public interface IDualAxisVelocityCommand
{
/// <summary>
/// Gửi vận tốc cả hai trục cùng lúc. Đơn vị counts/s, đã bao gồm hiệu chỉnh IsReversed.
/// Trả false nếu không gửi được theo cơ chế gộp (vd. RPDO chưa cấu hình) — caller nên
/// fallback về cách gửi từng trục.
/// </summary>
Task<bool> TrySetBothTargetVelocitiesAsync(int leftCountsPerSec, int rightCountsPerSec, CancellationToken ct = default);
}