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:
- 8:946806df7347
- Parent:
- 7:455e7dd338ee
- Child:
- 9:2b028ee421ad
--- a/main.cpp Thu Feb 19 18:13:15 2015 +0000
+++ b/main.cpp Thu Feb 19 19:31:37 2015 +0000
@@ -108,4 +108,39 @@
}// end linescan stuff
}
}
-//hi guys
\ No newline at end of file
+
+
+
+// shit code
+
+//this block is the worst image processing algorithm ever
+/*
+black_values_list[];
+black_value_count = 0;
+black_center_value = 0;
+sum_black = 0;
+
+for (int i=0; i<128; i++)
+{
+ if (camera_data[i]< 100)
+ {
+ black_values_list[black_value_count] = i;
+ black_value_count++;
+ }
+}
+
+for(int i=0; i<black_value_count; i++)
+{
+ sum_black += black_values_list[i];
+}
+
+black_center_value= sum_black / black_value_count;
+
+if (black_center_value > 64)
+ servo_left();
+
+if (black_center_value < 64)
+ servo_right();
+*/
+
+