Modified Motor Driver Firmware to include Flash + Thermal
Dependencies: FastPWM3 mbed-dev-STM-lean
Diff: Config/hw_config.h
- Revision:
- 67:96a4052a1705
- Parent:
- 55:c4c9fec8539c
diff -r 3947255b18c5 -r 96a4052a1705 Config/hw_config.h --- a/Config/hw_config.h Fri Jan 29 20:39:36 2021 +0000 +++ b/Config/hw_config.h Tue Feb 09 16:30:11 2021 +0000 @@ -7,7 +7,7 @@ #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.012890625f // Bus volts per A/D Count +#define V_SCALE 0.0257812f // 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