Tuk ZeroFour / PID

Dependencies:   Encoder_Nucleo_16_bits

Dependents:   Kenya_2019

Files at this revision

API Documentation at this revision

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

Encoder_Nucleo_16_bits.lib Show annotated file Show diff for this revision Revisions of this file
PID.cpp Show annotated file Show diff for this revision Revisions of this file
PID.h Show annotated file Show diff for this revision Revisions of this file
--- /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