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

Auton(string name, std::function<void()> fn)

Constructs an auton with the given name and function.

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
  • fn - The function that will be called when the auton is run

Example

Auton skillsAuton = Auton("Skills", [](){
    //Auton code here
});