   if(command == "battery") {
     result = checkBatteryStatus(argument);
   } else if(command == "distance") {
-    result = getDistance(argument);
+    result = measureDistance(argument);
   } else if(command == "forward") {
     result = forward(argument);
   } else if(command == "backward") {

#include <AFMotor.h>
#include <NewPing.h>

AF_DCMotor motor1(1);
AF_DCMotor motor2(2);

int motorSpeed = 100;
bool isMovingForward = false;
bool isMovingBackward = false;
bool safetyDriveMode = true;

String input = "";
  
