![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Integrated IMU6050 + ToF(side, down, front, back) + comments + main
Diff: main.cpp
- Revision:
- 22:d690ed804636
- Parent:
- 21:b438961f85d5
- Child:
- 23:497a6a11fe63
--- a/main.cpp Tue Jul 02 19:19:28 2019 +0000 +++ b/main.cpp Tue Jul 09 21:21:49 2019 +0000 @@ -70,9 +70,9 @@ * Thread Definitions * **************************************************************************/ -Timer t; // Initialize time object t +Timer t, IMU_t; // Initialize time object t and IMU timer EventQueue queue; // Class to organize threads -Wheelchair smart(xDir,yDir, &pc, &t, &wheel, &wheelS, ToFT); // Initialize wheelchair object +Wheelchair smart(xDir,yDir, &pc, &IMU_t, &wheel, &wheelS, ToFT); // Initialize wheelchair object Thread compass; // Thread for compass Thread velocity; // Thread for velocity Thread ToFSafe; // Thread for safety stuff