
Lol smth
Dependencies: LocalPositionSystem MMA8451Q Motor_Driver Sensors mbed
Fork of TDP_main_BartFork by
Diff: main.cpp
- Revision:
- 5:2fc7bf0135d4
- Parent:
- 4:3aa9c1c734fe
- Child:
- 6:bea13722aae7
--- a/main.cpp Sat Feb 21 01:54:23 2015 +0000 +++ b/main.cpp Sat Feb 21 14:43:39 2015 +0000 @@ -16,12 +16,29 @@ #include "mbed.h" #include "sensor_measure.h" -#include "motor_driver.h" +#include "Motor_Driver.h" +#define PWM_PERIOD_US 10000 int main() { - -sensor_initialise(); // initialise sensor values -wait(1); //give time to set up the system + + /* + Motor_Driver motors(PTD4, PTA12, PTA4, PTA5, PTC9, PTC8, PWM_PERIOD_US); + + motors.setSpeed(1.0f); + motors.forward(); + motors.start(); + + wait(3); + + motors.stop() + motors.reverse(); + wait(200ms); + + motors.start(); + */ + + sensor_initialise(); // initialise sensor values + wait(1); //give time to set up the system }