Robot's source code
Dependencies: mbed
Asserv_Plan_B/planB.h@64:6489bcfc1173, 2015-04-09 (annotated)
- Committer:
- sype
- Date:
- Thu Apr 09 17:40:53 2015 +0000
- Revision:
- 64:6489bcfc1173
- Parent:
- 62:454cd844fe1e
- Child:
- 68:1ef8b1a37252
update asserv B
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sype | 59:67e0d6ed44b6 | 1 | #include "mbed.h" |
Jagang | 62:454cd844fe1e | 2 | #include "Odometry.h" |
Jagang | 62:454cd844fe1e | 3 | #include "Motor.h" |
sype | 59:67e0d6ed44b6 | 4 | |
Jagang | 62:454cd844fe1e | 5 | class aserv_planB |
Jagang | 62:454cd844fe1e | 6 | { |
sype | 64:6489bcfc1173 | 7 | public: |
Jagang | 62:454cd844fe1e | 8 | aserv_planB(Odometry &odometry,Motor &motorL,Motor &motorR); |
Jagang | 62:454cd844fe1e | 9 | void update(float dt); |
sype | 64:6489bcfc1173 | 10 | void control_speed(); |
sype | 64:6489bcfc1173 | 11 | |
sype | 64:6489bcfc1173 | 12 | private: |
Jagang | 62:454cd844fe1e | 13 | Odometry &m_odometry; |
Jagang | 62:454cd844fe1e | 14 | Motor &m_motorL; |
Jagang | 62:454cd844fe1e | 15 | Motor &m_motorR; |
sype | 64:6489bcfc1173 | 16 | |
sype | 64:6489bcfc1173 | 17 | float erreur_g, vitesse_g; |
sype | 64:6489bcfc1173 | 18 | float erreur_d, vitesse_d; |
sype | 64:6489bcfc1173 | 19 | float cmd_g, cmd_d; |
sype | 64:6489bcfc1173 | 20 | float Kp; |
sype | 64:6489bcfc1173 | 21 | float consigne_g, consigne_d; |
sype | 64:6489bcfc1173 | 22 | |
Jagang | 62:454cd844fe1e | 23 | }; |