Modified Motor Driver Firmware to include Flash + Thermal
Dependencies: FastPWM3 mbed-dev-STM-lean
Diff: main.cpp
- Revision:
- 57:0795d2add37e
- Parent:
- 56:fe5056ac6740
- Child:
- 58:32e8927fe39f
diff -r fe5056ac6740 -r 0795d2add37e main.cpp --- a/main.cpp Thu Oct 10 15:03:12 2019 +0000 +++ b/main.cpp Thu Nov 07 18:14:51 2019 +0000 @@ -53,7 +53,7 @@ //DigitalOut drv_en_gate(PA_11); DRV832x drv(&drv_spi, &drv_cs); -PositionSensorAM5147 spi(16384, 0.0, NPP); +PositionSensoriCMU spi(16777216, 0.0, NPP); // Read 24 bits off the sensor volatile int count = 0; volatile int state = REST_MODE; @@ -522,7 +522,7 @@ while(1) { //drv.print_faults(); wait(.1); - //printf("%.3f %.3f\n\r" , observer.temperature, observer.q_in); + if(controller.otw_flag){gpio.led->write(!gpio.led->read());} /* if(state == MOTOR_MODE)