use okapi controller

This commit is contained in:
ary 2023-09-04 13:37:03 -04:00
parent 55a29d785e
commit ed00616eed
3 changed files with 3 additions and 3 deletions

View File

@ -3,5 +3,5 @@
#include "lemlib/api.hpp" #include "lemlib/api.hpp"
namespace globals { namespace globals {
extern pros::Controller controller; extern Controller controller;
} }

View File

@ -53,7 +53,7 @@
*/ */
// using namespace pros; // using namespace pros;
// using namespace pros::literals; // using namespace pros::literals;
// using namespace okapi; using namespace okapi;
/** /**
* Prototypes for the competition control tasks are redefined here to ensure * Prototypes for the competition control tasks are redefined here to ensure

View File

@ -1,7 +1,7 @@
#include "globals.hpp" #include "globals.hpp"
namespace globals { namespace globals {
pros::Controller controller(pros::E_CONTROLLER_MASTER); Controller controller(ControllerId::master);
// Chassis // Chassis