Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: main.cpp
- Revision:
- 23:c77d4b42de17
- Parent:
- 22:72840d3db788
- Child:
- 24:5e18a87a0e95
--- 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);