Fork and fix for mwork
Dependencies: mbed-dev-f303 FastPWM3 millis
Diff: Config/user_config.h
- Revision:
- 26:2b865c00d7e9
- Parent:
- 25:f5741040c4bb
- Child:
- 28:8c7e29f719c5
--- a/Config/user_config.h Sun Apr 09 03:05:52 2017 +0000 +++ b/Config/user_config.h Mon May 01 15:22:58 2017 +0000 @@ -8,9 +8,12 @@ #define M_OFFSET __float_reg[1] // Encoder mechanical offset #define I_BW __float_reg[2] // Current loop bandwidth #define TORQUE_LIMIT __float_reg[3] // Torque limit (current limit = torque_limit/(kt*gear ratio)) +#define THETA_MIN __float_reg[4] // Minimum position setpoint +#define THETA_MAX __float_reg[5] // Maximum position setpoint #define PHASE_ORDER __int_reg[0] // Phase swapping during calibration #define CAN_ID __int_reg[1] // CAN bus ID +#define CAN_MASTER __int_reg[2] // CAN bus "master" ID #define ENCODER_LUT __int_reg[4] // Encoder offset LUT - 128 elements long extern float __float_reg[];