Init
Dependencies: Break Motor Communication Steering mbed Controller
save.h
- Committer:
- skrickl
- Date:
- 2017-07-13
- Revision:
- 1:2538cbbea1f8
File content as of revision 1:2538cbbea1f8:
/create instances //Controller controller; //controller_timer.attach(&timer_interrupt_controller, 0.1); //MbedToPC test(p9, p10, 115200); //MotorController test1(p28, p27, 115200); //test.enableInterrupt(); //test.writeLine("Hello World"); //test1.writeLine("help"); //initMotorController(); //test.writeLine("hallo welt"); //test1.writeWord("status_start\r\n"); /*SerialController com(p9, p10, p28, p27, 115200); led3 = 1; com.getMotorControllerReady(); led3 = 0; com.enableInterrupt(); com.startStatus(); //com.init(); string line; led1 = 1; led2 = 1; wait(1); //led2 = 0; while (1) { /*led3 = 1; line = test1.readLine(); wait(0.5); led3 = 0; led2 = 1; test.writeLine(line);*/ //string line = test1.readLine(); //test.writeLine(line); /*Test.writeLine("Test read char"); char word[1]; word[0] = Test.readChar(); Test.writeLine(word);*/ /*Test.writeLine("Test read line"); string line = Test.readLine();*/ /*std::size_t found = myLine.find("stop"); if (found!=std::string::npos) { Test.disableInterrupt(); myLine = "ended!!"; } Test.writeLine(myLine);*/ //led1 = !led1; //led2 = !led2; /* wait(1); led1 = !led1; led2 = !led2; }*/