Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: config_motor.h
- Revision:
- 29:50e6e4e46580
- Parent:
- 28:ed9c1ca386fd
- Child:
- 30:c25c5bf0d951
--- a/config_motor.h Mon Nov 07 10:56:01 2016 +0000 +++ b/config_motor.h Mon Nov 07 11:22:25 2016 +0000 @@ -5,11 +5,11 @@ #define POS_OFFSET 5.88f #define RESOLVER_LOBES 3.0f #define CPR 4096 + +#define IPHASE_MOTOR_LIMIT 200.0f +#define W_LIMIT 1000.0f + #define KT 0.3f //Nm/A -- filler value until the LUT is made -#define FORWARD_TORQUE_MAX 60.0f -#define REVERSE_TORQUE_MAX -20.0f -#define W_MAX 1000.0f //max speed, mechanical rad/s -#define Q_MAX 200.0f #define PI 3.141593f