61 virtual std::int32_t
setText(std::uint8_t iline, std::uint8_t icol, std::string itext);
91 virtual std::int32_t
rumble(std::string irumblePattern);
PROS API header provides high-level user functionality.
virtual std::int32_t rumble(std::string irumblePattern)
Rumble the controller.
virtual ControllerButton & operator[](ControllerDigital ibtn)
Returns a ControllerButton for the given button on this controller.
virtual std::int32_t setText(std::uint8_t iline, std::uint8_t icol, std::string itext)
Sets text to the controller LCD screen.
pros::controller_id_e_t prosId
virtual float getAnalog(ControllerAnalog ichannel)
Returns the current analog reading for the channel in the range [-1, 1].
virtual std::int32_t clear()
Clears all of the lines of the controller screen.
virtual bool getDigital(ControllerDigital ibutton)
Returns whether the digital button is currently pressed.
std::array< ControllerButton *, 12 > buttonArray
virtual std::int32_t clearLine(std::uint8_t iline)
Clears an individual line of the controller screen.
virtual std::int32_t getBatteryCapacity()
Gets the battery capacity of the given controller.
Controller(ControllerId iid=ControllerId::master)
virtual bool isConnected()
Returns whether the controller is connected.
virtual std::int32_t getBatteryLevel()
Gets the battery level of the given controller.
ControllerId
Which controller role this has.
ControllerDigital
Various buttons.
ControllerAnalog
The analog sticks.