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.
Diff: main.cpp
- Revision:
- 23:c77d4b42de17
- Parent:
- 22:72840d3db788
- Child:
- 24:5e18a87a0e95
diff -r 72840d3db788 -r c77d4b42de17 main.cpp --- a/main.cpp Sat Nov 05 10:50:25 2016 +0000 +++ b/main.cpp Sat Nov 05 11:10:37 2016 +0000 @@ -181,6 +181,7 @@ pc.printf("Current Sensor Offset: %f mV\n\r", I_OFFSET); pc.printf("Current Sensor Scale: %f mv/A\n\r", I_SCALE); pc.printf("Bus Voltage: %f V\n\r", BUS_VOLTAGE); + pc.printf("Switching Frequency: %f KHz \n\r", F_SW / 1000.0f); pc.printf("Pole pairs: %d\n\r", (int) POLE_PAIRS); pc.printf("Resolver lobes: %d\n\r", (int) RESOLVER_LOBES); pc.printf("Loop KP: %f\n\r", KP);