mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-22 08:04:07 +08:00
Changed #ifdef logic for VBUS divider ratio selection.
This commit is contained in:
+1
-1
@@ -159,7 +159,7 @@
|
||||
#define CURRENT_MEAS_PERIOD ((float)(2*TIM_1_8_PERIOD_CLOCKS)/(float)TIM_1_8_CLOCK_HZ)
|
||||
#define CURRENT_MEAS_HZ (TIM_1_8_CLOCK_HZ/(2*TIM_1_8_PERIOD_CLOCKS))
|
||||
|
||||
#if HW_VERSION_HIGH_VOLTAGE == true
|
||||
#ifdef HW_VERSION_HIGH_VOLTAGE
|
||||
#define VBUS_S_DIVIDER_RATIO 19.0f
|
||||
#else
|
||||
#define VBUS_S_DIVIDER_RATIO 11.0f
|
||||
|
||||
Reference in New Issue
Block a user