Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

body knee support #3

Merged
merged 18 commits into from
Aug 2, 2022
Prev Previous commit
Next Next commit
move defines
  • Loading branch information
briskspirit committed Jul 26, 2022
commit 517113db3b713c906a69e0c00523bdb9acff2d1f
4 changes: 3 additions & 1 deletion board/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
#define ADC_TOTAL_CONV_TIME (ADC_CLOCK_DIV * ADC_CONV_CLOCK_CYCLES) // = ((SystemCoreClock / ADC_CLOCK_HZ) * ADC_CONV_CLOCK_CYCLES), where ADC_CLOCK_HZ = SystemCoreClock/ADC_CLOCK_DIV

#define ANGLE_TO_DEGREES 0.021972656 // Convert 14 bit angle sensor output to degrees
#define GEARBOX_RATIO_LEFT 19
#define GEARBOX_RATIO_RIGHT 19
#define TRQ_LIMIT_LEFT 1000 // Torque limit for knee gearbox(left)
#define TRQ_LIMIT_RIGHT 1000 // Torque limit for hip gearbox(right)

#define KNEE_ADDR_OFFSET 0x100U
#define KNEE_ADDR_OFFSET 0x100

#define BAT_FILT_COEF 655 // battery voltage filter coefficient in fixed-point. coef_fixedPoint = coef_floatingPoint * 2^16. In this case 655 = 0.01 * 2^16
#define BAT_CALIB_REAL_VOLTAGE 3192 // input voltage measured by multimeter (multiplied by 100). In this case 43.00 V * 100 = 4300
Expand Down