Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Auton(string name, std::vector<int> arr)

Constructs an auton with the given name and potentiometer values.

It is recommended to use the operator+() function instead of this constructor because it requires less characters and looks nicer.

Parameters

  • name - The name of the auton
  • arr - The values that the potentiometer will return when the auton is selected

Example

Auton skillsAuton = Auton("Skills", vector<int>({1, 2, 3}));