/**
 * This is sample program for drive a simple two-wheel robot along a triangle.
 *
 * Author: Jaroslav Páral (jarekparal)
 */

#include "ev3cxx.h"
#include "app.h"

void main_task(intptr_t unused) {    
    ev3cxx::MotorTank motors(ev3cxx::MotorPort::B, ev3cxx::MotorPort::C);   
   
    motors.onForRotations(50, 50, 1);
    motors.onForRotations(50,  0, 1.45);

    motors.onForRotations(50, 50, 1);
    motors.onForRotations(50,  0, 1.45); 
    
    motors.onForRotations(50, 50, 1);
    motors.onForRotations(50,  0, 1.45);
}

// // alternative
// void main_task(intptr_t unused) {
//     ev3cxx::MotorTank motors(ev3cxx::MotorPort::B, ev3cxx::MotorPort::C);
    
//     motors.onForRotations(50, 50, 1);
//     motors.leftMotor().onForRotations(50, 1.45);

//     motors.onForRotations(50, 50, 1);
//     motors.leftMotor().onForRotations(50, 1.45);

//     motors.onForRotations(50, 50, 1);
//     motors.leftMotor().onForRotations(50, 1.45);
// }