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.
Dependencies: mbed-rtos mbed MODSERIAL mbed-dsp telemetry
Revision 12:45e6cb021301, committed 2015-03-20
- Comitter:
- ericoneill
- Date:
- Fri Mar 20 03:34:38 2015 +0000
- Parent:
- 11:f8aa39c19477
- Child:
- 13:97708869a4ba
- Commit message:
- random commit
Changed in this revision
| linecam.h | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/linecam.h Fri Mar 20 02:54:21 2015 +0000
+++ b/linecam.h Fri Mar 20 03:34:38 2015 +0000
@@ -0,0 +1,13 @@
+#ifndef LINECAM_H
+#define LINECAM_H
+
+class Linecam{
+ float ADCdata [128];
+ float track_centers [128];
+ bool track_crossings [128];
+ bool track_found [128];
+
+
+}
+
+#endif
\ No newline at end of file
--- a/main.cpp Fri Mar 20 02:54:21 2015 +0000
+++ b/main.cpp Fri Mar 20 03:34:38 2015 +0000
@@ -16,23 +16,20 @@
// Interrupt for encoder
InterruptIn interrupt(PTA13);
-void read_sensors(){
-
-}
+float line [128];
+Mutex line_mutex;
-void actuate(){
-
-}
void linecam_thread(void const *args){
+ while
+ line_mutex.lock();
}
int main() {
Thread thread(linecam_thread);
- Encoder encoder =
+
while(1) {
- read_sensors();
- actuate();
+
}
}