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: mbed tinyshell X_NUCLEO_IHM02A1
Diff: main.cpp
- Revision:
- 11:79fcaf38c09d
- Parent:
- 9:f35fbeedb8f4
- Child:
- 12:5be6dd48b94a
--- 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]. */