motor board library
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_IHM02A1 by
Revision 25:66409b9ed27c, committed 2018-04-04
- Comitter:
- yong304
- Date:
- Wed Apr 04 08:24:33 2018 +0000
- Parent:
- 24:ff67801d7cd7
- Commit message:
- selfbalancecar unfinish;
Changed in this revision
--- a/Components/L6470/L6470.cpp Mon Mar 13 17:52:38 2017 +0000 +++ b/Components/L6470/L6470.cpp Wed Apr 04 08:24:33 2018 +0000 @@ -1404,8 +1404,8 @@ /* Prepare the 'Register' field of StepperMotorDriverHandle */ L6470_init_t *MotorParameterData = (L6470_init_t *) init; - StepperMotorRegister.ACC = L6470_Step_s2_2_Acc(MotorParameterData->acc); - StepperMotorRegister.DEC = L6470_Step_s2_2_Dec(MotorParameterData->dec); +// StepperMotorRegister.ACC = L6470_Step_s2_2_Acc(MotorParameterData->acc); +// StepperMotorRegister.DEC = L6470_Step_s2_2_Dec(MotorParameterData->dec); StepperMotorRegister.MAX_SPEED = L6470_Step_s_2_MaxSpeed(MotorParameterData->maxspeed); StepperMotorRegister.MIN_SPEED = L6470_Step_s_2_MinSpeed(MotorParameterData->minspeed); StepperMotorRegister.FS_SPD = L6470_Step_s_2_FsSpd(MotorParameterData->fsspd);
--- a/Components/L6470/L6470_def.h Mon Mar 13 17:52:38 2017 +0000 +++ b/Components/L6470/L6470_def.h Wed Apr 04 08:24:33 2018 +0000 @@ -219,8 +219,8 @@ float phasecurrent; //!< max motor phase voltage in A float phasevoltage; //!< max motor phase voltage in V float speed; //!< motor initial speed [step/s] - float acc; //!< motor acceleration [step/s^2] (comment for infinite acceleration mode) - float dec; //!< motor deceleration [step/s^2] (comment for infinite deceleration mode) + // float acc; //!< motor acceleration [step/s^2] (comment for infinite acceleration mode) + // float dec; //!< motor deceleration [step/s^2] (comment for infinite deceleration mode) float maxspeed; //!< motor maximum speed [step/s] float minspeed; //!< motor minimum speed [step/s] float fsspd; //!< motor full-step speed threshold [step/s]
--- a/ST_INTERFACES.lib Mon Mar 13 17:52:38 2017 +0000 +++ b/ST_INTERFACES.lib Wed Apr 04 08:24:33 2018 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/ST/code/ST_INTERFACES/#8f70f7159316 +https://developer.mbed.org/teams/ST/code/ST_INTERFACES/#d3c9b33b992c
--- a/X_NUCLEO_COMMON.lib Mon Mar 13 17:52:38 2017 +0000 +++ b/X_NUCLEO_COMMON.lib Wed Apr 04 08:24:33 2018 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/ST/code/X_NUCLEO_COMMON/#12be3dfc15fd +https://developer.mbed.org/teams/ST/code/X_NUCLEO_COMMON/#21096473f63e