kuukar-rpi/kuukar/kuukar.py

25 lines
1.0 KiB
Python
Raw Normal View History

2022-11-14 04:14:35 +00:00
from telemetrix_rpi_pico import telemetrix_rpi_pico
import kuukar.kuukar_leds as kuukar_leds
import kuukar.kuukar_collision as kuukar_collision
import kuukar.kuukar_motion as kuukar_motion
import kuukar.kuukar_lcd as kuukar_lcd
import kuukar.kuukar_sensors as kuukar_sensors
import kuukar.kuukar_environment as kuukar_environment
2022-12-11 04:24:46 +00:00
import kuukar.kuukar_cv as kuukar_cv
2022-12-08 14:37:20 +00:00
from kuukar.kuukar_config import SERIAL_MCU
2022-11-14 04:14:35 +00:00
2022-12-08 13:07:29 +00:00
2022-11-14 04:14:35 +00:00
class kuukar:
def __init__(self) -> None:
2022-12-08 13:07:29 +00:00
self.mcu = telemetrix_rpi_pico.TelemetrixRpiPico(
com_port=SERIAL_MCU, sleep_tune=0.001)
2022-12-08 14:36:11 +00:00
self.sensors = kuukar_sensors.sensors(self.mcu)
2022-11-14 04:14:35 +00:00
self.leds = kuukar_leds.leds(self.mcu)
2022-12-08 13:07:29 +00:00
self.motion = kuukar_motion.motion(
2022-12-08 14:39:18 +00:00
self.mcu, self.leds, self.sensors)
2022-11-14 04:14:35 +00:00
self.lcd = kuukar_lcd.lcd(self.motion, self.sensors)
2022-12-08 13:07:29 +00:00
self.environment = kuukar_environment.environment(
self.lcd, self.leds, self.sensors)
self.collision = kuukar_collision.collision(
self.mcu, self.lcd, self.leds)
2022-12-11 04:24:46 +00:00
self.cv = kuukar_cv.cv(self.lcd,self.leds)