Bayley Wang
/
foc-ed_in_the_bot_compact
robot
config_inverter.h
- Committer:
- bwang
- Date:
- 2017-04-30
- Revision:
- 125:32d84699156b
- Parent:
- 124:e70ca81676fc
- Child:
- 126:498f56ba051e
File content as of revision 125:32d84699156b:
#ifndef __CONFIG_INVERTER_H #define __CONFIG_INVERTER_H /*DC link voltage, volts*/ #define BUS_VOLTAGE 160.0f /*switching frequency, hertz*/ #define F_SW 5000.0f /*max duty cycle*/ #define DTC_MAX 0.945f /*propagation delay (us)*/ #define VOLTAGE_CMD_DELAY 318.0f /*max modulation*/ #define MODULATION_MAX (2.f * DTC_MAX - 1.f) #endif