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
Right now we use the following to get controller input: m_controller->getController()->get_digital(m_button1); where m_controller is a ControllerNode object and m_button1 is a button object. What that code does is get the pros::Controller object from our ControllerNode and then call a PROS method on it. We should create our own method to wrap the PROS functionality.
Create a public method in ControllerNode
This method should return the current value of that button
This method should have one parameter, a button object
Test and verify that the method works with all buttons
Change all current readings of controller values to use this method.
The text was updated successfully, but these errors were encountered:
Right now we use the following to get controller input:
m_controller->getController()->get_digital(m_button1);
wherem_controller
is a ControllerNode object andm_button1
is a button object. What that code does is get thepros::Controller
object from our ControllerNode and then call a PROS method on it. We should create our own method to wrap the PROS functionality.Create a public method in ControllerNode
This method should return the current value of that button
This method should have one parameter, a button object
Test and verify that the method works with all buttons
Change all current readings of controller values to use this method.
The text was updated successfully, but these errors were encountered: