Skip to main content
Version: 3.2.1

PTO

pto_check()​

Checks if the motor is currently in pto_list.

Returns true if it's already in pto_list.

check_if_pto motor to check

bool pto_check(pros::Motor check_if_pto);

pto_add()​

Adds motors to the pto list, removing them from the drive.

You cannot add the first index because it's used for autonomous.

pto_list list of motors to remove from the drive

void pto_add(std::vector<pros::Motor> pto_list);

pto_remove()​

Removes motors from the pto list, adding them to the drive.

pto_list list of motors to add to the drive

void pto_remove(std::vector<pros::Motor> pto_list);

pto_toggle()​

Adds/removes motors from drive.

You cannot add the first index because it's used for autonomous.

pto_list list of motors to add/remove from the drive
toggle list of motors to add/remove from the drive

void pto_toggle(std::vector<pros::Motor> pto_list, bool toggle);