robot

Dependencies:   FastPWM3 mbed

config_inverter.h

Committer:
bwang
Date:
2017-05-07
Revision:
157:a9b2002994d5
Parent:
126:498f56ba051e

File content as of revision 157:a9b2002994d5:

#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 LINEAR_DTC_MAX 0.945f

/*propagation delay swizzle factor (+w_m / V_PHASE_SWIZZLE)*/
#define V_PHASE_SWIZZLE 1048.0f

/*max modulation, internally computed*/
#define LINEAR_MODULATION_MAX (2.f * LINEAR_DTC_MAX - 1.f)

#endif