You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.3 KiB

7 years ago
7 years ago
7 years ago
  1. 0 DSHOT_CMD_MOTOR_STOP,
  2. 1 DSHOT_CMD_BEEP1, // Wait length of beep plus 100ms before next command
  3. 2 DSHOT_CMD_BEEP2, // Wait length of beep plus 100ms before next command
  4. 3 DSHOT_CMD_BEEP3, // Wait length of beep plus 100ms before next command
  5. 4 DSHOT_CMD_BEEP4, // Wait length of beep plus 100ms before next command
  6. 5 DSHOT_CMD_BEEP5, // Wait length of beep plus 100ms before next command
  7. 6 DSHOT_CMD_ESC_INFO, // Wait at least 10ms before next command
  8. 7 DSHOT_CMD_SPIN_DIRECTION_1, // Need 9x
  9. 8 DSHOT_CMD_SPIN_DIRECTION_2, // Need 9x
  10. 9 DSHOT_CMD_3D_MODE_OFF, // Need 9x
  11. 10 DSHOT_CMD_3D_MODE_ON, // Need 9x
  12. 11 DSHOT_CMD_SETTINGS_REQUEST, // Currently not implemented
  13. 12 DSHOT_CMD_SAVE_SETTINGS, // Need 9x
  14. 20 DSHOT_CMD_SPIN_DIRECTION_NORMAL, // Need 9x
  15. 21 DSHOT_CMD_SPIN_DIRECTION_REVERSED, // Need 9x
  16. 22 DSHOT_CMD_LED0_ON,
  17. 23 DSHOT_CMD_LED1_ON,
  18. 24 DSHOT_CMD_LED2_ON,
  19. 25 DSHOT_CMD_LED3_ON,
  20. 26 DSHOT_CMD_LED0_OFF,
  21. 27 DSHOT_CMD_LED1_OFF,
  22. 28 DSHOT_CMD_LED2_OFF,
  23. 29 DSHOT_CMD_LED3_OFF,
  24. DSHOT_CMD_MAX = 47
  25. ESC_INFO layout 1 (KISS):
  26. 1-12: ESC SN
  27. 13: EEprom/version (1.01 == 101)
  28. 14, bit 8-6: ESC Type
  29. 14, bit 5-1: ESC sub version (a-z)
  30. 15: crc (same crc as is used for telemetry)
  31. ESC_INFO layout 2 (KISS):
  32. 1-12: ESC SN
  33. 13: now idicates if the new response is used. so if its 255 it is the new version.
  34. 14: EEprom/version (1.01 == 101)
  35. 15: ESC type (0-0x7F for KISS)
  36. 16: ESC sub version letter
  37. 17: rotation direction reversed by dshot command or not (1:0)
  38. 18: 3D mode active or not (1:0)
  39. 19: unused for now.. maybe used for new settings
  40. 20: unused for now.. maybe used for new settings
  41. 21: crc (same crc as is used for telemetry)
  42. ESC_INFO layout 3 (BLHeli_32):
  43. 1-12: ESC SN
  44. 13: Indicates which response version is used. 254 is for BLHeli_32 version.
  45. 14: FW revision (32 = 32)
  46. 15: FW sub revision (10 = xx.1, 11 = xx.11)
  47. 16: Unused
  48. 17: Rotation direction reversed by dshot command or not (1:0)
  49. 18: 3D mode active or not (1:0)
  50. 19: Low voltage protection limit [0.1V] (255 = not capable, 0 = disabled)
  51. 20: Current protection limit [A] (255 = not capable, 0 = disabled)
  52. 21: LED0 on or not (1:0, 255 = LED0 not present)
  53. 22: LED1 on or not (1:0, 255 = LED1 not present)
  54. 23: LED2 on or not (1:0, 255 = LED2 not present)
  55. 24: LED3 on or not (1:0, 255 = LED3 not present)
  56. 25-31: Unused
  57. 32-63: ESC signature
  58. 64: CRC (same CRC as is used for telemetry)