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
Dependents: GT_MOTOR_24NM_V03 GT_MOTOR_24NM_V03_PT1000CalTemp
Diff: Config/hw_config.h
- Revision:
- 48:74a40481740c
- Parent:
- 47:e1196a851f76
--- a/Config/hw_config.h Wed Dec 05 04:07:46 2018 +0000
+++ b/Config/hw_config.h Sun Mar 03 02:51:51 2019 +0000
@@ -7,11 +7,12 @@
#define ENABLE_PIN PA_11 // Enable gate drive pin
#define LED PC_5 // LED Pin
#define I_SCALE 0.02014160156f // Amps per A/D Count
-#define V_SCALE 0.00886f // Bus volts per A/D Count
+#define V_SCALE 0.012890625f // Bus volts per A/D Count
#define DTC_MAX 0.94f // Max phase duty cycle
#define DTC_MIN 0.0f // Min phase duty cycle
#define PWM_ARR 0x8CA /// timer autoreload value
+static float inverter_tab[16] = {2.5f, 2.4f, 2.3f, 2.2f, 2.1f, 2.0f, 1.9f, 1.8f, 1.7f, 1.6f, 1.59f, 1.58f, 1.57f, 1.56f, 1.55f, 1.5f};
#endif