Guillaume Chauvon
/
Asserve12
asser1
Diff: hardware.h
- Revision:
- 0:6ca63d45f0ee
- Child:
- 2:5764f89a27f6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hardware.h Tue Dec 11 19:12:55 2018 +0000 @@ -0,0 +1,32 @@ +#ifndef HARDWARE_H +#define HARDWARE_H + + +void init_hardware(void); +void set_PWM_moteur_D(int PWM); +void set_PWM_moteur_G(int PWM); +long int get_nbr_tick_D(void); +long int get_nbr_tick_G(void); +void attente_synchro(void); + +void allumer_del(void); +void eteindre_del(void); + +void allumer_autres_del(void); +void eteindre_autres_del(void); +void toggle_autres_del(void); + +void motors_on(void); +void motors_stop(void); + +int arret(void); + +void updateEncoderA(void); +void updateEncoderB(void); + +float lecture_courrant_D(); +float lecture_courrant_G(); + +void debugEncoder(void); + +#endif