motor controller

Dependencies:   mbed plotter

Committer:
dicarloj
Date:
Sun Oct 30 19:37:46 2016 +0000
Revision:
2:7312ac02785d
Parent:
0:f899a5183b5e
Child:
3:08746709f023
working, no safety

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dicarloj 0:f899a5183b5e 1 #include "mbed.h"
dicarloj 2:7312ac02785d 2 #include "io.h"
dicarloj 2:7312ac02785d 3 #include "plotter.h"
dicarloj 2:7312ac02785d 4 #include "foc.h"
dicarloj 2:7312ac02785d 5 #include "vehicle_controller.h"
dicarloj 0:f899a5183b5e 6
dicarloj 2:7312ac02785d 7 DigitalOut en(PB_15);
dicarloj 0:f899a5183b5e 8 int main() {
dicarloj 2:7312ac02785d 9 en = 1;
dicarloj 2:7312ac02785d 10 printf("starting........\n\r");
dicarloj 2:7312ac02785d 11 setup();
dicarloj 2:7312ac02785d 12 while(true)
dicarloj 2:7312ac02785d 13 {
dicarloj 2:7312ac02785d 14 wait(0.2);
dicarloj 2:7312ac02785d 15 printf("velocity: %f v_err: %f %\n\r", get_debug(1), get_debug(2));
dicarloj 2:7312ac02785d 16 }
dicarloj 2:7312ac02785d 17
dicarloj 0:f899a5183b5e 18 }