From 55a29d785e42fed67a97dde1e536416629882222 Mon Sep 17 00:00:00 2001 From: ary Date: Mon, 4 Sep 2023 13:32:50 -0400 Subject: [PATCH] globals --- RELENTLESS/include/globals.hpp | 7 +++++++ RELENTLESS/src/globals.cpp | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 RELENTLESS/include/globals.hpp create mode 100644 RELENTLESS/src/globals.cpp diff --git a/RELENTLESS/include/globals.hpp b/RELENTLESS/include/globals.hpp new file mode 100644 index 0000000..68bdc76 --- /dev/null +++ b/RELENTLESS/include/globals.hpp @@ -0,0 +1,7 @@ +#include "main.h" +#include "okapi/api.hpp" +#include "lemlib/api.hpp" + +namespace globals { + extern pros::Controller controller; +} \ No newline at end of file diff --git a/RELENTLESS/src/globals.cpp b/RELENTLESS/src/globals.cpp new file mode 100644 index 0000000..24e9d83 --- /dev/null +++ b/RELENTLESS/src/globals.cpp @@ -0,0 +1,12 @@ +#include "globals.hpp" + +namespace globals { + pros::Controller controller(pros::E_CONTROLLER_MASTER); + + // Chassis + + // Electronics / Pneumatics / Sensors + + // Misc + +} \ No newline at end of file