Matthew's Portfolio
shares.py File Reference

Variables

string shares.dataToSave = 'x'
 
 shares.qLength = const(500)
 define Queues
 
bool shares.overWriteVar = True
 
 shares.time = Queue('I', qLength, thread_protect = True, overwrite = overWriteVar, name = 'time')
 
 shares.xData = Queue('f', qLength, thread_protect = True, overwrite = overWriteVar, name = 'xData')
 
 shares.xDotData = Queue('f', qLength, thread_protect = True, overwrite = overWriteVar, name = 'xDotData')
 
 shares.thYData = Queue('f', qLength, thread_protect = True, overwrite = overWriteVar, name = 'thYData')
 
 shares.thDotYData = Queue('f', qLength, thread_protect = True, overwrite = overWriteVar, name = 'thDotYData')
 
 shares.yData = Queue('f', qLength, thread_protect = True, overwrite = overWriteVar, name = 'yData')
 
 shares.yDotData = Queue('f', qLength, thread_protect = True, overwrite = overWriteVar, name = 'yDotData')
 
 shares.thXData = Queue('f', qLength, thread_protect = True, overwrite = overWriteVar, name = 'thXData')
 
 shares.thDotXData = Queue('f', qLength, thread_protect = True, overwrite = overWriteVar, name = 'thDotXData')
 
 shares.cmd = Queue('I', 10, thread_protect = True, overwrite = overWriteVar, name = 'commands')
 
 shares.dutyX = Share('f', thread_protect = True, name ='dutyX')
 define Shared variables
 
 shares.dutyY = Share('f', thread_protect = True, name ='dutyY')
 
 shares.x = Share('f', thread_protect = True, name ='x')
 
 shares.y = Share('f', thread_protect = True, name ='y')
 
 shares.xDot = Share('f', thread_protect = True, name ='xDot')
 
 shares.yDot = Share('f', thread_protect = True, name ='yDot')
 
 shares.thXE = Share('f', thread_protect = True, name ='thXE')
 
 shares.thYE = Share('f', thread_protect = True, name ='thYE')
 
 shares.thDotXE = Share('f', thread_protect = True, name ='thDotXE')
 
 shares.thDotYE = Share('f', thread_protect = True, name ='thDotYE')
 
 shares.thXI = Share('f', thread_protect = True, name ='thXI')
 
 shares.thYI = Share('f', thread_protect = True, name ='thYI')
 
 shares.thDotXI = Share('f', thread_protect = True, name ='thDotXI')
 
 shares.thDotYI = Share('f', thread_protect = True, name ='thDotYI')
 
 shares.motFault = Share('I', thread_protect = True, name ='motorFault')
 
 shares.zeroEnc = Share('I', thread_protect = True, name = 'zeroEncoders')
 
 shares.ballOn = Share('I', thread_protect = True, name = 'ballOn')
 

Detailed Description


See source code here: text

Author
Ryan McLaughlin
Matthew Frost
Date
Originally created on 05/24/21
Last modified on 05/24/21