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.
Diff: main.cpp
- Revision:
- 9:5f197f0fa9bd
- Parent:
- 8:6320ca55f5d8
- Child:
- 10:8f933ed27db0
--- a/main.cpp Mon Jul 27 01:28:51 2020 +0000
+++ b/main.cpp Mon Jul 27 01:43:23 2020 +0000
@@ -96,7 +96,7 @@
}
/* 障害物回避走行 */
-void avoidance(){
+void avoidance(void const *argument){
while(1){
if(flag == 0){ // 障害物がない場合
run = ADVANCE; // 前進
@@ -180,7 +180,7 @@
int main()
{
+ Thread thread1(avoidance,NULL,osPriorityHigh);
while(true){
-
}
}
\ No newline at end of file