![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
coucou bob
fct.h@0:e9a025a937b4, 2018-12-17 (annotated)
- Committer:
- pirottealex
- Date:
- Mon Dec 17 16:50:36 2018 +0000
- Revision:
- 0:e9a025a937b4
robot play azur festival
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pirottealex | 0:e9a025a937b4 | 1 | #ifndef FCT_H |
pirottealex | 0:e9a025a937b4 | 2 | #define FCT_H |
pirottealex | 0:e9a025a937b4 | 3 | |
pirottealex | 0:e9a025a937b4 | 4 | |
pirottealex | 0:e9a025a937b4 | 5 | extern char cmdI2C ;// CS vbat x x x SensG SensD CS_G CD_D, sens moteur positif CS à 0. |
pirottealex | 0:e9a025a937b4 | 6 | extern PwmOut MotD; |
pirottealex | 0:e9a025a937b4 | 7 | extern PwmOut MotG; |
pirottealex | 0:e9a025a937b4 | 8 | |
pirottealex | 0:e9a025a937b4 | 9 | //GLOBALES |
pirottealex | 0:e9a025a937b4 | 10 | |
pirottealex | 0:e9a025a937b4 | 11 | |
pirottealex | 0:e9a025a937b4 | 12 | extern I2C monI2C; |
pirottealex | 0:e9a025a937b4 | 13 | |
pirottealex | 0:e9a025a937b4 | 14 | |
pirottealex | 0:e9a025a937b4 | 15 | |
pirottealex | 0:e9a025a937b4 | 16 | |
pirottealex | 0:e9a025a937b4 | 17 | //CONSTANTES |
pirottealex | 0:e9a025a937b4 | 18 | #define ADR_PCF 0x70 |
pirottealex | 0:e9a025a937b4 | 19 | #define PERIOD 0.0001 |
pirottealex | 0:e9a025a937b4 | 20 | #define V_max 30 |
pirottealex | 0:e9a025a937b4 | 21 | #define V_recherche 18 |
pirottealex | 0:e9a025a937b4 | 22 | #define K 0.1 |
pirottealex | 0:e9a025a937b4 | 23 | #define V_moy 25 |
pirottealex | 0:e9a025a937b4 | 24 | |
pirottealex | 0:e9a025a937b4 | 25 | |
pirottealex | 0:e9a025a937b4 | 26 | //PROTOTYPES |
pirottealex | 0:e9a025a937b4 | 27 | void vitmoteur(float,float); |
pirottealex | 0:e9a025a937b4 | 28 | void init(void); |
pirottealex | 0:e9a025a937b4 | 29 | |
pirottealex | 0:e9a025a937b4 | 30 | |
pirottealex | 0:e9a025a937b4 | 31 | #endif |