Funcionando: FDC eixo x y z
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_IHM01A1 by
Revision 37:c929bb291aac, committed 2018-05-15
- Comitter:
- cauecitrini
- Date:
- Tue May 15 16:30:25 2018 +0000
- Parent:
- 36:45e2ce55a9eb
- Commit message:
- Funcionando:; FDC; x; y; z
Changed in this revision
Components/L6474/L6474_config.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Components/L6474/L6474_config.h Tue Apr 24 15:05:55 2018 +0000 +++ b/Components/L6474/L6474_config.h Tue May 15 16:30:25 2018 +0000 @@ -72,43 +72,43 @@ /************************ Speed Profile *******************************/ /// Acceleration rate in step/s2 for device 0 (must be greater than 0) -#define L6474_CONF_PARAM_ACC_DEVICE_0 (160) +#define L6474_CONF_PARAM_ACC_DEVICE_0 (800) /// Acceleration rate in step/s2 for device 1 (must be greater than 0) -#define L6474_CONF_PARAM_ACC_DEVICE_1 (160) +#define L6474_CONF_PARAM_ACC_DEVICE_1 (800) /// Acceleration rate in step/s2 for device 2 (must be greater than 0) -#define L6474_CONF_PARAM_ACC_DEVICE_2 (160) +#define L6474_CONF_PARAM_ACC_DEVICE_2 (800) /// Deceleration rate in step/s2 for device 0 (must be greater than 0) -#define L6474_CONF_PARAM_DEC_DEVICE_0 (160) +#define L6474_CONF_PARAM_DEC_DEVICE_0 (800) /// Deceleration rate in step/s2 for device 1 (must be greater than 0) -#define L6474_CONF_PARAM_DEC_DEVICE_1 (160) +#define L6474_CONF_PARAM_DEC_DEVICE_1 (800) /// Deceleration rate in step/s2 for device 2 (must be greater than 0) -#define L6474_CONF_PARAM_DEC_DEVICE_2 (160) +#define L6474_CONF_PARAM_DEC_DEVICE_2 (800) /// Maximum speed in step/s for device 0 (30 step/s < Maximum speed <= 10 000 step/s ) -#define L6474_CONF_PARAM_MAX_SPEED_DEVICE_0 (1600) +#define L6474_CONF_PARAM_MAX_SPEED_DEVICE_0 (10000) /// Maximum speed in step/s for device 1 (30 step/s < Maximum speed <= 10 000 step/s ) -#define L6474_CONF_PARAM_MAX_SPEED_DEVICE_1 (1600) +#define L6474_CONF_PARAM_MAX_SPEED_DEVICE_1 (10000) /// Maximum speed in step/s for device 2 (30 step/s < Maximum speed <= 10 000 step/s ) -#define L6474_CONF_PARAM_MAX_SPEED_DEVICE_2 (1600) +#define L6474_CONF_PARAM_MAX_SPEED_DEVICE_2 (10000) /// Minimum speed in step/s for device 0 (30 step/s <= Minimum speed < 10 000 step/s) -#define L6474_CONF_PARAM_MIN_SPEED_DEVICE_0 (800) +#define L6474_CONF_PARAM_MIN_SPEED_DEVICE_0 (7000) /// Minimum speed in step/s for device 1 (30 step/s <= Minimum speed < 10 000 step/s) -#define L6474_CONF_PARAM_MIN_SPEED_DEVICE_1 (800) +#define L6474_CONF_PARAM_MIN_SPEED_DEVICE_1 (7000) /// Minimum speed in step/s for device 2 (30 step/s <= Minimum speed < 10 000 step/s) -#define L6474_CONF_PARAM_MIN_SPEED_DEVICE_2 (800) +#define L6474_CONF_PARAM_MIN_SPEED_DEVICE_2 (7000) /************************ Phase Current Control *******************************/ // Current value that is assigned to the torque regulation DAC /// TVAL register value for device 0 (range 31.25mA to 4000mA) -#define L6474_CONF_PARAM_TVAL_DEVICE_0 (250) +#define L6474_CONF_PARAM_TVAL_DEVICE_0 (1000) /// TVAL register value for device 1 (range 31.25mA to 4000mA) -#define L6474_CONF_PARAM_TVAL_DEVICE_1 (250) +#define L6474_CONF_PARAM_TVAL_DEVICE_1 (1000) /// TVAL register value for device 2 (range 31.25mA to 4000mA) -#define L6474_CONF_PARAM_TVAL_DEVICE_2 (250) +#define L6474_CONF_PARAM_TVAL_DEVICE_2 (1000) /// Fall time value (T_FAST field of T_FAST register) for device 0 (range 2us to 32us) #define L6474_CONF_PARAM_FAST_STEP_DEVICE_0 (L6474_FAST_STEP_12us) @@ -141,11 +141,11 @@ /******************************* Others ***************************************/ /// Overcurrent threshold settings for device 0 (OCD_TH register) -#define L6474_CONF_PARAM_OCD_TH_DEVICE_0 (L6474_OCD_TH_750mA) +#define L6474_CONF_PARAM_OCD_TH_DEVICE_0 (L6474_OCD_TH_3750mA) /// Overcurrent threshold settings for device 1 (OCD_TH register) -#define L6474_CONF_PARAM_OCD_TH_DEVICE_1 (L6474_OCD_TH_750mA) +#define L6474_CONF_PARAM_OCD_TH_DEVICE_1 (L6474_OCD_TH_3750mA) /// Overcurrent threshold settings for device 2 (OCD_TH register) -#define L6474_CONF_PARAM_OCD_TH_DEVICE_2 (L6474_OCD_TH_750mA) +#define L6474_CONF_PARAM_OCD_TH_DEVICE_2 (L6474_OCD_TH_3750mA) /// Alarm settings for device 0 (ALARM_EN register) #define L6474_CONF_PARAM_ALARM_EN_DEVICE_0 (L6474_ALARM_EN_OVERCURRENT |\