Code for the car to drive in a figure eight motion
Dependencies: mbed-rtos mbed MODSERIAL mbed-dsp telemetry
Diff: main.cpp
- Revision:
- 22:986b3addda41
- Parent:
- 21:a9e9aa7da8db
--- a/main.cpp Fri Mar 20 05:12:03 2015 +0000 +++ b/main.cpp Fri Mar 20 05:41:02 2015 +0000 @@ -19,12 +19,13 @@ //Telemetry MODSERIAL telemetry_serial(PTA2, PTA1); +/* telemetry::MbedHal telemetry_hal(telemetry_serial); telemetry::Telemetry telemetry_obj(telemetry_hal); telemetry::Numeric<uint32_t> tele_time_ms(telemetry_obj, "time", "Time", "ms", 0); telemetry::NumericArray<uint16_t, 128> tele_linescan(telemetry_obj, "linescan", "Linescan", "ADC", 0); telemetry::Numeric<float> tele_motor_pwm(telemetry_obj, "motor", "Motor PWM", "%DC", 0); -tele_motor_pwm.set_limits(0 ,1); +*/ // Interrupt for encoder InterruptIn interrupt(PTA13); @@ -50,7 +51,7 @@ Thread thread(linecam_thread); thread.set_priority(osPriorityIdle); //thread.set_priority(-3); - + //tele_motor_pwm.set_limits(0 ,1); int integrationCounter = 0; while(1) { if(integrationCounter % 151== 0){