robot

Dependencies:   FastPWM3 mbed

config_inverter.h

Committer:
bwang
Date:
4 months ago
Revision:
155:7c6005933d4c
Parent:
125:32d84699156b
Child:
157:a9b2002994d5

File content as of revision 155:7c6005933d4c:

#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 swizzle factor (+w_m / V_PHASE_SWIZZLE)*/
#define V_PHASE_SWIZZLE 1048.0f

/*max modulation*/
#define MODULATION_MAX (2.f * DTC_MAX - 1.f)

#endif