Public Member Functions | Public Attributes | List of all members
korg_nanokontrol.korg.KorgNanoKontrol Class Reference
Inheritance diagram for korg_nanokontrol.korg.KorgNanoKontrol:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def clip (self, min, max, val)
 
def finish (self)
 
def guess_mode (self, data)
 
def pub_data (self, data)
 
def set_mode (self, mode)
 
def update (self)
 

Public Attributes

 center_axis
 
 controller
 
 mode
 
 modes
 
 msg
 
 pub
 

Detailed Description

Class to connect to and publish the Korg NanoKontrol midi device
    as a ros joystick

Definition at line 18 of file korg.py.

Constructor & Destructor Documentation

def korg_nanokontrol.korg.KorgNanoKontrol.__init__ (   self)
connect to midi device and set up ros

Definition at line 24 of file korg.py.

Member Function Documentation

def korg_nanokontrol.korg.KorgNanoKontrol.clip (   self,
  min,
  max,
  val 
)

Definition at line 110 of file korg.py.

def korg_nanokontrol.korg.KorgNanoKontrol.finish (   self)

Definition at line 59 of file korg.py.

def korg_nanokontrol.korg.KorgNanoKontrol.guess_mode (   self,
  data 
)
Given data, try to guess the mode we are in

Definition at line 82 of file korg.py.

def korg_nanokontrol.korg.KorgNanoKontrol.pub_data (   self,
  data 
)
Given data, interpret into Joy message and publish

Definition at line 117 of file korg.py.

def korg_nanokontrol.korg.KorgNanoKontrol.set_mode (   self,
  mode 
)
Set up the message for the correct mode

Definition at line 73 of file korg.py.

def korg_nanokontrol.korg.KorgNanoKontrol.update (   self)
run the update hook (poll the midi controller, publish the message)

Definition at line 63 of file korg.py.

Member Data Documentation

korg_nanokontrol.korg.KorgNanoKontrol.center_axis

Definition at line 52 of file korg.py.

korg_nanokontrol.korg.KorgNanoKontrol.controller

Definition at line 39 of file korg.py.

korg_nanokontrol.korg.KorgNanoKontrol.mode

Definition at line 55 of file korg.py.

korg_nanokontrol.korg.KorgNanoKontrol.modes

Definition at line 49 of file korg.py.

korg_nanokontrol.korg.KorgNanoKontrol.msg

Definition at line 54 of file korg.py.

korg_nanokontrol.korg.KorgNanoKontrol.pub

Definition at line 57 of file korg.py.


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


korg_nanokontrol
Author(s): Austin Hendrix, Allison Thackston
autogenerated on Mon Jun 10 2019 13:45:15