Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-dev-f303 FastPWM3
Diff: main.cpp
- Revision:
- 58:bed739c83fac
- Parent:
- 57:8200454194cf
- Child:
- 59:ed4b54437e02
diff -r 8200454194cf -r bed739c83fac main.cpp
--- a/main.cpp Thu Dec 24 02:30:24 2020 +0000
+++ b/main.cpp Thu Dec 24 11:30:43 2020 +0000
@@ -473,11 +473,11 @@
//===============================================HJB ended====================================================//
while(1) {
drv.print_faults();
- wait(.1);
+ wait(.1);
//printf("%.4f\n\r", controller.v_bus);
- printf("adc1: %.3d\n\r",controller.adc2_raw = ADC1->DR);
- printf("adc2: %.3d\n\r",controller.adc2_raw = ADC2->DR);
- printf("adc3: %.3d\n\r",controller.adc2_raw = ADC3->DR);
+ // printf("adc1: %.3d\n\r",controller.adc2_raw = ADC1->DR);
+ // printf("adc2: %.3d\n\r",controller.adc2_raw = ADC2->DR);
+ // printf("adc3: %.3d\n\r",controller.adc2_raw = ADC3->DR);
wait(1);
if(state == MOTOR_MODE)
{
@@ -489,9 +489,9 @@
//wait(2);
//printf("speed:%.3f\n\r", controller.dtheta_mech);
//printf("position:%.3f\n\r", controller.theta_mech*360/(2*PI));
- printf("adc1: %.3d\n\r",controller.adc2_raw = ADC1->DR);
- printf("adc2: %.3d\n\r",controller.adc2_raw = ADC2->DR);
- printf("adc3: %.3d\n\r",controller.adc2_raw = ADC3->DR);
+ //printf("adc1: %.3d\n\r",controller.adc2_raw = ADC1->DR);
+ //printf("adc2: %.3d\n\r",controller.adc2_raw = ADC2->DR);
+ //printf("adc3: %.3d\n\r",controller.adc2_raw = ADC3->DR);
//wait(.002);
wait(1);
}