mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 15:34:33 +08:00
Change HW_VERSION_HIGH_VOLTAGE on main to ifdef
This commit is contained in:
+1
-1
@@ -158,7 +158,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