Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: config_inverter.h
- Revision:
- 93:e7e45957f496
- Parent:
- 90:2ef53b1a22de
- Child:
- 124:e70ca81676fc
--- a/config_inverter.h Thu Apr 06 17:33:47 2017 +0000 +++ b/config_inverter.h Fri Apr 07 15:54:16 2017 +0000 @@ -7,4 +7,10 @@ /*switching frequency, hertz*/ #define F_SW 5000.0f +/*max duty cycle*/ +#define DTC_MAX 0.945f + +/*max modulation*/ +#define MODULATION_MAX (2.f * DTC_MAX - 1.f) + #endif \ No newline at end of file