Files
Denso/srcs/RobotNet10/RobotApp/RobotNet10.RobotApp/Motion/PS5ControllerConfiguration.cs
2026-07-03 16:31:37 +07:00

44 lines
1.2 KiB
C#

namespace RobotNet10.RobotApp.Motion;
/// <summary>
/// Cấu hình cho PS5ControllerService
/// </summary>
public class PS5ControllerConfiguration
{
/// <summary>
/// Vận tốc khi nhấn R1 (m/s)
/// </summary>
public double R1Velocity { get; set; } = 0.3;
/// <summary>
/// Vận tốc khi nhấn R2 (m/s)
/// </summary>
public double R2Velocity { get; set; } = 0.6;
/// <summary>
/// Vận tốc khi nhấn L1 (m/s)
/// </summary>
public double L1Velocity { get; set; } = 0.9;
/// <summary>
/// Vận tốc khi nhấn L2 (m/s)
/// </summary>
public double L2Velocity { get; set; } = 1.2;
/// <summary>
/// Vận tốc góc tối đa khi quay (rad/s)
/// </summary>
public double MaxAngularVelocity { get; set; } = 1.0;
/// <summary>
/// Tần suất cập nhật vận tốc (Hz)
/// </summary>
public double UpdateRate { get; set; } = 20.0;
/// <summary>
/// ID của gamepad để sử dụng (0 = gamepad đầu tiên). Nếu null, sẽ sử dụng gamepad đầu tiên tìm thấy
/// </summary>
public int? GamepadIndex { get; set; } = null;
}