Update
This commit is contained in:
parent
d1e385a2a1
commit
1d91792c56
35 changed files with 2275 additions and 237 deletions
|
@ -1,4 +1,5 @@
|
|||
import compLib.CompLib_pb2 as CompLib_pb2
|
||||
|
||||
from compLib.CompLibClient import CompLibClient
|
||||
|
||||
|
||||
|
@ -10,7 +11,7 @@ class IRSensor(object):
|
|||
def read_all():
|
||||
"""Read all IR sensors at once.
|
||||
|
||||
:return: Tuple of all current ir sensors
|
||||
:return: Array of all current ir sensors
|
||||
"""
|
||||
request = CompLib_pb2.IRSensorsReadAllRequest()
|
||||
request.header.message_type = request.DESCRIPTOR.full_name
|
||||
|
@ -18,7 +19,7 @@ class IRSensor(object):
|
|||
response = CompLib_pb2.IRSensorsReadAllResponse()
|
||||
response.ParseFromString(CompLibClient.send(request.SerializeToString(), request.ByteSize()))
|
||||
|
||||
return tuple(i for i in response.data)
|
||||
return [i for i in response.data]
|
||||
|
||||
@staticmethod
|
||||
def enable():
|
||||
|
|
Reference in a new issue