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: Encoder_Nucleo_16_bits
Revision 1:24c444f3716b, committed 2018-05-21
- Comitter:
- haarkon
- Date:
- Mon May 21 16:16:13 2018 +0000
- Parent:
- 0:259a31d968a6
- Child:
- 2:d6f14bb935da
- Commit message:
- cosmetic modifications, still untested
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Encoder_Nucleo_16_bits.lib Mon May 21 16:16:13 2018 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/IUT-DE-CACHAN-GE1/code/Encoder_Nucleo_16_bits/#6eeee6a11f47
--- a/PID.cpp Sun May 20 08:34:23 2018 +0000
+++ b/PID.cpp Mon May 21 16:16:13 2018 +0000
@@ -1,6 +1,6 @@
#include "PID.h"
-PID::PID(TIM_TypeDef * _TIM, PinName outPWM, PinName outA, PinName outB, double scale, double loopTime) : _encoder (_TIM), _pwm(outPWM), _outA(outA), _outB(outB)
+PID::PID(TIM_TypeDef * TIM, PinName outPWM, PinName outA, PinName outB, double scale, double loopTime) : _encoder (TIM), _pwm(outPWM), _outA(outA), _outB(outB)
{
Ticker _tick;
--- a/PID.h Sun May 20 08:34:23 2018 +0000
+++ b/PID.h Mon May 21 16:16:13 2018 +0000
@@ -106,7 +106,7 @@
* @param outDir is the Mbed pin used to send direction to the full bridge
* @param invDir is the Mbed pin used to send direction (in case of 3 pins full bridge)
*/
- PID(TIM_TypeDef * _TIM, PinName outPWM, PinName outA, PinName outB, double scale = 31.8309886184, double loopTime = 0.001);
+ PID(TIM_TypeDef * TIM, PinName outPWM, PinName outA, PinName outB, double scale = 31.8309886184, double loopTime = 0.001);
/**
* Set the Kp value