You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should use a file unique to each robot to denote the controls. This file would be very similar to a Constants.h file in that it would use #define to define a literal for each button. For example #define INTAKE_FORWARD_BUTTON pros::E_CONTROLLER_DIGITAL_Y would define INTAKE_FORWARD_BUTTON to be the Y button. We could then pass it into the proper node as a button. This would allow us to very easily change controls without having to hunt them down in the rest of the project.
The text was updated successfully, but these errors were encountered:
We should use a file unique to each robot to denote the controls. This file would be very similar to a Constants.h file in that it would use
#define
to define a literal for each button. For example#define INTAKE_FORWARD_BUTTON pros::E_CONTROLLER_DIGITAL_Y
would define INTAKE_FORWARD_BUTTON to be the Y button. We could then pass it into the proper node as a button. This would allow us to very easily change controls without having to hunt them down in the rest of the project.The text was updated successfully, but these errors were encountered: