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

robotPositionX()

Description

Read the robot position, axe X.

Syntax

robotPositionX()

Parameter

None

Return

Value: float

Exemple

#include <mrduino.h>

float positionX;

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

  robotGo(400,0);
  
  positionX = robotPositionX();

 
}

void loop()
{
  
}