Tripple Controller for the TLE5206 H Bridge motor controller
Revision 4:d69f22061c03, committed 2011-07-05
- Comitter:
- AjK
- Date:
- Tue Jul 05 14:55:29 2011 +0000
- Parent:
- 3:b7d951c6f551
- Child:
- 5:bfc5c5cc161e
- Commit message:
- 0.6 Beta See ChangLog.h
Changed in this revision
--- a/inc/ChangeLog.h Tue Jul 05 14:27:56 2011 +0000 +++ b/inc/ChangeLog.h Tue Jul 05 14:55:29 2011 +0000 @@ -1,5 +1,11 @@ /* +0.6 Beta 5/Jul/2011 + * Added some extra documentation. doxygen still ToDo. + * Removed reference to Serial() ports as unused by demos. + * Amended the emergency stop so that actual and desired are + both set to zero. + 0.5 Beta 5/Jul/2011 * Added SimpleTLE5206Profiler.h which extends the functionality to allow for linear acceleration
--- a/inc/SimpleTLE5206Profiler.h Tue Jul 05 14:27:56 2011 +0000 +++ b/inc/SimpleTLE5206Profiler.h Tue Jul 05 14:55:29 2011 +0000 @@ -95,7 +95,7 @@ void eStop(void) { - _desired_speed = 0; + _desired_speed = _actual_speed = 0.0; SimpleTLE5206::setSpeed(_desired_speed); }
--- a/inc/example1.h Tue Jul 05 14:27:56 2011 +0000 +++ b/inc/example1.h Tue Jul 05 14:55:29 2011 +0000 @@ -2,8 +2,6 @@ #include "mbed.h" #include "SimpleTLE5206.h" -Serial pc(USBTX, USBRX); - /* NOTE! The SimpleTLE5206 library supports the TLE5206 in * Mode 2 Sign/Magnitude Control using two PWM outputs to * control speed and direction. @@ -73,8 +71,6 @@ int main() { volatile int trash = 0; - - pc.baud(115200); motorA.setSpeed(0); motorB.setSpeed(0);
--- a/inc/example2.h Tue Jul 05 14:27:56 2011 +0000 +++ b/inc/example2.h Tue Jul 05 14:55:29 2011 +0000 @@ -2,20 +2,18 @@ #include "mbed.h" #include "SimpleTLE5206Profiler.h" -Serial pc(USBTX, USBRX); - /* See example1.h for basic notes. * * This example shows how to use the acceleration and deceleration * profiler to manage changing speed in a simple linear fashion. * * The default accel and decel rates are 0.01/10ms. So when a speed - * of say +1.0 is demanded, it actually takes 1seond to reach that + * of say +1.0 is demanded, it actually takes 1second to reach that * target desired speed due to the acceleration profiler. Likewise * for deceleration. * * You can adjust the rates by altering the "poll interval" and the - * step change size. + * accel/decel rates with the API functions. */ #define DUTY_CYCLE_IN_HERTZ 50 @@ -27,8 +25,6 @@ int main() { - pc.baud(115200); - while(1) { // Start from stationary. motorA.setSpeed(0);