.

Dependencies:   L432KC_SPI_Pey_Lal

asservissement.hpp

Committer:
voltxd
Date:
2022-05-18
Revision:
115:156b8234f2de
Parent:
113:2f8f255e99f2

File content as of revision 115:156b8234f2de:

#ifndef ASSERVISSEMENT_HPP
#define ASSERVISSEMENT_HPP

#include "mbed.h"

#define SPEED_TO_PWM_TRANSFORM(x) (-20.0 * x + 1500)

uint32_t PID(double error, double sampleRate);
void setPIDParameters(double kp_, double ki_);

#endif