text: const prompt = require('prompt-sync')({sigint: true});
  const rosebot = require("./rosebot");
  
  function main() {
    console.log('--------------------------------------------------')
    console.log('Testing the  DRIVE SYSTEM  of a robot')
    console.log('--------------------------------------------------')
      // # -------------------------------------------------------------------------
      // # Done: Create a robot.
      // # -------------------------------------------------------------------------
      robot = new rosebot.RoseBot();
  
    while (true) {
      console.log("Wheel speeds should be integers between -100 and 100.")
      console.log("Enter values of 0 for both to exit.")
      let leftWheelSpeed = parseInt(prompt('Enter an integer for left wheel speed: '));
      let rightWheelSpeed = prompt('Enter an integer for right wheel speed: ');
      rightWheelSpeed = parseInt(rightWheelSpeed);
      if (leftWheelSpeed == 0 && rightWheelSpeed == 0) {
        break;
      }
      prompt('Press the ENTER key when ready for the robot to start moving.');
      // # -------------------------------------------------------------------------
      // # Done: Call the  go  method of the   driveSystem   of the robot,
      // #   sending it the two wheel speeds.  Keep going (sleep) for 3 seconds.
      // #   Then call the  stop  method of the   driveSystem   of the robot.
      // # -------------------------------------------------------------------------
  
      robot.driveSystem.go(leftWheelSpeed, rightWheelSpeed);
      rosebot.sleep(3);
      robot.driveSystem.stop();
    }
  }
  
  main();