Program to test hardware for Princeton's MAE 433

Dependencies:   MAE433_Library

Files at this revision

API Documentation at this revision

Comitter:
Electrotiger
Date:
Sun Jun 26 19:35:52 2016 +0000
Parent:
0:ba8d8b12f8cc
Commit message:
Some Commit

Changed in this revision

MAE433_Library.lib 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
diff -r ba8d8b12f8cc -r 2ff0b2e16716 MAE433_Library.lib
--- a/MAE433_Library.lib	Fri Jun 24 23:13:05 2016 +0000
+++ b/MAE433_Library.lib	Sun Jun 26 19:35:52 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/Electrotiger/code/MAE433_Library/#2c175218c12a
+https://developer.mbed.org/users/Electrotiger/code/MAE433_Library/#2d38ad348e0d
diff -r ba8d8b12f8cc -r 2ff0b2e16716 main.cpp
--- a/main.cpp	Fri Jun 24 23:13:05 2016 +0000
+++ b/main.cpp	Sun Jun 26 19:35:52 2016 +0000
@@ -89,7 +89,7 @@
     Timer t;
     t.start();
     while(true) {
-        float output = 1 * arm_sin_f32(2*M_PI*t.read() / 8);
+        float output = 1 * arm_sin_f32(2*PI*t.read() / 8);
         leftMotor.write(output);
         rightMotor.write(output);
         Thread::wait(controlSampleRateMS);