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

Commit

Permalink
Merge pull request #72 from LimaoC/mitch-remove-aibros
Browse files Browse the repository at this point in the history
ref: deleted ai_bros.py
  • Loading branch information
MitchellJC authored Oct 4, 2024
2 parents fa2b5a7 + 250b3d2 commit 085d404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 87 deletions.
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

0 comments on commit 085d404

Please sign in to comment.