robot

Dependencies:   FastPWM3 mbed

config_inverter.h

Committer:
bwang
Date:
2017-05-07
Revision:
159:9dbc0657238c
Parent:
157:a9b2002994d5

File content as of revision 159:9dbc0657238c:

#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