Fun with PWM
0.32
|
UI for motors. More...
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 | |
UI for motors.
def TkMotorManager.TkMotorManager.__init__ | ( | self, | |
parent, | |||
gui, | |||
options | |||
) |
Initializes TkMotorManager object @param parent @param gui @param options
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
def TkMotorManager.TkMotorManager.close | ( | self | ) |
override - remove callbacks if required
def TkMotorManager.TkMotorManager.deleteJoystickAction | ( | self | ) |
view - delete joystick action
def TkMotorManager.TkMotorManager.deleteKeyboardAction | ( | self | ) |
view - delete joystick action
def TkMotorManager.TkMotorManager.deleteMotor | ( | self | ) |
view - delete dc or stepper motor
def TkMotorManager.TkMotorManager.displayGpio | ( | self, | |
parent | |||
) |
partial view - display gpio canvas @param parent Frame @return Frame
def TkMotorManager.TkMotorManager.editControllers | ( | self | ) |
view - list motor controllers
def TkMotorManager.TkMotorManager.editJoystickAction | ( | self | ) |
view - edit joystick action
def TkMotorManager.TkMotorManager.editKeyboardAction | ( | self | ) |
view - edit keyboard action
def TkMotorManager.TkMotorManager.editMotor | ( | self | ) |
view - edit dc or stepper motor
def TkMotorManager.TkMotorManager.getPinInfo | ( | self, | |
number | |||
) |
util - gets data about a given pin @param number int @return dict
def TkMotorManager.TkMotorManager.getUsedPins | ( | self, | |
ignore = [] |
|||
) |
util - get used pins find used pins except those in ignore @param ignore list
def TkMotorManager.TkMotorManager.hidePinData | ( | self, | |
event | |||
) |
util - hide pin data modal @param event
def TkMotorManager.TkMotorManager.isGpioPin | ( | self, | |
number | |||
) |
util - check if default pin usage is gpio avoids reassigning pins used for other peripherals @param number int
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
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
def TkMotorManager.TkMotorManager.keyCapture | ( | self, | |
hex, | |||
ascii | |||
) |
util - captures pressed key @param event
def TkMotorManager.TkMotorManager.listDCMotors | ( | self | ) |
view - list dc motors
def TkMotorManager.TkMotorManager.listStepperMotors | ( | self | ) |
view - list stepper motors
def TkMotorManager.TkMotorManager.OnAddDCMotorClick | ( | self | ) |
action - add dc motor
def TkMotorManager.TkMotorManager.OnAddJoystickActionClick | ( | self | ) |
action - setup joystick action
def TkMotorManager.TkMotorManager.OnAddKeyboardActionClick | ( | self | ) |
action - setup keyboard action
def TkMotorManager.TkMotorManager.OnAddStepperMotorClick | ( | self | ) |
action - add stepper motor
def TkMotorManager.TkMotorManager.OnCaptureJoystickActionClick | ( | self | ) |
action - start joystick action capture
def TkMotorManager.TkMotorManager.OnCaptureKeyboardActionClick | ( | self | ) |
action - triggers key capture
def TkMotorManager.TkMotorManager.OnChangeMixMode | ( | self | ) |
action - change mix mode
def TkMotorManager.TkMotorManager.OnChangeSequence | ( | self | ) |
action - change stepper motor sequence
def TkMotorManager.TkMotorManager.OnDeleteDCMotorClick | ( | self, | |
index = None |
|||
) |
action - delete dc motor
def TkMotorManager.TkMotorManager.OnDeleteJoystickActionClick | ( | self, | |
index | |||
) |
action - delete joystick action dialogue
def TkMotorManager.TkMotorManager.OnDeleteJoystickActionConfirmClick | ( | self, | |
index | |||
) |
action - delete joystick action
def TkMotorManager.TkMotorManager.OnDeleteKeyboardActionClick | ( | self, | |
index | |||
) |
action - display delete keyboard action
def TkMotorManager.TkMotorManager.OnDeleteKeyboardActionConfirmClick | ( | self, | |
index | |||
) |
action - delete keyboard action
def TkMotorManager.TkMotorManager.OnDeleteMotorConfirmClick | ( | self | ) |
action - delete current motor
def TkMotorManager.TkMotorManager.OnDeleteStepperMotorClick | ( | self, | |
index = None |
|||
) |
action - delete stepper motor
def TkMotorManager.TkMotorManager.OnDriveStateChange | ( | self, | |
newstate | |||
) |
action - change drive state of cuurent motor
def TkMotorManager.TkMotorManager.OnDriveTypeChangeClick | ( | self | ) |
action - change dc motor drive type
def TkMotorManager.TkMotorManager.OnEditDCMotorClick | ( | self, | |
index | |||
) |
action - edit dc motor
def TkMotorManager.TkMotorManager.OnEditDCMotorControllersClick | ( | self, | |
index | |||
) |
action - edit dc motor controllers
def TkMotorManager.TkMotorManager.OnEditJoystickActionClick | ( | self, | |
index | |||
) |
action - edit joystick action
def TkMotorManager.TkMotorManager.OnEditKeyboardActionClick | ( | self, | |
index | |||
) |
action - edit existing keyboard action
def TkMotorManager.TkMotorManager.OnEditStepperMotorClick | ( | self, | |
index | |||
) |
action - edit stepper motor
def TkMotorManager.TkMotorManager.OnEditStepperMotorControllersClick | ( | self, | |
index | |||
) |
action - edit stepper motor controllers
def TkMotorManager.TkMotorManager.OnGoToAngleClick | ( | self | ) |
action - turn stepper motor to specified angle
def TkMotorManager.TkMotorManager.OnInvertControllerClick | ( | self | ) |
action - toggle joystick action invert
def TkMotorManager.TkMotorManager.OnJoystickActionDriveModeChange | ( | self | ) |
action - change drive mode
def TkMotorManager.TkMotorManager.OnListDCMotorsClick | ( | self | ) |
action - list dc motors
def TkMotorManager.TkMotorManager.OnListStepperMotorsClick | ( | self | ) |
action - list stepper motors
def TkMotorManager.TkMotorManager.OnOutputOrderRefreshClick | ( | self | ) |
action - refresh stepper motor output order
def TkMotorManager.TkMotorManager.OnSaveJoystickActionClick | ( | self | ) |
action - setup joystick action
def TkMotorManager.TkMotorManager.OnSaveKeyboardActionClick | ( | self | ) |
action - saves a keyboard action
def TkMotorManager.TkMotorManager.OnSaveMotorClick | ( | self | ) |
action - save motor
def TkMotorManager.TkMotorManager.OnStartKeyboardServiceClick | ( | self | ) |
action - start Keyboard service
def TkMotorManager.TkMotorManager.OnToggleEnabled | ( | self | ) |
action - enable / disable motor
def TkMotorManager.TkMotorManager.OnToggleNormalize | ( | self | ) |
action - toggle normalize angle
def TkMotorManager.TkMotorManager.OnZeroAngleClick | ( | self | ) |
action - set zero angle
def TkMotorManager.TkMotorManager.setup | ( | self | ) |
setup gui menu
def TkMotorManager.TkMotorManager.showPinData | ( | self, | |
event | |||
) |
util - display pin data modal @param event
def TkMotorManager.TkMotorManager.updateAngle | ( | self, | |
driveState | |||
) |
util - update angle display
def TkMotorManager.TkMotorManager.updateDeadZone | ( | self | ) |
util - update dead zone ui
def TkMotorManager.TkMotorManager.updateDriveMode | ( | self | ) |
partial view - update drive mode options
def TkMotorManager.TkMotorManager.updateJoystickActionPreview | ( | self | ) |
partial view - update joystick preview display
def TkMotorManager.TkMotorManager.updatePins | ( | self | ) |
util - update pins display