ADEEPT AWR Wheeled Robot Manual page 88

4wd smart robot kit compatible with raspberry pi 4 3 model b+ b, opencv target tracking
Table of Contents

Advertisement

79
self.colorBreathB = B_input
self.resume()
def
breathProcessing(self):
'''
Specific realization method of breathing lamp
'''
while
self.lightMode == 'breath':
'''
All lights gradually brighten
'''
for
i
if
self.setColor(self.colorBreathR*i/self.breathSteps,
time.sleep(0.03)
'''
All lights are getting darker
'''
for
i
if
self.setColor(self.colorBreathR-(self.colorBreathR*i/self.breathSteps),
time.sleep(0.03)
def
lightChange(self):
'''
This function is used to select the task to perform
'''
if
self.lightMode == 'none':
self.pause()
elif
self.lightMode == 'police':
self.policeProcessing()
elif
self.lightMode == 'breath':
self.breathProcessing()
in
range(0,self.breathSteps):
self.lightMode != 'breath':
break
self.colorBreathG*i/self.breathSteps,
self.colorBreathB*i/self.breathSteps)
in
range(0,self.breathSteps):
self.lightMode != 'breath':
break
self.colorBreathG-(self.colorBreathG*i/self.breathSteps),
self.colorBreathB-(self.colorBreathB*i/self.breathSteps))

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AWR Adeept Wheeled Robot and is the answer not in the manual?

This manual is also suitable for:

Picar-b

Table of Contents

Save PDF