Skip to main content
Version: 4.0.0-beta.3

PID Tuner

Setter Functions​

pid_tuner_enable()​

Enables PID Tuner.

void pid_tuner_enable();

pid_tuner_disable()​

Disables PID Tuner.

void pid_tuner_disable();

pid_tuner_toggle()​

Toggles PID tuner between enabled and disabled.

void pid_tuner_toggle();

pid_tuner_iterate()​

Iterates through controller inputs to modify PID constants.

void pid_tuner_iterate();

pid_tuner_print_brain_set()​

Toggle for printing the display of the PID Tuner to the brain. It prints to the brain by default, and this only does something while the PID Tuner is enabled.

input true prints to brain, false doesn't

void pid_tuner_print_brain_set(bool input);

pid_tuner_print_terminal_set()​

Toggle for printing the display of the PID Tuner to the terminal.

input true prints to terminal, false doesn't

void pid_tuner_print_terminal_set(bool input);

pid_tuner_increment_p_set()​

Sets the value that PID Tuner increments P.

p p will increase by this

void pid_tuner_increment_p_set(double p);

pid_tuner_increment_i_set()​

Sets the value that PID Tuner increments I.

i i will increase by this

void pid_tuner_increment_i_set(double i);

pid_tuner_increment_d_set()​

Sets the value that PID Tuner increments D.

d d will increase by this

void pid_tuner_increment_d_set(double d);

pid_tuner_increment_start_i_set()​

Sets the value that PID Tuner increments Start I.

start_i start i will increase by this

void pid_tuner_increment_start_i_set(double start_i);

pid_tuner_add()​

Adds a PID to the PID Tuner. This adds to both the default tuner and the full tuner.

new_pid_and_name {"name", &pid.constants}

void pid_tuner_add(const_and_name new_pid_and_name);

pid_tuner_button_increment_set()​

Sets the button to increment the focused PID constant.

increase a pros controller button

void pid_tuner_button_increment_set(pros::controller_digital_e_t increase);

pid_tuner_button_decrement_set()​

Sets the button to decrement the focused PID constant.

decrease a pros controller button

void pid_tuner_button_decrement_set(pros::controller_digital_e_t decrease);

pid_tuner_button_up_set()​

Sets the button to move up between the PID constants.

pageUp a pros controller button

void pid_tuner_button_up_set(pros::controller_digital_e_t pageUp);

pid_tuner_button_down_set()​

Sets the button to move down between the PID constants.

pageDown a pros controller button

void pid_tuner_button_down_set(pros::controller_digital_e_t pageDown);

pid_tuner_button_left_set()​

Sets the button to go left in the PID Tuner.

pageLeft a pros controller button

void pid_tuner_button_left_set(pros::controller_digital_e_t pageLeft);

pid_tuner_button_right_set()​

Sets the button to go right in the PID Tuner.

pageRight a pros controller button

void pid_tuner_button_right_set(pros::controller_digital_e_t pageRight);

Getter Functions​

pid_tuner_enabled()​

Checks if PID Tuner is enabled.

True is enabled, false is disabled.

bool pid_tuner_enabled();

pid_tuner_print_terminal_enabled()​

Returns true if printing to terminal is enabled.

bool pid_tuner_print_terminal_enabled();

pid_tuner_print_brain_enabled()​

Returns true if printing to brain is enabled.

bool pid_tuner_print_brain_enabled();

pid_tuner_increment_p_get()​

Returns the value that PID Tuner increments P.

double pid_tuner_increment_p_get();

pid_tuner_increment_i_get()​

Returns the value that PID Tuner increments I.

double pid_tuner_increment_i_get();

pid_tuner_increment_d_get()​

Returns the value that PID Tuner increments D.

double pid_tuner_increment_d_get();

pid_tuner_increment_start_i_get()​

Returns the value that PID Tuner increments Start I.

double pid_tuner_increment_start_i_get();

pid_tuner_button_increment_get()​

Returns the pros button that increments the focused PID constant.

pros::controller_digital_e_t pid_tuner_button_increment_get();

pid_tuner_button_decrement_get()​

Returns the pros button that decrements the focused PID constant.

pros::controller_digital_e_t pid_tuner_button_decrement_get();

pid_tuner_button_up_get()​

Returns the pros button that moves up between the PID constants.

pros::controller_digital_e_t pid_tuner_button_up_get();

pid_tuner_button_down_get()​

Returns the pros button that moves down between the PID constants.

pros::controller_digital_e_t pid_tuner_button_down_get();

pid_tuner_button_left_get()​

Returns the pros button that goes left in the PID Tuner.

pros::controller_digital_e_t pid_tuner_button_left_get();

pid_tuner_button_right_get()​

Returns the pros button that goes right in the PID Tuner.

pros::controller_digital_e_t pid_tuner_button_right_get();