tianyun ma / Mbed 2 deprecated mecanum_4

Dependencies:   mbed

main.cpp

Committer:
himarsmty
Date:
2018-05-07
Revision:
0:b7d3adaffc0a

File content as of revision 0:b7d3adaffc0a:

#include "mbed.h"
#include "mecanum_4.h"

int main() {
    mecanum_4 mecanum;

//    mecanum.mv_x(100);
//    wait(5);
//    mecanum.mv_x(-100);
//    wait(5);
//    mecanum.mv_y(100);
//    wait(5);
//    mecanum.mv_y(-100);
//    wait(5);
//    mecanum.rotate(100);
//    wait(5);
//    mecanum.rotate(-100);
//    wait(5);
//    mecanum.r_ob(100);
//    wait(5);
//    mecanum.r_ob(-100);
//    wait(5);
//    mecanum.r_ob(100);
//    wait(5);
//    mecanum.i_ob(-100);
//    wait(5);
    mecanum.any_degree(45,5);
    mecanum.any_degree(135,5);
    mecanum.any_degree(180,5);
    mecanum.any_degree(225,5);
    mecanum.any_degree(315,5);
}