Fun with PWM  0.32
TkMotorManager.TkMotorManager Class Reference

UI for motors. More...

Inheritance diagram for TkMotorManager.TkMotorManager:
TkBlock.TkPage TkBlock.TkBlock

Public Member Functions

def __init__ (self, parent, gui, options)
 
def setup (self)
 
def listDCMotors (self)
 
def listStepperMotors (self)
 
def editMotor (self)
 
def displayGpio (self, parent)
 
def deleteMotor (self)
 
def editControllers (self)
 
def editJoystickAction (self)
 
def updateDriveMode (self)
 
def updateJoystickActionPreview (self)
 
def deleteJoystickAction (self)
 
def editKeyboardAction (self)
 
def deleteKeyboardAction (self)
 
def OnListDCMotorsClick (self)
 
def OnListStepperMotorsClick (self)
 
def OnAddDCMotorClick (self)
 
def OnEditDCMotorClick (self, index)
 
def OnAddStepperMotorClick (self)
 
def OnEditStepperMotorClick (self, index)
 
def OnDriveStateChange (self, newstate)
 
def OnDriveTypeChangeClick (self)
 
def OnOutputOrderRefreshClick (self)
 
def OnToggleEnabled (self)
 
def OnToggleNormalize (self)
 
def OnChangeSequence (self)
 
def OnGoToAngleClick (self)
 
def OnZeroAngleClick (self)
 
def OnSaveMotorClick (self)
 
def OnDeleteDCMotorClick (self, index=None)
 
def OnDeleteStepperMotorClick (self, index=None)
 
def OnDeleteMotorConfirmClick (self)
 
def OnEditDCMotorControllersClick (self, index)
 
def OnEditStepperMotorControllersClick (self, index)
 
def OnAddJoystickActionClick (self)
 
def OnEditJoystickActionClick (self, index)
 
def OnDeleteJoystickActionClick (self, index)
 
def OnDeleteJoystickActionConfirmClick (self, index)
 
def OnCaptureJoystickActionClick (self)
 
def OnInvertControllerClick (self)
 
def OnJoystickActionDriveModeChange (self)
 
def OnChangeMixMode (self)
 
def OnSaveJoystickActionClick (self)
 
def OnAddKeyboardActionClick (self)
 
def OnEditKeyboardActionClick (self, index)
 
def OnCaptureKeyboardActionClick (self)
 
def OnSaveKeyboardActionClick (self)
 
def OnDeleteKeyboardActionClick (self, index)
 
def OnDeleteKeyboardActionConfirmClick (self, index)
 
def OnStartKeyboardServiceClick (self)
 
def updateAngle (self, driveState)
 
def updatePins (self)
 
def showPinData (self, event)
 
def hidePinData (self, event)
 
def updateDeadZone (self)
 
def captureJoystickAction (self, dev_num, signal, number, name, value, init)
 
def joystickActionPreviewCallback (self, dev_num, signal, number, name, value, init)
 
def keyCapture (self, hex, ascii)
 
def getUsedPins (self, ignore=[])
 
def isGpioPin (self, number)
 
def isPinAvailable (self, number)
 
def getPinInfo (self, number)
 
def close (self)
 
- Public Member Functions inherited from TkBlock.TkPage
def __init__ (self, parent, gui, options)
 
def open (self)
 
- Public Member Functions inherited from TkBlock.TkBlock
def __init__ (self, parent, gui, options)
 
def setup (self)
 
def initWidget (self)
 
def addMenu (self, menu, label="-")
 
def open (self)
 
def close (self)
 
def genericView (self, parent, value)
 
def numberView (self, parent, value)
 
def stringView (self, parent, value)
 
def dictView (self, parent, value)
 
def iterView (self, parent, value)
 

Public Attributes

 gpioInfo
 
 specification
 
 shapes
 
 kbthread
 
 gridrow
 
 motor
 
 controller
 
 keycaptured
 
 capture
 
- Public Attributes inherited from TkBlock.TkBlock
 gui
 
 parent
 
 height
 
 variables
 
 notifier
 
 colours
 
 fonts
 
 images
 
 wrap
 
 canvas
 
 widget
 
 yScroller
 
 xScroller
 
 widgets
 
 gridrow
 

Detailed Description

UI for motors.

Constructor & Destructor Documentation

§ __init__()

def TkMotorManager.TkMotorManager.__init__ (   self,
  parent,
  gui,
  options 
)
Initializes TkMotorManager object

@param parent
@param gui
@param options

Member Function Documentation

§ captureJoystickAction()

def TkMotorManager.TkMotorManager.captureJoystickAction (   self,
  dev_num,
  signal,
  number,
  name,
  value,
  init 
)
util - capture a joystick action
double tap a button or move axis over 0.5

@param dev_num
@param signal
@param number
@param name
@param value
@param init

§ close()

def TkMotorManager.TkMotorManager.close (   self)
override - remove callbacks if required

§ deleteJoystickAction()

def TkMotorManager.TkMotorManager.deleteJoystickAction (   self)
view - delete joystick action

§ deleteKeyboardAction()

def TkMotorManager.TkMotorManager.deleteKeyboardAction (   self)
view - delete joystick action

§ deleteMotor()

def TkMotorManager.TkMotorManager.deleteMotor (   self)
view - delete dc or stepper motor

§ displayGpio()

def TkMotorManager.TkMotorManager.displayGpio (   self,
  parent 
)
partial view - display gpio canvas

@param parent Frame

@return Frame

§ editControllers()

def TkMotorManager.TkMotorManager.editControllers (   self)
view - list motor controllers

§ editJoystickAction()

def TkMotorManager.TkMotorManager.editJoystickAction (   self)
view - edit joystick action

§ editKeyboardAction()

def TkMotorManager.TkMotorManager.editKeyboardAction (   self)
view - edit keyboard action

§ editMotor()

def TkMotorManager.TkMotorManager.editMotor (   self)
view - edit dc or stepper motor

§ getPinInfo()

def TkMotorManager.TkMotorManager.getPinInfo (   self,
  number 
)
util - gets data about a given pin

@param number int

@return dict

§ getUsedPins()

def TkMotorManager.TkMotorManager.getUsedPins (   self,
  ignore = [] 
)
util - get used pins
find used pins except those in ignore

@param ignore list

§ hidePinData()

def TkMotorManager.TkMotorManager.hidePinData (   self,
  event 
)
util - hide pin data modal

@param event

§ isGpioPin()

def TkMotorManager.TkMotorManager.isGpioPin (   self,
  number 
)
util - check if default pin usage is gpio
avoids reassigning pins used for other peripherals

@param number int

§ isPinAvailable()

def TkMotorManager.TkMotorManager.isPinAvailable (   self,
  number 
)
util - check if a pin is available for gpio usage
returns False if not a gpio pin or it is already occupied

@param number int

§ joystickActionPreviewCallback()

def TkMotorManager.TkMotorManager.joystickActionPreviewCallback (   self,
  dev_num,
  signal,
  number,
  name,
  value,
  init 
)
util - joystick action preview callback
update the ui for the joystick action

@param dev_num
@param signal
@param number
@param name
@param value
@param init

§ keyCapture()

def TkMotorManager.TkMotorManager.keyCapture (   self,
  hex,
  ascii 
)
util - captures pressed key

@param event

§ listDCMotors()

def TkMotorManager.TkMotorManager.listDCMotors (   self)
view - list dc motors

§ listStepperMotors()

def TkMotorManager.TkMotorManager.listStepperMotors (   self)
view - list stepper motors

§ OnAddDCMotorClick()

def TkMotorManager.TkMotorManager.OnAddDCMotorClick (   self)
action - add dc motor

§ OnAddJoystickActionClick()

def TkMotorManager.TkMotorManager.OnAddJoystickActionClick (   self)
action - setup joystick action

§ OnAddKeyboardActionClick()

def TkMotorManager.TkMotorManager.OnAddKeyboardActionClick (   self)
action - setup keyboard action

§ OnAddStepperMotorClick()

def TkMotorManager.TkMotorManager.OnAddStepperMotorClick (   self)
action - add stepper motor

§ OnCaptureJoystickActionClick()

def TkMotorManager.TkMotorManager.OnCaptureJoystickActionClick (   self)
action - start joystick action capture

§ OnCaptureKeyboardActionClick()

def TkMotorManager.TkMotorManager.OnCaptureKeyboardActionClick (   self)
action - triggers key capture

§ OnChangeMixMode()

def TkMotorManager.TkMotorManager.OnChangeMixMode (   self)
action - change mix mode

§ OnChangeSequence()

def TkMotorManager.TkMotorManager.OnChangeSequence (   self)
action - change stepper motor sequence

§ OnDeleteDCMotorClick()

def TkMotorManager.TkMotorManager.OnDeleteDCMotorClick (   self,
  index = None 
)
action - delete dc motor

§ OnDeleteJoystickActionClick()

def TkMotorManager.TkMotorManager.OnDeleteJoystickActionClick (   self,
  index 
)
action - delete joystick action dialogue

§ OnDeleteJoystickActionConfirmClick()

def TkMotorManager.TkMotorManager.OnDeleteJoystickActionConfirmClick (   self,
  index 
)
action - delete joystick action

§ OnDeleteKeyboardActionClick()

def TkMotorManager.TkMotorManager.OnDeleteKeyboardActionClick (   self,
  index 
)
action - display delete keyboard action

§ OnDeleteKeyboardActionConfirmClick()

def TkMotorManager.TkMotorManager.OnDeleteKeyboardActionConfirmClick (   self,
  index 
)
action - delete keyboard action

§ OnDeleteMotorConfirmClick()

def TkMotorManager.TkMotorManager.OnDeleteMotorConfirmClick (   self)
action - delete current motor

§ OnDeleteStepperMotorClick()

def TkMotorManager.TkMotorManager.OnDeleteStepperMotorClick (   self,
  index = None 
)
action - delete stepper motor

§ OnDriveStateChange()

def TkMotorManager.TkMotorManager.OnDriveStateChange (   self,
  newstate 
)
action - change drive state of cuurent motor

§ OnDriveTypeChangeClick()

def TkMotorManager.TkMotorManager.OnDriveTypeChangeClick (   self)
action - change dc motor drive type

§ OnEditDCMotorClick()

def TkMotorManager.TkMotorManager.OnEditDCMotorClick (   self,
  index 
)
action - edit dc motor

§ OnEditDCMotorControllersClick()

def TkMotorManager.TkMotorManager.OnEditDCMotorControllersClick (   self,
  index 
)
action - edit dc motor controllers

§ OnEditJoystickActionClick()

def TkMotorManager.TkMotorManager.OnEditJoystickActionClick (   self,
  index 
)
action - edit joystick action

§ OnEditKeyboardActionClick()

def TkMotorManager.TkMotorManager.OnEditKeyboardActionClick (   self,
  index 
)
action - edit existing keyboard action

§ OnEditStepperMotorClick()

def TkMotorManager.TkMotorManager.OnEditStepperMotorClick (   self,
  index 
)
action - edit stepper motor

§ OnEditStepperMotorControllersClick()

def TkMotorManager.TkMotorManager.OnEditStepperMotorControllersClick (   self,
  index 
)
action - edit stepper motor controllers

§ OnGoToAngleClick()

def TkMotorManager.TkMotorManager.OnGoToAngleClick (   self)
action - turn stepper motor to specified angle

§ OnInvertControllerClick()

def TkMotorManager.TkMotorManager.OnInvertControllerClick (   self)
action - toggle joystick action invert

§ OnJoystickActionDriveModeChange()

def TkMotorManager.TkMotorManager.OnJoystickActionDriveModeChange (   self)
action - change drive mode

§ OnListDCMotorsClick()

def TkMotorManager.TkMotorManager.OnListDCMotorsClick (   self)
action - list dc motors

§ OnListStepperMotorsClick()

def TkMotorManager.TkMotorManager.OnListStepperMotorsClick (   self)
action - list stepper motors

§ OnOutputOrderRefreshClick()

def TkMotorManager.TkMotorManager.OnOutputOrderRefreshClick (   self)
action - refresh stepper motor output order

§ OnSaveJoystickActionClick()

def TkMotorManager.TkMotorManager.OnSaveJoystickActionClick (   self)
action - setup joystick action

§ OnSaveKeyboardActionClick()

def TkMotorManager.TkMotorManager.OnSaveKeyboardActionClick (   self)
action - saves a keyboard action

§ OnSaveMotorClick()

def TkMotorManager.TkMotorManager.OnSaveMotorClick (   self)
action - save motor

§ OnStartKeyboardServiceClick()

def TkMotorManager.TkMotorManager.OnStartKeyboardServiceClick (   self)
action - start Keyboard service

§ OnToggleEnabled()

def TkMotorManager.TkMotorManager.OnToggleEnabled (   self)
action - enable / disable motor

§ OnToggleNormalize()

def TkMotorManager.TkMotorManager.OnToggleNormalize (   self)
action - toggle normalize angle

§ OnZeroAngleClick()

def TkMotorManager.TkMotorManager.OnZeroAngleClick (   self)
action - set zero angle

§ setup()

def TkMotorManager.TkMotorManager.setup (   self)
setup gui menu

§ showPinData()

def TkMotorManager.TkMotorManager.showPinData (   self,
  event 
)
util - display pin data modal

@param event

§ updateAngle()

def TkMotorManager.TkMotorManager.updateAngle (   self,
  driveState 
)
util - update angle display

§ updateDeadZone()

def TkMotorManager.TkMotorManager.updateDeadZone (   self)
util - update dead zone ui

§ updateDriveMode()

def TkMotorManager.TkMotorManager.updateDriveMode (   self)
partial view - update drive mode options

§ updateJoystickActionPreview()

def TkMotorManager.TkMotorManager.updateJoystickActionPreview (   self)
partial view - update joystick preview display

§ updatePins()

def TkMotorManager.TkMotorManager.updatePins (   self)
util - update pins display

The documentation for this class was generated from the following file: