Skip to main content
Version: 4.0.0-beta.3

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()​

Moves motors between the drive and the pto list.

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

pto_list list of motors to add/remove from the drive
toggle true removes the motors from the drive and adds them to the pto list, false removes them from the pto list and adds them back to the drive

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