Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: layout.h
- Revision:
- 191:66861311bdcd
- Parent:
- 189:760cd81a7633
--- a/layout.h Sat Feb 10 02:55:48 2018 +0000 +++ b/layout.h Sat Feb 10 03:42:07 2018 +0000 @@ -26,8 +26,10 @@ /*inverter linearity limit*/ #define LINEAR_DTC_MAX 0.945f -//don't change this! +//don't change these! #define I_OFFSET (AVDD * R_DOWN * R_UP / (R_DOWN * R_UP + R_BIAS * (R_DOWN + R_UP))) #define I_SCALE (R_BIAS * R_DOWN * I_SCALE_RAW / (R_DOWN * R_UP + R_BIAS * (R_DOWN + R_UP))) +#define PI 3.141593f + #endif \ No newline at end of file