执行机构使能请求.cs 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 = "5f2";
  11. public 执行机构使能请求()
  12. {
  13. }
  14. public string GetId
  15. {
  16. get { return OperationCode; }
  17. }
  18. /// <summary>
  19. /// 实际系统控制模式请求
  20. /// </summary>
  21. [Data(BitStart = 32, BitLength = 3, DataType = "binary", Description = "0=自动学习模式;1=手动学习模式;3=人工驾驶模式;4=机器人自检模式;5=机器人调试模式", Sequence = 1)]
  22. public string 实际系统控制模式请求 { get; set; }
  23. /// <summary>
  24. /// 机器人Estop使能
  25. /// </summary>
  26. [Data(BitStart = 40, BitLength = 1, DataType = "binary", Description = "0=Disable;1=Enable", Sequence = 2)]
  27. public string 机器人Estop使能 { get; set; }
  28. /// <summary>
  29. /// 制动急停气泵使能
  30. /// </summary>
  31. [Data(BitStart = 42, BitLength = 1, DataType = "binary", Description = "0=Disable;1=Enable", Sequence = 3)]
  32. public string 制动急停气泵使能 { get; set; }
  33. /// <summary>
  34. /// 系统软急停使能
  35. /// </summary>
  36. [Data(BitStart = 44, BitLength = 1, DataType = "binary", Description = "0=Disable;1=Enable", Sequence = 4)]
  37. public string 系统软急停使能 { get; set; }
  38. /// <summary>
  39. /// 换挡臂Y电机使能
  40. /// </summary>
  41. [Data(BitStart = 48, BitLength = 1, DataType = "binary", Description = "0=Disable;1=Enable", Sequence = 5)]
  42. public string 换挡臂Y电机使能 { get; set; }
  43. /// <summary>
  44. /// 离合电机使能
  45. /// </summary>
  46. [Data(BitStart = 50, BitLength = 1, DataType = "binary", Description = "0=Disable;1=Enable", Sequence = 6)]
  47. public string 离合电机使能 { get; set; }
  48. /// <summary>
  49. /// 油门离合器控制
  50. /// </summary>
  51. [Data(BitStart = 52, BitLength = 2, DataType = "binary", Description = "0=Joint;1=Release;2=无效命令", Sequence = 7)]
  52. public string 油门离合器控制 { get; set; }
  53. /// <summary>
  54. /// 油门电机使能
  55. /// </summary>
  56. [Data(BitStart = 56, BitLength = 1, DataType = "binary", Description = "0=Disable;1=Enable", Sequence = 8)]
  57. public string 油门电机使能 { get; set; }
  58. /// <summary>
  59. /// 制动电机使能
  60. /// </summary>
  61. [Data(BitStart =58, BitLength = 1,DataType = "binary",Description = "0=Disable;1=Enable",Sequence =9)]
  62. public string 制动电机使能 { get; set; }
  63. /// <summary>
  64. /// 转向电机使能
  65. /// </summary>
  66. [Data(BitStart = 60, BitLength = 1, DataType = "binary", Description = "0=Disable;1=Enable", Sequence = 10)]
  67. public string 转向电机使能 { get; set; }
  68. /// <summary>
  69. /// 换挡臂X电机使能
  70. /// </summary>
  71. [Data(BitStart = 62,BitLength = 1, DataType = "binary", Description = "0=Disable;1=Enable", Sequence =11)]
  72. public string 换挡臂X电机使能 { get; set; }
  73. }
  74. }