Difference between revisions of "CanServo/Set Target Position on Servo Mode"

From HITEC_HELP
Jump to navigation Jump to search
 
Line 14: Line 14:
** 'w' - message type: write 1 register
** 'w' - message type: write 1 register
** 0x45 - target servo id
** 0x45 - target servo id
** 0x1E - address of [[CanServo/POSITION_NEW]]
** 0x1E - address of register [[CanServo/POSITION_NEW]]
** 0xAA - low byte of 0x2AAA
** 0xAA - low byte of 0x2AAA
** 0x2A - high byte of 0x2AAA
** 0x2A - high byte of 0x2AAA

Latest revision as of 15:44, 18 September 2021

목표 위치가 +60 deg 라고 하면:

  • POSITION_NEW = 8192 + 60 * 16384 / 360 = 0x2AAA

서보 설정이 다음과 같다고 가정하면:

다음과 같은 CAN 2.0B 패킷을 발신합니다:

  • CAN ID = 0x123
  • DLC = 5
  • DATA
    • 'w' - message type: write 1 register
    • 0x45 - target servo id
    • 0x1E - address of register CanServo/POSITION_NEW
    • 0xAA - low byte of 0x2AAA
    • 0x2A - high byte of 0x2AAA

자세한 내용은 다음 페이지를 읽어주시기 바랍니다: