You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env python3
from ev3dev.ev3 import *
from time import sleep
mB = LargeMotor('outB')
mC = LargeMotor('outC')
comp = Sensor(address='in1:i2c1', driver='ht-nxt-compass')
t = 0
while t<100:
print (comp.value())
sleep(1)
t +=1
Error:
Traceback (most recent call last):
File "./forward", line 12, in
print (comp.value())
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 1758, in value
self._value[n], value = self.get_attr_int(self._value[n], 'value'+str(n))
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 214, in get_attr_int
attribute, value = self._get_attribute(attribute, name)
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 198, in _get_attribute
raise Exception('Device is not connected')
Exception: Device is not connected
The text was updated successfully, but these errors were encountered:
Kernel version 4.4.87
code:
Error:
Traceback (most recent call last):
File "./forward", line 12, in
print (comp.value())
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 1758, in value
self._value[n], value = self.get_attr_int(self._value[n], 'value'+str(n))
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 214, in get_attr_int
attribute, value = self._get_attribute(attribute, name)
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 198, in _get_attribute
raise Exception('Device is not connected')
Exception: Device is not connected
The text was updated successfully, but these errors were encountered: