Arduino Function: RobotControl.pointTo

Description

This function make the robot move in a particular direction. pointTo() makes the robot move to an absolute direction based on the compass. Magnetic objects in the surrounding may disrupt the compass module. Keep magnets, such as strong speakers, away from the robot.

Syntax

Robot.pointTo(degrees)

Parameters

degrees: 0 to 359.

Examples

#include 

void setup(){
 Robot.begin();
 Robot.pointTo(90); //The robot will turn to 90, by the value of compass
}
void loop(){
}


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