kevin eccli
/
Freescale_CupV4
Adaptation K22F
Propulsion.h@0:6004a7230f87, 2014-12-16 (annotated)
- Committer:
- singularity
- Date:
- Tue Dec 16 15:52:17 2014 +0000
- Revision:
- 0:6004a7230f87
Creation k22F
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
singularity | 0:6004a7230f87 | 1 | #ifndef _PROPULSION_H |
singularity | 0:6004a7230f87 | 2 | #define _PROPULSION_H |
singularity | 0:6004a7230f87 | 3 | |
singularity | 0:6004a7230f87 | 4 | #define T_ASSERV_DEFAULT 0.500 |
singularity | 0:6004a7230f87 | 5 | |
singularity | 0:6004a7230f87 | 6 | #include "mbed.h" |
singularity | 0:6004a7230f87 | 7 | #include "Moteur.h" |
singularity | 0:6004a7230f87 | 8 | #include "Config.h" |
singularity | 0:6004a7230f87 | 9 | |
singularity | 0:6004a7230f87 | 10 | class Propulsion |
singularity | 0:6004a7230f87 | 11 | { |
singularity | 0:6004a7230f87 | 12 | public: |
singularity | 0:6004a7230f87 | 13 | Propulsion(); |
singularity | 0:6004a7230f87 | 14 | void setVitesse(float v); |
singularity | 0:6004a7230f87 | 15 | void testPropulsion1(); |
singularity | 0:6004a7230f87 | 16 | //void testPropulsion2(); |
singularity | 0:6004a7230f87 | 17 | void testMoteurDroit(); |
singularity | 0:6004a7230f87 | 18 | void testMoteurGauche(); |
singularity | 0:6004a7230f87 | 19 | |
singularity | 0:6004a7230f87 | 20 | |
singularity | 0:6004a7230f87 | 21 | void setDKp(float k); |
singularity | 0:6004a7230f87 | 22 | void setDKi(float k); |
singularity | 0:6004a7230f87 | 23 | void setDKd(float k); |
singularity | 0:6004a7230f87 | 24 | void setGKp(float k); |
singularity | 0:6004a7230f87 | 25 | void setGKi(float k); |
singularity | 0:6004a7230f87 | 26 | void setGKd(float k); |
singularity | 0:6004a7230f87 | 27 | |
singularity | 0:6004a7230f87 | 28 | private: |
singularity | 0:6004a7230f87 | 29 | |
singularity | 0:6004a7230f87 | 30 | Moteur moteurDroit; |
singularity | 0:6004a7230f87 | 31 | Moteur moteurGauche; |
singularity | 0:6004a7230f87 | 32 | }; |
singularity | 0:6004a7230f87 | 33 | |
singularity | 0:6004a7230f87 | 34 | #endif |