Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

ref: deleted ai_bros.py #72

Merged
merged 3 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 0 additions & 80 deletions client/drivers/ai_bros.py

This file was deleted.

9 changes: 2 additions & 7 deletions client/drivers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from datetime import datetime, timedelta

from data_structures import ControlledData, HardwareComponents, Picture, Face
from ai_bros import *
from data.routines import *


Expand Down Expand Up @@ -194,9 +193,7 @@ def attempt_login() -> ControlledData:
hardware.display.show()
sleep_ms(LOGIN_TAKE_PICTURE_INTERVAL)
continue
face = ai_bros_face_recogniser(
picture.underlying_picture
) # TODO: This should be an external API call.
face = Face.make_matched(1)
if face.failed:
print("<!> AI has failed us") # DEBUG
hardware.display.fill(0)
Expand Down Expand Up @@ -418,9 +415,7 @@ def handle_posture_monitoring(auspost: ControlledData) -> bool:
if now > auspost.get_last_snapshot_time() + GET_POSTURE_DATA_TIMEOUT:
# TODO: The ai_bros_get_posture_data() call might fail once it's implemented properly.
# If it does, we need to handle it properly.
auspost.accept_new_posture_data(
ai_bros_get_posture_data(auspost.get_last_snapshot_time())
)
auspost.accept_new_posture_data([])
# DEBUG:
auspost.accept_new_posture_data([auspost.DEBUG_get_next_posture_graph_value()])
# :DEBUG
Expand Down