Hello there,
I am having the problem that my program stops after some seconds, and a few moments later all three LEDs start blinking continously. Then the IDE disconnects, and Windows is showing the error message, a drive could not be recognized.
I am using OpenMV M4 with external power supply and a 8 GB SD Card in it. I am using it as a SPI Slave.
What meaning do the LEDs have, if they blink fast all at the same time? And what could be the error causing this problem?
I’m looking forward to your answers
desireentz
EDIT:
I have another problem too where I don’t know the cause, and maybe those errors are connected.
I sometimes, not always, get the error messages:
AttributeError: ‘(arrow sign)’ object has no attribute ‘find_blobs’
AttributeError: ‘’ object has no attribute ‘possibleLandmarkIDs’
AttributeError: ‘int’ object has no attribute ‘find_blobs’
AttributeError: ‘int’ object has no attribute ‘thereshold’
‘int’ ‘(empty)’ and ‘(arrow sign)’ vary randomly.
In this code:
class BlobAnalyser:
def __init__(self):
#some more code
def findBlobs(self):
global img
img = sensor.snapshot()
allBlobs = img.find_blobs(self.thresholds, pixels_threshold=200, area_threshold=150, merge=True)
self.blobs = []
i = 0
for blob in allBlobs:
i += 1
img.draw_rectangle(blob.rect())
self.blobs.append(blob)
self.sortBlobs()
def findLandmarkCombo(self, bnoAngle, playingTowardsBlue):
self.findBlobs()
self.possibleLandmarkIDs = []
if len(self.blobs) == 0:
return None
for blobIndex in range(len(self.blobs)):
self.possibleLandmarkIDs.append([])
idGiven = [False] * len(self.queue)
#and some more code
#and more functions
This code is executed quite often in an endless loop, and suddenly it throws those errors completely randomly.
One single time I got an error message, could not open E:\discard, unable to read file type (and some file type name, which I cannot remember )
Hope to hear from you!