.
Dependencies: L432KC_SPI_Pey_Lal
Diff: asservissement.hpp
- Revision:
- 113:2f8f255e99f2
- Child:
- 115:156b8234f2de
diff -r 478ae92cb106 -r 2f8f255e99f2 asservissement.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/asservissement.hpp Tue May 17 22:44:42 2022 +0000 @@ -0,0 +1,10 @@ +#ifndef ASSERVISSEMENT_HPP +#define ASSERVISSEMENT_HPP + +#include "mbed.h" + +#define SPEED_TO_PWM_TRANSFORM(x) (-1.0 * x + 1500) + +uint32_t PID(double error, double sampleRate); + +#endif \ No newline at end of file