robot

Dependencies:   FastPWM3 mbed

Committer:
bwang
Date:
Thu May 04 17:35:10 2017 +0000
Revision:
155:7c6005933d4c
Parent:
125:32d84699156b
Child:
157:a9b2002994d5
05/04/2017 13:34 - changed logic in PwmIn::handle_fall, which no longer resets timer on invalid edges

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bwang15:b583cd30b063 1#ifndef __CONFIG_INVERTER_H
bwang15:b583cd30b063 2#define __CONFIG_INVERTER_H
bwang15:b583cd30b063 3
bwang39:80b38a8e1787 4/*DC link voltage, volts*/
bwang29:50e6e4e46580 5#define BUS_VOLTAGE 160.0f
bwang15:b583cd30b063 6
bwang39:80b38a8e1787 7/*switching frequency, hertz*/
bwang90:2ef53b1a22de 8#define F_SW 5000.0f
bwang39:80b38a8e1787 9
bwang93:e7e45957f496 10/*max duty cycle*/
bwang93:e7e45957f496 11#define DTC_MAX 0.945f
bwang93:e7e45957f496 12
bwang126:498f56ba051e 13/*propagation delay swizzle factor (+w_m / V_PHASE_SWIZZLE)*/
bwang126:498f56ba051e 14#define V_PHASE_SWIZZLE 1048.0f
bwang124:e70ca81676fc 15
bwang93:e7e45957f496 16/*max modulation*/
bwang93:e7e45957f496 17#define MODULATION_MAX (2.f * DTC_MAX - 1.f)
bwang93:e7e45957f496 18
bwang15:b583cd30b063 19#endif