pros::literals namespace

Contents

Functions

const pros::Serial pros::literals::operator""_ser(const unsigned long long int m)
Constructs a Serial device from a litteral ending in _ser.
const pros::Vision pros::literals::operator""_vis(const unsigned long long int m)
Constructs a Vision sensor from a litteral ending in _vis.

Function documentation

const pros::Serial pros::literals::operator""_ser(const unsigned long long int m)

Constructs a Serial device from a litteral ending in _ser.

Returns a pros::Serial for the corresponding port

Example

using namespace pros::literals;
void opcontrol() {
 pros::Serial serial = 2_ser; //Makes an Serial device object on port 2
}

const pros::Vision pros::literals::operator""_vis(const unsigned long long int m)

Constructs a Vision sensor from a litteral ending in _vis.

Returns a pros::Vision for the corresponding port

Example

using namespace pros::literals;
void opcontrol() {
 pros::Vision vision = 2_vis; //Makes an Vision sensor object on port 2
}