my 2axes stepper

Dependencies:   mbed X_NUCLEO_IHM02A1

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Thu Jan 14 10:01:18 2016 +0000
Parent:
10:d1e568b0079d
Child:
12:5be6dd48b94a
Commit message:
+ Updated with the new version of the library.

Changed in this revision

X_NUCLEO_IHM02A1.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/X_NUCLEO_IHM02A1.lib	Mon Jan 04 16:11:47 2016 +0000
+++ b/X_NUCLEO_IHM02A1.lib	Thu Jan 14 10:01:18 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/ST-Expansion-SW-Team/code/X_NUCLEO_IHM02A1/#aa68441705b2
+https://developer.mbed.org/teams/ST-Expansion-SW-Team/code/X_NUCLEO_IHM02A1/#1aca63b2f034
--- a/main.cpp	Mon Jan 04 16:11:47 2016 +0000
+++ b/main.cpp	Thu Jan 14 10:01:18 2016 +0000
@@ -70,12 +70,12 @@
 X_NUCLEO_IHM02A1 *x_nucleo_ihm02a1;
 
 /* Initialization parameters of the motors connected to the expansion board. */
-MICROSTEPPING_MOTOR_InitTypeDef init[L6470DAISYCHAINSIZE] =
+L6470_InitTypeDef init[L6470DAISYCHAINSIZE] =
 {
     /* First Motor. */
     {
         9.0,                /* Motor supply voltage in V. */
-        200,                /* Min number of steps per revolution for the motor. */
+        400,                /* Min number of steps per revolution for the motor. */
         1.7,                /* Max motor phase voltage in A. */
         3.06,               /* Max motor phase voltage in V. */
         300.0,              /* Motor initial speed [step/s]. */
@@ -103,7 +103,7 @@
     /* Second Motor. */
     {
         9.0,                /* Motor supply voltage in V. */
-        200,                /* Min number of steps per revolution for the motor. */
+        400,                /* Min number of steps per revolution for the motor. */
         1.7,                /* Max motor phase voltage in A. */
         3.06,               /* Max motor phase voltage in V. */
         300.0,              /* Motor initial speed [step/s]. */