Package ckbot :: Module hitec :: Class HiTec
[hide private]
[frames] | no frames]

Class HiTec

source code


Namespace containing useful constants and functions

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
ang2hitec(cls, ang)
Convert CKBot angle values to hitec units
source code
 
hitec2ang(cls, hitec)
Convert hitec units to CKBot angles
source code
Class Variables [hide private]
  CMD_READ_EEPROM = 0xE1
  CMD_WRITE_EEPROM = 0xE2
  CMD_READ_MEMORY = 0XE3
  CMD_WRITE_MEMORY = 0XE4
  CMD_READ_POSITION = 0XE5
  CMD_SET_POSITION = 0XE6
  CMD_GET_ID = 0XE7
  CMD_GET_PULSEWITDTH_VOLTAGE = 0XE8
  CMD_SET_SERVO_SPEED = 0XE9
  CMD_SELECT_CNTRL_PARAMETER = 0XEA
  CMD_GO_STOP = 0XEB
  CMD_RELEASE = 0XEF
  CMD_SPEED = 0XFF
  ID_EADDR = 0x29
  EEPROM_LEN = 0x2D
  SYNC = 0x80
  MAX_POS = 2450
  MIN_POS = 550
  MIN_ANG = -9000
  MAX_ANG = 9000
  SCL = float(MAX_POS-MIN_POS)/(MAX_ANG-MIN_ANG)
  OFS = MAX_POS-MIN_POS/ 2+ MIN_POS
  SYNC_CHR = pack('B', SYNC)
  FRAME_SIZE = 7
Properties [hide private]

Inherited from object: __class__