机器人手动控制命令.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SIASUN.Autopilot.Device.Message
  7. {
  8. public class 机器人手动控制命令
  9. {
  10. public const string OperationCode = "5f8";
  11. public 机器人手动控制命令()
  12. {
  13. }
  14. /// <summary>
  15. /// 电机转向
  16. /// </summary>
  17. [Data(BitStart = 48, BitLength = 2, DataType = "binary", Description = "", Sequence = 1)]
  18. public string 电机转向 { get; set; }
  19. /// <summary>
  20. /// 油门电机控制请求
  21. /// </summary>
  22. [Data(BitStart = 56, BitLength = 1, DataType = "binary", Description = "", Sequence = 2)]
  23. public string 油门电机控制请求 { get; set; }
  24. /// <summary>
  25. /// 制动电机控制请求
  26. /// </summary>
  27. [Data(BitStart = 57, BitLength = 1, DataType = "binary", Description = "", Sequence = 3)]
  28. public string 制动电机控制请求 { get; set; }
  29. /// <summary>
  30. /// X轴控制请求
  31. /// </summary>
  32. [Data(BitStart = 58, BitLength = 1, DataType = "binary", Description = "", Sequence = 4)]
  33. public string X轴控制请求 { get; set; }
  34. /// <summary>
  35. /// Y轴控制请求
  36. /// </summary>
  37. [Data(BitStart = 59, BitLength = 1, DataType = "binary", Description = "", Sequence = 5)]
  38. public string Y轴控制请求 { get; set; }
  39. /// <summary>
  40. /// 转向控制请求
  41. /// </summary>
  42. [Data(BitStart = 60, BitLength = 1, DataType = "binary", Description = "", Sequence = 6)]
  43. public string 转向控制请求 { get; set; }
  44. /// <summary>
  45. /// 离合控制请求
  46. /// </summary>
  47. [Data(BitStart = 61, BitLength = 1, DataType = "binary", Description = "", Sequence = 7)]
  48. public string 离合控制请求 { get; set; }
  49. }
  50. }