.
Dependencies: L432KC_SPI_Pey_Lal
Diff: main.hpp
- Revision:
- 114:c1f7be27aa5d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.hpp Wed May 18 16:12:59 2022 +0000 @@ -0,0 +1,22 @@ +#ifndef MAIN_HPP +#define MAIN_HPP + +//Define PWM +#define PWM_PROP D9 +#define PWM_DIR D10 + +//Define interrupt Input +#define SPEED_CAPTOR A4 + +//Define COEF +#define POINT_PER_TURN 5.0 +#define WHEEL_DIAMETER 0.069 +#define DISTANCE_FOR_HALF_TURN (PI * WHEEL_DIAMETER / POINT_PER_TURN) //TODO: mettre vrai valeur +#define CONTROL_RATE 1000.0 + +//fontion interrupt +void onRxInterrupt(); +void onSpeedCaptorInterrupt(); +void onTickerAsservissementInterrupt(); + +#endif \ No newline at end of file