actions->insert({"eva", new ActionRobotLine(this, "Evacuation zone", 1, Board::BoardId::ID_ANY, NULL, &RobotLine::evacuationZone)});
actions->insert({"lnf", new ActionRobotLine(this, "Line follow", 1, Board::BoardId::ID_ANY, NULL, &RobotLine::lineFollow)});
actions->insert({"obs", new ActionRobotLine(this, "Obstacle avoid", 0, Board::BoardId::ID_ANY, NULL, &RobotLine::obstacleAvoid)});
actions->insert({"rcj", new ActionRobotLine(this, "RCJ line", 1, Board::BoardId::ID_ANY, NULL, &RobotLine::rcjLine)});
actions->insert({"str", new ActionRobotLine(this, "Stop motors", 1, Board::BoardId::ID_ANY, NULL, &RobotLine::stop)});
actions->insert({"msh", new ActionRobotLine(this, "Motor short test", 1, Board::BoardId::ID_ANY, NULL, &RobotLine::motorShortTest)});
actions->insert({"lo5", new ActionRobotLine(this, "loop5", 8, Board::BoardId::ID_ANY, signTest, &RobotLine::loop5)});
actions->insert({"lo6", new ActionRobotLine(this, "loop6", 8, Board::BoardId::ID_ANY, signTest, &RobotLine::loop6)});
actions->insert({"lo7", new ActionRobotLine(this, "loop7", 8, Board::BoardId::ID_ANY, signTest, &RobotLine::loop7)});
actions->insert({"lo8", new ActionRobotLine(this, "loop8", 8, Board::BoardId::ID_ANY, signTest, &RobotLine::loop8)});
actions->insert({"lo9", new ActionRobotLine(this, "loop9", 8, Board::BoardId::ID_ANY, signTest, &RobotLine::loop9)});
Pogledajte kod oko posljednjeg mjesta na kojem smo bili u kodu i vidjet ćete ostale akcije vezane za Rescue Line.
1. je za kretanje u sobi evakuacije, 3. za obilazak prepreke na crti, 4. za samo pokretanje programa, itd.
Možete koristiti ove akcije ili napraviti nove. Ako koristite postojeće, slobodno obrišite sav kod u njihovim funkcijama.
Nove napravite na isti način kako je gore definirana akcija u našem primjeru. Dodajte točno takav kod za vašu proizvoljnu akciju.