Arduino Function: RobotControl.setMode

Description

This method is used to change the robot's mode. The commands may change depending on the Robot current mode.

Syntax

Robot.setMode(modeName)

Parameters

modeName: Name of the mode you want to set the robot into. *MODE_SIMPLE : the robot will accept all commands. *MODE_LINE_FOLLOW : the robot will start line-following, and stop responding to motor commands

Examples

#include 
void setup(){
  Robot.begin();
  Robot.setMode(MODE_LINE_FOLLOW);
}
void loop(){}


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc