Bayley Wang / foc-ed_in_the_bot_compact

robot

Dependencies:   FastPWM3 mbed

config_driving.h

Committer:
bwang
Date:
3 weeks ago
Revision:
155:7c6005933d4c
Parent:
40:22aede3d096f

File content as of revision 155:7c6005933d4c:

#ifndef __CONFIG_DRIVING
#define __CONFIG_DRIVING

#define TORQUE_MODE true

/*forward torque scaling*/
#define MAX_TQPCT_PLUS 1.0f

/*reverse/regen torque scaling*/
#define MAX_TQPCT_MINUS 0.3f

/*maximum torque for approximate methods*/
#define TORQUE_MAX 75.0f

/*max speed, including any field weakening, rad/s*/
#define W_MAX 1000.0f

#endif