bug in ezchronos config register calibration

11 views
Skip to first unread message

Paolo Di Prodi

unread,
May 28, 2012, 8:39:57 AM5/28/12
to pans...@googlegroups.com
Hello,
today I feel really proficient in finding bugs!
I was setting the Register 11: Calibration -> Temperature on the ezChronos  and I get this:

Traceback (most recent call last):
  File "/home/robomotic/CodeRepository/BaseStation/Seismo/pyswapdmtgui/src/validators.py", line 91, in TransferFromWindow
    self.attr[self.index].setValue(tmpVal)
  File "/usr/local/lib/python2.7/dist-packages/swap/protocol/SwapParam.py", line 162, in setValue
    self.value = SwapValue(res, length)
  File "/usr/local/lib/python2.7/dist-packages/swap/protocol/SwapValue.py", line 175, in __init__
    val = (res >> (8 * (length-1-i))) & 0xFF
TypeError: unsupported operand type(s) for >>: 'float' and 'int'


--
Dr. Paolo Di Prodi
Robomotic ltd
www.robomotic.com

Address:
CIDS Incubator, Room 203
University Avenue
Thomson Building
Glasgow, G12 8QQ
UK

This email and any attachments are confidential and should not be read, copied or disclosed to anyone other than the intended recipient without the permission of the sender. Robomotic Limited does not accept liability for any loss or damage which may result from this email or any attachment, or for errors or omissions arising after it was sent. The views expressed in this email are those of the author and do not necessarily reflect the views of Robomotic Limited. If you have received this message in error, please notify the sender immediately and delete the material from any computer.

Robomotic Ltd is a limited company registered in Scotland no. SC389778
bugsettemperature.png

Daniel Berenguer

unread,
May 28, 2012, 6:17:54 PM5/28/12
to pans...@googlegroups.com
pyswap did include some changes without taking SWAPdmt into account.
Solved the problem directly on pyswap (already updated on SVN) without
having to touch anything on SWAPdmt.

Thanks Paolo!
Reply all
Reply to author
Forward
0 new messages