Skip to content

Commit

Permalink
kill all
Browse files Browse the repository at this point in the history
  • Loading branch information
SuragNuthulapaty committed Feb 24, 2024
1 parent da3d668 commit ec93cfe
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions code/kill_alll.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import numpy as np
from src import motor as motor_module
import time
from src import led as led_module

MOTOR_OFFSET = 0.65

if __name__ == '__main__':

left_motor = motor_module.Motor({
"pins": {
"speed": 13,
"control1": 5,
"control2": 6
}
})

right_motor = motor_module.Motor({
"pins": {
"speed": 12,
"control1": 7,
"control2": 8
},
})

led1 = led_module.LED({
"pin": 20
})

led2 = led_module.LED({
"pin": 21
})

dt = 0.25
left_motor.stop()
right_motor.stop()
led1.off()
led2.off()
time.sleep(dt)
2 changes: 1 addition & 1 deletion code/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def detectPersonInFrame(frame, modelType: ModelType):

while True:
left_motor.forward(1)
right_motor.forward(0.6)
right_motor.forward(1)
camera.capture()
image_array = camera.image_array
#ret, frame = cap.read()
Expand Down

0 comments on commit ec93cfe

Please sign in to comment.