RoboAide
Project to improve a DIY robotic arm used for mobility assistance
Public Member Functions | Public Attributes | List of all members
ui.Communication.MessageReception Class Reference
Inheritance diagram for ui.Communication.MessageReception:

Public Member Functions

def __init__ (self, mainWindow)
 
def run (self)
 
def stop (self)
 
def setMotorCurrentPosition (self, msg)
 
def setDrawerState (self, msg)
 

Public Attributes

 mainWindow
 
 shouldRun
 
 counter
 
 firstMessage
 

Detailed Description

Class for a thread that handles incoming serial messages

Definition at line 6 of file Communication.py.

Constructor & Destructor Documentation

def ui.Communication.MessageReception.__init__ (   self,
  mainWindow 
)

Definition at line 10 of file Communication.py.

Member Function Documentation

def ui.Communication.MessageReception.run (   self)
run thread

Definition at line 17 of file Communication.py.

def ui.Communication.MessageReception.setDrawerState (   self,
  msg 
)
Update drawer state (open/closed)
:param msg: received message

Definition at line 55 of file Communication.py.

def ui.Communication.MessageReception.setMotorCurrentPosition (   self,
  msg 
)
Method to set the current position of all motors based on the information in the received message
:param msg: received message

Definition at line 42 of file Communication.py.

def ui.Communication.MessageReception.stop (   self)
Method to stop and close the thread

Definition at line 35 of file Communication.py.

Member Data Documentation

ui.Communication.MessageReception.counter

Definition at line 14 of file Communication.py.

ui.Communication.MessageReception.firstMessage

Definition at line 15 of file Communication.py.

ui.Communication.MessageReception.mainWindow

Definition at line 12 of file Communication.py.

ui.Communication.MessageReception.shouldRun

Definition at line 13 of file Communication.py.


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