Sub programs of serial_transport, PID and motor contrl.
Dependents: tracking_ball_0516 tracking_ball_0516
Diff: Serial_Transport.h
- Revision:
- 3:57962324a4a0
- Parent:
- 2:a668eb71516b
- Child:
- 4:82765e1fd9db
--- a/Serial_Transport.h Mon May 24 08:56:23 2021 +0000 +++ b/Serial_Transport.h Sat May 29 09:28:16 2021 +0000 @@ -2,6 +2,9 @@ #define _Serial_Transport_H #include "mbed.h" +#include "Serial.h" +#include "Thread.h" + //#define RECV_BUFFER_SIZE 100 #define INFOR_BUFFER_SIZE 20 @@ -50,6 +53,8 @@ //Mutex rw_mutex; //char buff[RECV_BUFFER_SIZE]; Serial * s_port; + DigitalOut * pled; + Thread m_thread; };