Added comments
This commit is contained in:
@@ -1,6 +1,14 @@
|
|||||||
|
#####################################
|
||||||
|
# Main.py #
|
||||||
|
# File for running all MISSIONS #
|
||||||
|
# together #
|
||||||
|
# #
|
||||||
|
#####################################
|
||||||
|
|
||||||
import bioglow_helpers as helper
|
import bioglow_helpers as helper
|
||||||
import bioglow_settings as robot
|
import bioglow_robot_settings as robot
|
||||||
import bioglow_mission_3_4_5 as Run_1
|
import bioglow_mission_3_4_5 as Run_1 # import here the name of files containing mission runs Run_1 for run 1,
|
||||||
|
# Run_2 for run 2, and so on..
|
||||||
|
|
||||||
# Function to classify color based on HSV
|
# Function to classify color based on HSV
|
||||||
def detect_color(h, s, v, reflected):
|
def detect_color(h, s, v, reflected):
|
||||||
@@ -38,7 +46,7 @@ async def main():
|
|||||||
#print(color)
|
#print(color)
|
||||||
print(f"button pressed: {pressed}")
|
print(f"button pressed: {pressed}")
|
||||||
|
|
||||||
|
#TODO: Add the solve_missions() function of the run number for each color here
|
||||||
if color == "Green":
|
if color == "Green":
|
||||||
print('Running Mission 1, Detect Green')
|
print('Running Mission 1, Detect Green')
|
||||||
await Run_1.solve_missions()
|
await Run_1.solve_missions()
|
||||||
|
|||||||
Reference in New Issue
Block a user