Home » DEVELOPERS » Programming the MRduino with Arduino » robotPositionOrientation() – API arduino

robotPositionOrientation()

Description

Read the robot orientation.

Syntax

robotPositionOrientation()

Parameter

None

Return

Value: float (radian)

Exemple

#include <mrduino.h>

float Orientation;

void setup()
{
  Serial.begin(115200);

  robotGo(400,0);
  
  Orientation = robotPositionOrientation();

 
}

void loop()
{
  
}