Difference between revisions of "CanServo/POSITION-32"

From HITEC_HELP
Jump to navigation Jump to search
Line 1: Line 1:
2 Registers
2 Registers
* Low 2 byte = 0x1A
* Low 2 byte = 0x1A
** Low Word = ( TURN x 16384 + POSITION ) & 0xFFFF;
** Value = ( TURN x 16384 + POSITION ) & 0xFFFF;
* High 2 byte = 0x1C
* High 2 byte = 0x1C
** High Word = ( ( TURN x 16384 + POSITION ) >> 16 ) & 0xFFFF;
** Value = ( ( TURN x 16384 + POSITION ) >> 16 ) & 0xFFFF;

Revision as of 16:23, 29 September 2021

2 Registers

  • Low 2 byte = 0x1A
    • Value = ( TURN x 16384 + POSITION ) & 0xFFFF;
  • High 2 byte = 0x1C
    • Value = ( ( TURN x 16384 + POSITION ) >> 16 ) & 0xFFFF;