mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 15:34:33 +08:00
Update main.h
This commit is contained in:
@@ -169,8 +169,8 @@
|
||||
//TODO: make this come automatically out of CubeMX somehow
|
||||
#define TIM_TIME_BASE TIM14
|
||||
|
||||
#define CURRENT_MEAS_PERIOD ((float)(2.0f*TIM_1_8_PERIOD_CLOCKS*(TIM_1_8_RCR+1)/(float)TIM_1_8_CLOCK_HZ))
|
||||
#define CURRENT_MEAS_HZ ((float)(TIM_1_8_CLOCK_HZ/(2.0f*TIM_1_8_PERIOD_CLOCKS*(TIM_1_8_RCR+1))))
|
||||
#define CURRENT_MEAS_PERIOD ((float)(2*TIM_1_8_PERIOD_CLOCKS*(TIM_1_8_RCR+1)/(float)TIM_1_8_CLOCK_HZ))
|
||||
#define CURRENT_MEAS_HZ ((float)(TIM_1_8_CLOCK_HZ/(2*TIM_1_8_PERIOD_CLOCKS*(TIM_1_8_RCR+1))))
|
||||
|
||||
#if HW_VERSION_VOLTAGE == 48
|
||||
#define VBUS_S_DIVIDER_RATIO 19.0f
|
||||
|
||||
Reference in New Issue
Block a user