Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 4:05484073a641, committed 2015-03-22
- Comitter:
- majik
- Date:
- Sun Mar 22 06:34:30 2015 +0000
- Parent:
- 3:47461d37adfb
- Commit message:
- BOTH IMUs WORK NOW. Put them in separate threads. Servo is included.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Mar 22 00:43:42 2015 +0000
+++ b/main.cpp Sun Mar 22 06:34:30 2015 +0000
@@ -83,7 +83,7 @@
Thread::wait(3);
}
}
-/*
+
void IMU2_thread(void const *args)
{
//This thread does not work
@@ -94,7 +94,7 @@
update_dmp2();
Thread::yield();
}
-}*/
+}
void IMU_thread(void const *args)
{
//For some reason, using 2 IMUs causes one of them to be laggy and
@@ -145,7 +145,7 @@
Thread IMU_th(IMU_thread,NULL,osPriorityNormal, 2048,NULL);
- // Thread IMU2_th(IMU_thread,NULL,osPriorityNormal, 2048,NULL); //Putting IMU2 in a separate thread does not work
+ Thread IMU2_th(IMU2_thread,NULL,osPriorityNormal, 2048,NULL); //Putting IMU2 in a separate thread does not work
// Thread current_sense(CURRENT_thread,NULL,osPriorityNormal,300,NULL); //this thread for monitoring current is unnecessary. Thread use lotsa rams. Kill it.