
Lol smth
Dependencies: LocalPositionSystem MMA8451Q Motor_Driver Sensors mbed
Fork of TDP_main_BartFork by
Diff: main.cpp
- Revision:
- 6:bea13722aae7
- Parent:
- 5:2fc7bf0135d4
- Child:
- 7:14af656b721f
--- a/main.cpp Sat Feb 21 14:43:39 2015 +0000 +++ b/main.cpp Sun Feb 22 14:55:35 2015 +0000 @@ -20,6 +20,10 @@ #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() { /* @@ -37,6 +41,7 @@ motors.start(); */ + setup(1000, 0); sensor_initialise(); // initialise sensor values wait(1); //give time to set up the system