CanServo/Set Target Position on Multi-Turn Mode/en

From HITEC_HELP
Revision as of 03:19, 18 September 2021 by Choiyh (talk | contribs) (Created page with " Please Read First: * CanServo/Register/Write/en Target = 1000 deg * 1000 deg = 360 x 2 + 280 * 280 deg = 280 * 16384 / 360 = 12743 = 0x31C7 * TURN NEW = 2 = 0x0002 * POS...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Please Read First:

Target = 1000 deg

  • 1000 deg = 360 x 2 + 280
  • 280 deg = 280 * 16384 / 360 = 12743 = 0x31C7
  • TURN NEW = 2 = 0x0002
  • POSITION NEW = 12743 = 0x31C7

Servo's Config:

Please SEND CAN 2.0B PACKET:

  • CAN ID = 0x123
  • DLC = 8
  • DATA
    • 'W' - message type: write 2 register
    • 0x45 - target servo id
    • 0x24 - CanServo/TURN_NEW/en
    • 0x02 - low byte of 0x0002
    • 0x00 - high byte of 0x0002
    • 0x1E - CanServo/POSITION_NEW/en
    • 0xC7 - low byte of 0x31C7
    • 0x31 - high byte of 0x31C7