From 9ad8cf220e1ca9bcde5bf7c74ab4797227c8849e Mon Sep 17 00:00:00 2001 From: ary Date: Wed, 13 Dec 2023 07:37:01 -0500 Subject: [PATCH] remove old threading stuff move tasks to intake only, can be updated as needed --- CLOUDS/src/main.cpp | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/CLOUDS/src/main.cpp b/CLOUDS/src/main.cpp index e7806c4..bf6b8e4 100644 --- a/CLOUDS/src/main.cpp +++ b/CLOUDS/src/main.cpp @@ -5,20 +5,7 @@ using namespace superstruct; e_controlsch currentuser = RENU; -void taskMethods() { - while (true) { - /* - Handle controls for whoever is driving the bot at the moment, each available user a respective set of controls - */ - renu_control(); - pros::delay(ary::util::DELAY_TIME); - } -} - -pros::Task subsystemsTask(taskMethods); - void initialize() { - subsystemsTask.suspend(); ary::printScr(); pros::delay(500); // Ports config @@ -36,9 +23,9 @@ void initialize() { Add autonomous paths to the auto selection */ ary::autonselector::auton_selector.add_autons({ + Auton("Six triball\n\nThey ain't believe in us\nBut GOD DID :speaking_head:", six_triball), Auton("Far side \n\nFar from alliance goal", near_side), Auton("Near side (far from alliance goal) \n\nCLOSE TO ALLIANCE GOAL", far_side), - Auton("Six triball\n\nThey ain't believe in us\nBut GOD DID :speaking_head:", six_triball), Auton("Skills \n\ncloudabunga", skills) }); @@ -49,22 +36,21 @@ void initialize() { } void disabled() { - subsystemsTask.suspend(); } + void competition_initialize() {} void autonomous() { - subsystemsTask.resume(); autonomousResets(); ary::autonselector::auton_selector.call_selected_auton(); } void opcontrol() { - subsystemsTask.resume(); disableActiveBrake(); opControlInit(); // Configure the chassis for driver control while (true) { globals::chassis.tank_control(); + renu_control(); } -} +} \ No newline at end of file