Code for the car to drive in a figure eight motion

Dependencies:   mbed-rtos mbed MODSERIAL mbed-dsp telemetry

main.cpp

Committer:
ericoneill
Date:
2015-03-20
Revision:
12:45e6cb021301
Parent:
11:f8aa39c19477
Child:
13:97708869a4ba

File content as of revision 12:45e6cb021301:

#include "mbed.h"
#include "telemetry.h"
#include "rtos.h"

// Camera Pins
DigitalOut clk(PTA13);
DigitalOut si(PTD4);
AnalogIn camData(PTC2);
//Servo, Motor, Serial Pins
PwmOut servo(PTA5);
PwmOut motor1(PTA4);
PwmOut motor2(PTA12);
DigitalOut break1(PTC12);
DigitalOut break2(PTC13);
Serial pc(USBTX, USBRX);
// Interrupt for encoder
InterruptIn interrupt(PTA13);

float line [128];
Mutex line_mutex;

void linecam_thread(void const *args){
    while
    line_mutex.lock();
    
}


int main() {
    Thread thread(linecam_thread);
    
    while(1) {
        
    }
}