robot

Dependencies:   FastPWM3 mbed

Committer:
bwang
Date:
Thu May 04 17:35:10 2017 +0000
Revision:
155:7c6005933d4c
Parent:
40:22aede3d096f
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
bwang29:50e6e4e46580 1#ifndef __CONFIG_DRIVING
bwang29:50e6e4e46580 2#define __CONFIG_DRIVING
bwang29:50e6e4e46580 3
bwang30:c25c5bf0d951 4#define TORQUE_MODE true
bwang30:c25c5bf0d951 5
bwang42:030e0ec4eac5 6/*forward torque scaling*/
bwang42:030e0ec4eac5 7#define MAX_TQPCT_PLUS 1.0f
bwang29:50e6e4e46580 8
bwang42:030e0ec4eac5 9/*reverse/regen torque scaling*/
bwang42:030e0ec4eac5 10#define MAX_TQPCT_MINUS 0.3f
bwang42:030e0ec4eac5 11
bwang42:030e0ec4eac5 12/*maximum torque for approximate methods*/
bwang42:030e0ec4eac5 13#define TORQUE_MAX 75.0f
bwang29:50e6e4e46580 14
bwang39:80b38a8e1787 15/*max speed, including any field weakening, rad/s*/
bwang42:030e0ec4eac5 16#define W_MAX 1000.0f
bwang29:50e6e4e46580 17
bwang29:50e6e4e46580 18#endif