Initial commit
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user