Compare commits

..

No commits in common. "e4821b3c6fd338170c40570efde6bd87425746a9" and "ded055a7903d5ac77cf57494c939e071531a27fc" have entirely different histories.

3 changed files with 5 additions and 5 deletions

4
app.py
View File

@ -9,8 +9,8 @@ import kuukar.kuukar_environment as kuukar_environment
from kuukar.kuukar_config import SERIAL_MCU, SERIAL_DRV from kuukar.kuukar_config import SERIAL_MCU, SERIAL_DRV
mcu = telemetrix_rpi_pico.TelemetrixRpiPico(com_port=SERIAL_MCU, sleep_tune=0.001) mcu = telemetrix_rpi_pico.TelemetrixRpiPico(com_port=SERIAL_MCU)
drv = telemetrix_rpi_pico.TelemetrixRpiPico(com_port=SERIAL_DRV, sleep_tune=0.001) drv = telemetrix_rpi_pico.TelemetrixRpiPico(com_port=SERIAL_DRV)
sensors = kuukar_sensors.sensors(mcu) sensors = kuukar_sensors.sensors(mcu)
leds = kuukar_leds.leds(mcu) leds = kuukar_leds.leds(mcu)
motion = kuukar_motion.motion(mcu, drv, leds, sensors) motion = kuukar_motion.motion(mcu, drv, leds, sensors)

View File

@ -79,5 +79,5 @@ class leds:
print(leds.__blink_func(self.__get_time(), duration)) print(leds.__blink_func(self.__get_time(), duration))
time.sleep(0.05) time.sleep(0.05)
if self.__get_time() > duration: if self.__get_time() > duration:
self.flashing = False flashing = False
break break

View File

@ -110,7 +110,6 @@ class motion:
while True: while True:
if self.roaming: if self.roaming:
self.__roam_handle() self.__roam_handle()
time.sleep(0.3)
def __roam_handle(self): def __roam_handle(self):
sensitivity = 35 sensitivity = 35
@ -150,4 +149,5 @@ class motion:
self.turn(-turn_speed, 1) self.turn(-turn_speed, 1)
self.drive(drive_speed) self.drive(drive_speed)
if not self.roaming: if not self.roaming:
self.stop() self.stop()
time.sleep(0.3)