Lol smth

Dependencies:   LocalPositionSystem MMA8451Q Motor_Driver Sensors mbed

Fork of TDP_main_BartFork by Yelfie

Revision:
7:14af656b721f
Parent:
6:bea13722aae7
Child:
9:718987b106a8
--- a/main.cpp	Sun Feb 22 14:55:35 2015 +0000
+++ b/main.cpp	Sun Feb 22 17:41:53 2015 +0000
@@ -17,12 +17,11 @@
 #include "mbed.h"
 #include "sensor_measure.h"
 #include "Motor_Driver.h"
+#include "Sensors.h"
 
 #define PWM_PERIOD_US 10000
 
-// Pulses sets how many edges to detect before returning a time, max of 2^16, affectively refers to sample time
-// Clock divider set by prescalar function where division value is 2^n
-extern "C" void setup(int pulses, int prescalar);
+
 
 int main() {
     
@@ -41,7 +40,8 @@
     
     motors.start();
     */ 
-    setup(1000, 0);
+    setup_counter(1000, 0);
+    float frequency = measure_frequency(CHANNEL_1);
     
     sensor_initialise(); // initialise sensor values
     wait(1); //give time to set up the system