DreamForce 2013 Mini-Hack Challenge Project
Dependencies: ADXL345 USBDevice filter mbed
Fork of df-minihack-slingshot by
Revision 6:446635b12af2, committed 2013-11-08
- Comitter:
- ansond
- Date:
- Fri Nov 08 02:34:36 2013 +0000
- Parent:
- 5:2ee478a71b6b
- Child:
- 7:991749350315
- Commit message:
- updates
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Nov 04 17:39:12 2013 +0000
+++ b/main.cpp Fri Nov 08 02:34:36 2013 +0000
@@ -144,10 +144,7 @@
float conversion = (incr_deg/incr_pot);
deg = min_deg + (conversion*(val_pot - min_pot));
}
-
- // we have to flip the sign of the result
- deg = -deg;
-
+
// return the calculated degrees
return deg;
}
