Hi!
I'm trying to measure x and y positions using the sensor PMW3360. I'm loading the hardware definition file attached below and running the task 'task.py' also attached. Inside my devices folder, I have the code 'sensor.py'.
When I run the task I get the following error, which I'm not sure how to solve. Any help would be greatly appreciated. Thank you very much!
Error: Unable to setup state machine.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "task_file.py", line 16, in <module>
File "devices/_sensor.py", line 368, in __init__
AttributeError: 'MotionDetector_2ch' object has no attribute 'data_channel'
Micropython version: 1.16
pyControl Framework: OK
Transfering hardware definition to pyboard.
Error importing hardware definition:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "hardware_definition.py", line 11, in <module>
File "devices/_sensor.py", line 368, in __init__
AttributeError: 'MotionDetector_2ch' object has no attribute 'data_channel'