Modified Motor Driver Firmware to include Flash + Thermal
Dependencies: FastPWM3 mbed-dev-STM-lean
Diff: Config/hw_config.h
- Revision:
- 47:e1196a851f76
- Parent:
- 37:c0f352d6e8e3
- Child:
- 48:74a40481740c
--- a/Config/hw_config.h Thu Jul 12 02:50:34 2018 +0000 +++ b/Config/hw_config.h Wed Dec 05 04:07:46 2018 +0000 @@ -7,9 +7,9 @@ #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.00884f // Bus volts per A/D Count -#define DTC_MAX 0.95f // Max phase duty cycle -#define DTC_MIN 0.05f // Min phase duty cycle +#define V_SCALE 0.00886f // 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