diff --git a/Manual/7_Midterm_Report.ipynb b/Manual/7_Midterm_Report.ipynb index 5b13478..9fe186c 100644 --- a/Manual/7_Midterm_Report.ipynb +++ b/Manual/7_Midterm_Report.ipynb @@ -1,13 +1,5 @@ { "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "![book header](pictures/header.png)\n", - "[Table of Contents](0_Table_of_Contents.ipynb)" - ] - }, { "cell_type": "markdown", "metadata": {}, diff --git a/student_code/.editorconfig b/student_code/.editorconfig new file mode 100644 index 0000000..e69de29 diff --git a/student_code/kitt_main.py b/student_code/kitt_main.py index 9e3d368..282f78c 100644 --- a/student_code/kitt_main.py +++ b/student_code/kitt_main.py @@ -1,4 +1,5 @@ from serial import Serial +#from Manual.KITT_Simulator.serial_simulator import Serial class KITT: @@ -37,7 +38,7 @@ class KITT: def send_command(self, command): # Send the command string over the serial connection self.serial.write(command) - print(command) + #print(command) def set_speed(self, speed): # Send the motor speed command using send_command diff --git a/student_code/ui.py b/student_code/ui.py index a8eb96f..7f3814f 100644 --- a/student_code/ui.py +++ b/student_code/ui.py @@ -79,7 +79,10 @@ if __name__ == "__main__": def close_btn_func(): car.stop_beacon() car.stop() - car.close() + try: + car.close() + except OSError: + pass root.destroy() close_btn = tk.Button(root, text="Close", command=close_btn_func)