Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_IHM01A1 by
Diff: Components/l6474/l6474_class.cpp
- Revision:
- 27:990963ed581b
- Parent:
- 23:58264db10a17
- Child:
- 30:a05820cfdba9
diff -r fd83fecf1ef5 -r 990963ed581b Components/l6474/l6474_class.cpp
--- a/Components/l6474/l6474_class.cpp Fri Apr 08 12:47:39 2016 +0000
+++ b/Components/l6474/l6474_class.cpp Thu Sep 08 12:38:35 2016 +0000
@@ -1149,6 +1149,10 @@
(uint16_t) init->slew_rate |
(uint16_t) init->target_swicthing_period
);
+ L6474_SetAcceleration((uint16_t) init->acceleration_pps_2);
+ L6474_SetDeceleration((uint16_t) init->deceleration_pps_2);
+ L6474_SetMaxSpeed((uint16_t) init->maximum_speed_pps);
+ L6474_SetMinSpeed((uint16_t) init->minimum_speed_pps);
}
/**********************************************************
